Diff
Modified: trunk/app/helpers/application_helper.rb (2168 => 2169)
--- trunk/app/helpers/application_helper.rb 2009-04-08 14:27:00 UTC (rev 2168)
+++ trunk/app/helpers/application_helper.rb 2009-04-08 14:29:13 UTC (rev 2169)
@@ -767,7 +767,7 @@
when "register_application"
return "famfamfam_silk/application_edit.png"
else
- return nil
+ return Conf.label_icons[method.to_s] if Conf.label_icons[method.to_s]
end
end
Modified: trunk/config/default_settings.yml (2168 => 2169)
--- trunk/config/default_settings.yml 2009-04-08 14:27:00 UTC (rev 2168)
+++ trunk/config/default_settings.yml 2009-04-08 14:29:13 UTC (rev 2169)
@@ -354,3 +354,15 @@
label: pack
link: /packs
+# label_icons - This is a list of icon types to icons.
+#
+# Example:
+#
+# label_icons:
+#
+# workflow: redmond_studio/applications_16.png
+# blob: redmond_studio/documents_16.png
+# pack: manhattan_studio/folder-closed_16.png
+
+label_icons:
+
Modified: trunk/lib/conf.rb (2168 => 2169)
--- trunk/lib/conf.rb 2009-04-08 14:27:00 UTC (rev 2168)
+++ trunk/lib/conf.rb 2009-04-08 14:29:13 UTC (rev 2169)
@@ -101,6 +101,10 @@
self.fetch_entry('home_page_stats')
end
+ def self.label_icons
+ self.fetch_entry('label_icons', {})
+ end
+
# This method is required to create an administrator in the test fixtures
def self.admins=(value)
@@ -109,9 +113,10 @@
private
- def self.fetch_entry(key)
+ def self.fetch_entry(key, default = nil)
return @settings[key] if @settings[key]
return @defaults[key] if @defaults[key]
+ default
end
end