summaryrefslogtreecommitdiff
path: root/app/views/admin/_drafts.html.erb
diff options
context:
space:
mode:
Diffstat (limited to 'app/views/admin/_drafts.html.erb')
-rw-r--r--app/views/admin/_drafts.html.erb16
1 files changed, 8 insertions, 8 deletions
diff --git a/app/views/admin/_drafts.html.erb b/app/views/admin/_drafts.html.erb
index 4ef568f8..bfdc00a4 100644
--- a/app/views/admin/_drafts.html.erb
+++ b/app/views/admin/_drafts.html.erb
@@ -1,11 +1,11 @@
1<h2>Drafts (<%= @drafts.size %>)</h2> 1<h2><%= t(".title", :size => @drafts.size) %></h2>
2<div id="draft_list"> 2<div id="draft_list">
3 <table> 3 <table>
4 <tr class="header"> 4 <tr class="header">
5 <th>ID</th> 5 <th><%= t("admin.columns.id") %></th>
6 <th>Title</th> 6 <th><%= t("admin.columns.title") %></th>
7 <th>Path</th> 7 <th><%= t("admin.columns.path") %></th>
8 <th>author</th> 8 <th><%= t("admin.columns.author") %></th>
9 <th></th> 9 <th></th>
10 </tr> 10 </tr>
11 <% @drafts.each do |draft| %> 11 <% @drafts.each do |draft| %>
@@ -15,9 +15,9 @@
15 <td><%= draft.node.unique_name %></td> 15 <td><%= draft.node.unique_name %></td>
16 <td><%= draft.user.login rescue "" %></td> 16 <td><%= draft.user.login rescue "" %></td>
17 <td class="actions"> 17 <td class="actions">
18 <%= link_to 'Show', node_path(draft.node) %> 18 <%= link_to t("admin.common.show"), node_path(draft.node) %>
19 <%= link_to "Revisions", revision_path(draft.node.id) %> 19 <%= link_to t(".revisions"), revision_path(draft.node.id) %>
20 <%= button_to "Publish", publish_node_path(draft.node), method: :put, form: { data: { confirm: "Do you really want to publish?" }, class: 'button_to state_changing' } %> 20 <%= 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' } %>
21 </td> 21 </td>
22 </tr> 22 </tr>
23 <% end %> 23 <% end %>