links and facet icons

Enables the icons in the links and in the facets lists
This commit is contained in:
Adam Young 2010-09-17 20:30:41 -04:00
parent de88718f87
commit b47d6c0944
5 changed files with 34 additions and 12 deletions

View File

@ -57,6 +57,28 @@ app_DATA = \
ui-icons_ededed_256x240.png \ ui-icons_ededed_256x240.png \
ui-icons_ffcf29_256x240.png \ ui-icons_ffcf29_256x240.png \
ui-icons_ffffff_256x240.png \ ui-icons_ffffff_256x240.png \
group_details.png \
host_details.png \
hostgroup_details.png \
netgroup_details.png \
service_details.png \
user_details.png \
group_member.png \
host_member.png \
hostgroup_member.png \
netgroup_member.png \
service_member.png \
user_member.png \
group_enroll.png \
host_enroll.png \
hostgroup_enroll.png \
netgroup_enroll.png \
service_enroll.png \
user_enroll.png \
search.png \
taskgroup_details.png \
rolegroup_details.png \
rolegroup_member.png \
$(NULL) $(NULL)
EXTRA_DIST = \ EXTRA_DIST = \

View File

@ -136,13 +136,13 @@ function ipa_entity_generate_views(obj_name, container)
title: 'search', title: 'search',
text: 'Search', text: 'Search',
click: switch_view click: switch_view
}).prepend('<img src="plus-enabled.png"/>')); }).prepend('<img src="search.png"/>'));
ul.append($('<li></li>', { ul.append($('<li></li>', {
text: 'Details', text: 'Details',
title: 'details', title: 'details',
click: switch_view click: switch_view
}).prepend('<img src="plus-enabled.png"/>')); }).prepend('<img src="' + obj_name +'_details.png"/>'));
var attribute_members = ipa_objs[obj_name].attribute_members; var attribute_members = ipa_objs[obj_name].attribute_members;
for (attr in attribute_members) { for (attr in attribute_members) {
@ -155,7 +155,7 @@ function ipa_entity_generate_views(obj_name, container)
title: m, title: m,
text:label, text:label,
click: switch_view click: switch_view
}).prepend('<img src="plus-enabled.png"/>')); }).prepend('<img src="' + ipa_objs[m].name + '_member.png"/>'));
} }
} }

View File

@ -72,7 +72,7 @@ function group_render_quick_links(tr, attr, value, entry_attrs) {
$("<a/>", { $("<a/>", {
href: "jslink", href: "jslink",
html: "[D]", html: $("<img src='group_details.png' />"),
click: function() { click: function() {
var state = {}; var state = {};
state['group-facet'] = 'details'; state['group-facet'] = 'details';
@ -84,7 +84,7 @@ function group_render_quick_links(tr, attr, value, entry_attrs) {
$("<a/>", { $("<a/>", {
href: "jslink", href: "jslink",
html: "[U]", html: $("<img src='user_enroll.png' />"),
click: function() { click: function() {
var state = {}; var state = {};
state['group-facet'] = 'associate'; state['group-facet'] = 'associate';
@ -97,7 +97,7 @@ function group_render_quick_links(tr, attr, value, entry_attrs) {
$("<a/>", { $("<a/>", {
href: "jslink", href: "jslink",
html: "[N]", html: $("<img src='netgroup_member.png' />"),
click: function() { click: function() {
var state = {}; var state = {};
state['group-facet'] = 'associate'; state['group-facet'] = 'associate';

View File

@ -46,7 +46,7 @@ function service_render_quick_links(tr, attr, value, entry_attrs) {
$("<a/>", { $("<a/>", {
href: "jslink", href: "jslink",
html: "[D]", html: $("<img src='service_details.png' />"),
click: function() { click: function() {
var state = {}; var state = {};
state['service-facet'] = 'details'; state['service-facet'] = 'details';
@ -58,7 +58,7 @@ function service_render_quick_links(tr, attr, value, entry_attrs) {
$("<a/>", { $("<a/>", {
href: "jslink", href: "jslink",
html: "[G]", html: $("<img src='host_enroll.png' />"),
click: function() { click: function() {
var state = {}; var state = {};
state['service-facet'] = 'associate'; state['service-facet'] = 'associate';

View File

@ -216,7 +216,7 @@ function user_render_quick_links(tr, attr, value, entry_attrs) {
$("<a/>", { $("<a/>", {
href: "jslink", href: "jslink",
html: "[D]", html: $("<img src='user_details.png' />"),
click: function() { click: function() {
var state = {}; var state = {};
state['user-facet'] = 'details'; state['user-facet'] = 'details';
@ -228,7 +228,7 @@ function user_render_quick_links(tr, attr, value, entry_attrs) {
$("<a/>", { $("<a/>", {
href: "jslink", href: "jslink",
html: "[G]", html: $("<img src='group_member.png' />"),
click: function() { click: function() {
var state = {}; var state = {};
state['user-facet'] = 'associate'; state['user-facet'] = 'associate';
@ -241,7 +241,7 @@ function user_render_quick_links(tr, attr, value, entry_attrs) {
$("<a/>", { $("<a/>", {
href: "jslink", href: "jslink",
html: "[N]", html: $("<img src='netgroup_member.png' />"),
click: function() { click: function() {
var state = {}; var state = {};
state['user-facet'] = 'associate'; state['user-facet'] = 'associate';
@ -254,7 +254,7 @@ function user_render_quick_links(tr, attr, value, entry_attrs) {
$("<a/>", { $("<a/>", {
href: "jslink", href: "jslink",
html: "[R]", html: $("<img src='rolegroup_member.png' />"),
click: function() { click: function() {
var state = {}; var state = {};
state['user-facet'] = 'associate'; state['user-facet'] = 'associate';