Modified: branches/event_logging/app/helpers/application_helper.rb (1903 => 1904)
--- branches/event_logging/app/helpers/application_helper.rb 2008-10-30 12:13:01 UTC (rev 1903)
+++ branches/event_logging/app/helpers/application_helper.rb 2008-10-30 12:21:36 UTC (rev 1904)
@@ -451,12 +451,18 @@
end
# used to return the "visible" part for links to contributable
+ #
+ # NB! although not designed for groups, still used in some places - so
+ # method name left unchanged, but functionality for groups added
def contributable_name_from_instance(contributable)
case contributable.class.to_s
when "Workflow", "Pack"
return contributable.title
when "Blob"
return ((contributable.title && contributable.title.length > 0) ? h(contributable.title) : h(contributable.local_name))
+ when "Network"
+ # title is required for groups
+ return contributable.title
else
return "(#{contributable.class.to_s},#{contributable.id})"
end