Fix: "._type" to ".class"
This commit is contained in:
1 parent
bb154f5be6
commit
7440727acd
10 files changed
+18
-18
No files matched your search
@@ -515,7 +515,7 @@
|
||||
<% @recent_updated.each do |object| %>
|
||||
<tr>
|
||||
<td><%= link_to ((object[0].title rescue nil) || (object[0].page.title rescue nil)), get_link_to_object(object[0]) %></td>
|
||||
<td class="span2"><%= link_to t("dashboard.#{object[0]._type.underscore}"), get_link(object[0]._type.underscore) %></td>
|
||||
<td class="span2"><%= link_to t("dashboard.#{object[0].class.underscore}"), get_link(object[0].class.underscore) %></td>
|
||||
</tr>
|
||||
<% end %>
|
||||
</tbody>
|
||||
@@ -553,7 +553,7 @@
|
||||
<% @most_visited.each do |object| %>
|
||||
<tr>
|
||||
<td><%= link_to ((object[0].title rescue nil) || (object[0].page.title rescue nil)), get_link_to_object(object[0]) %></td>
|
||||
<td class="span2"><%= link_to t("dashboard.#{object[0]._type.underscore}"), get_link(object[0]._type.underscore) %></td>
|
||||
<td class="span2"><%= link_to t("dashboard.#{object[0].class.underscore}"), get_link(object[0].class.underscore) %></td>
|
||||
<td class="span2"><%= object[1] %></td>
|
||||
</tr>
|
||||
<% end %>
|
||||
|
||||
@@ -2,4 +2,4 @@
|
||||
<%= render 'admin/items/site_map_left_bar' %>
|
||||
<% end -%>
|
||||
|
||||
<%= render "admin/#{@item._type.downcase.pluralize}/show" %>
|
||||
<%= render "admin/#{@item.class.downcase.pluralize}/show" %>
|
||||
@@ -1,5 +1,5 @@
|
||||
$('#back_main').empty();
|
||||
<% case @item._type %>
|
||||
<% case @item.class %>
|
||||
<% when 'Page' %>
|
||||
$('#back_main').append("<%= escape_javascript(render(:partial => 'admin/pages/show')) %>");
|
||||
<% when 'Link' %>
|
||||
|
||||
Reference in new issue
Block a user