myexperiment-hackers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[myexperiment-hackers] [3679] branches/packs/app/views/annotations/_brea


From: noreply
Subject: [myexperiment-hackers] [3679] branches/packs/app/views/annotations/_breadcrumbs.html.erb: refactored annotation context link
Date: Thu, 5 Sep 2013 15:28:38 +0000 (UTC)

Revision
3679
Author
dgc
Date
2013-09-05 15:28:38 +0000 (Thu, 05 Sep 2013)

Log Message

refactored annotation context link

Modified Paths

Diff

Modified: branches/packs/app/views/annotations/_breadcrumbs.html.erb (3678 => 3679)


--- branches/packs/app/views/annotations/_breadcrumbs.html.erb	2013-09-05 15:07:30 UTC (rev 3678)
+++ branches/packs/app/views/annotations/_breadcrumbs.html.erb	2013-09-05 15:28:38 UTC (rev 3679)
@@ -1,4 +1,4 @@
-<li><%= link_to("Packs", packs_path) -%></li>
+<li><%= link_to(Conf.to_visible(@pack.class.name).pluralize, polymorphic_path(@pack.class.name.underscore.pluralize.to_sym)) -%>
 <li><%= link_to(h(@pack.title), polymorphic_path(@pack)) -%></li>
 
 <% if controller.action_name == "index" %>

reply via email to

[Prev in Thread] Current Thread [Next in Thread]