blob: bfdc00a4a220dd99282548f872c622ebe2171d83 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
<h2><%= t(".title", :size => @drafts.size) %></h2>
<div id="draft_list">
<table>
<tr class="header">
<th><%= t("admin.columns.id") %></th>
<th><%= t("admin.columns.title") %></th>
<th><%= t("admin.columns.path") %></th>
<th><%= t("admin.columns.author") %></th>
<th></th>
</tr>
<% @drafts.each do |draft| %>
<tr>
<td><%= draft.id %></td>
<td><%= draft.title %></td>
<td><%= draft.node.unique_name %></td>
<td><%= draft.user.login rescue "" %></td>
<td class="actions">
<%= link_to t("admin.common.show"), node_path(draft.node) %>
<%= link_to t(".revisions"), revision_path(draft.node.id) %>
<%= button_to t("nodes.show.publish"), publish_node_path(draft.node), method: :put, form: { data: { confirm: t("nodes.show.confirm_publish") }, class: 'button_to state_changing' } %>
</td>
</tr>
<% end %>
</table>
</div>
|