Add each page name to page_context index

This commit is contained in:
Christophe Vilayphiou 2012-05-15 21:31:54 +08:00
parent e54f4409fb
commit 3462c0e319
1 changed files with 23 additions and 23 deletions

View File

@ -1,23 +1,23 @@
<tr id="<%= dom_id page_context %>" class="with_action">
<tr id="<%= dom_id page_context %>" class="with_action"> <td>
<td> <%= page_context.page.path %></br>
<%= page_context.page.path %> <%= page_context.page.i18n_variable[I18n.locale] %>
<div class="quick-edit"> <div class="quick-edit">
<ul class="nav nav-pills hide"> <ul class="nav nav-pills hide">
<%if is_manager? || is_admin? || page_context.authed_users(:edit).include?(current_user)%> <%if is_manager? || is_admin? || page_context.authed_users(:edit).include?(current_user)%>
<li><%= link_to t('admin.page_context.edit'), edit_panel_page_content_back_end_page_context_path(page_context) %></li> <li><%= link_to t('admin.page_context.edit'), edit_panel_page_content_back_end_page_context_path(page_context) %></li>
<%if (is_manager? || is_admin?) %> <%if (is_manager? || is_admin?) %>
<li><%=show_page_context_edit_auth_link page_context%></li> <li><%=show_page_context_edit_auth_link page_context%></li>
<% end%> <% end%>
<% end -%> <% end -%>
</ul> </ul>
</div> </div>
</td> </td>
<td> <td>
<%if is_manager? || is_admin? || page_context.authed_users(:edit).include?(current_user)%> <%if is_manager? || is_admin? || page_context.authed_users(:edit).include?(current_user)%>
<%= link_to page_context.version, panel_page_content_back_end_view_path(page_context.page_id) %> <%= link_to page_context.version, panel_page_content_back_end_view_path(page_context.page_id) %>
<%end -%> <%end -%>
</td> </td>
<td><%= page_context.updated_at.strftime("%Y-%m-%d %H:%I:%S") %></td> <td><%= page_context.updated_at.strftime("%Y-%m-%d %H:%I:%S") %></td>
<td><%= User.find(page_context.create_user_id).name %></td> <td><%= User.find(page_context.create_user_id).name %></td>
</tr> </tr>