This patch makes use of the previous patch to put the icons in the facets and quick links
>From 63cbee90ec885d92ad411991d74432be3848f400 Mon Sep 17 00:00:00 2001
From: Adam Young <ayo...@redhat.com>
Date: Fri, 17 Sep 2010 20:30:41 -0400
Subject: [PATCH 36/36] links and facet icons
 Enables the icons in the links and in the facets lists

---
 install/static/Makefile.am |   22 ++++++++++++++++++++++
 install/static/entity.js   |    6 +++---
 install/static/group.js    |    6 +++---
 install/static/service.js  |    4 ++--
 install/static/user.js     |    8 ++++----
 5 files changed, 34 insertions(+), 12 deletions(-)

diff --git a/install/static/Makefile.am b/install/static/Makefile.am
index b5a5c5f..9bd327c 100644
--- a/install/static/Makefile.am
+++ b/install/static/Makefile.am
@@ -57,6 +57,28 @@ app_DATA =                              \
 	ui-icons_ededed_256x240.png \
 	ui-icons_ffcf29_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)
 
 EXTRA_DIST =                            \
diff --git a/install/static/entity.js b/install/static/entity.js
index 3c48ca8..7adc392 100644
--- a/install/static/entity.js
+++ b/install/static/entity.js
@@ -136,13 +136,13 @@ function ipa_entity_generate_views(obj_name, container)
         title: 'search',
         text: 'Search',
         click: switch_view
-    }).prepend('<img src="plus-enabled.png"/>'));
+    }).prepend('<img src="search.png"/>'));
 
     ul.append($('<li></li>', {
         text: 'Details',
         title: 'details',
         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;
     for (attr in attribute_members) {
@@ -155,7 +155,7 @@ function ipa_entity_generate_views(obj_name, container)
                 title: m,
                 text:label,
                 click: switch_view
-            }).prepend('<img src="plus-enabled.png"/>'));
+            }).prepend('<img src="' + ipa_objs[m].name + '_member.png"/>'));
         }
     }
 
diff --git a/install/static/group.js b/install/static/group.js
index 02940b6..b1c0d89 100644
--- a/install/static/group.js
+++ b/install/static/group.js
@@ -72,7 +72,7 @@ function group_render_quick_links(tr, attr, value, entry_attrs) {
 
     $("<a/>", {
         href: "jslink",
-        html: "[D]",
+        html: $("<img src='group_details.png' />"),
         click: function() {
             var state = {};
             state['group-facet'] = 'details';
@@ -84,7 +84,7 @@ function group_render_quick_links(tr, attr, value, entry_attrs) {
 
     $("<a/>", {
         href: "jslink",
-        html: "[U]",
+        html: $("<img src='user_enroll.png' />"),
         click: function() {
             var state = {};
             state['group-facet'] = 'associate';
@@ -97,7 +97,7 @@ function group_render_quick_links(tr, attr, value, entry_attrs) {
 
     $("<a/>", {
         href: "jslink",
-        html: "[N]",
+        html: $("<img src='netgroup_member.png' />"),
         click: function() {
             var state = {};
             state['group-facet'] = 'associate';
diff --git a/install/static/service.js b/install/static/service.js
index 0fd5457..8d8e103 100644
--- a/install/static/service.js
+++ b/install/static/service.js
@@ -46,7 +46,7 @@ function service_render_quick_links(tr, attr, value, entry_attrs) {
 
     $("<a/>", {
         href: "jslink",
-        html: "[D]",
+        html: $("<img src='service_details.png' />"),
         click: function() {
             var state = {};
             state['service-facet'] = 'details';
@@ -58,7 +58,7 @@ function service_render_quick_links(tr, attr, value, entry_attrs) {
 
     $("<a/>", {
         href: "jslink",
-        html: "[G]",
+        html: $("<img src='host_enroll.png' />"),
         click: function() {
             var state = {};
             state['service-facet'] = 'associate';
diff --git a/install/static/user.js b/install/static/user.js
index 11880c8..b797dde 100644
--- a/install/static/user.js
+++ b/install/static/user.js
@@ -216,7 +216,7 @@ function user_render_quick_links(tr, attr, value, entry_attrs) {
 
     $("<a/>", {
         href: "jslink",
-        html: "[D]",
+        html: $("<img src='user_details.png' />"),
         click: function() {
             var state = {};
             state['user-facet'] = 'details';
@@ -228,7 +228,7 @@ function user_render_quick_links(tr, attr, value, entry_attrs) {
 
     $("<a/>", {
         href: "jslink",
-        html: "[G]",
+        html: $("<img src='group_member.png' />"),
         click: function() {
             var state = {};
             state['user-facet'] = 'associate';
@@ -241,7 +241,7 @@ function user_render_quick_links(tr, attr, value, entry_attrs) {
 
     $("<a/>", {
         href: "jslink",
-        html: "[N]",
+        html: $("<img src='netgroup_member.png' />"),
         click: function() {
             var state = {};
             state['user-facet'] = 'associate';
@@ -254,7 +254,7 @@ function user_render_quick_links(tr, attr, value, entry_attrs) {
 
     $("<a/>", {
         href: "jslink",
-        html: "[R]",
+        html: $("<img src='rolegroup_member.png' />"),
         click: function() {
             var state = {};
             state['user-facet'] = 'associate';
-- 
1.7.1

_______________________________________________
Freeipa-devel mailing list
Freeipa-devel@redhat.com
https://www.redhat.com/mailman/listinfo/freeipa-devel

Reply via email to