summaryrefslogtreecommitdiff
path: root/app/views/admin
diff options
context:
space:
mode:
authorerdgeist <erdgeist@erdgeist.org>2025-02-06 16:49:06 +0100
committererdgeist <erdgeist@erdgeist.org>2025-02-06 16:49:06 +0100
commit375ed745052148faeb34763087fe04214105f1b8 (patch)
tree595456cf631087b5530bf5470529faeead1a0aaf /app/views/admin
parent38d80f0af731326fcd5ae16c0129a056eff2fe32 (diff)
Improve worklflow
Diffstat (limited to 'app/views/admin')
-rw-r--r--app/views/admin/index.html.erb48
1 files changed, 45 insertions, 3 deletions
diff --git a/app/views/admin/index.html.erb b/app/views/admin/index.html.erb
index 8c8271f..edad1d6 100644
--- a/app/views/admin/index.html.erb
+++ b/app/views/admin/index.html.erb
@@ -1,5 +1,13 @@
1<div id="admin_wizard">
2 <%= link_to 'Create Update or Pressemitteilung', new_node_path, :only_path => false %>
3 <a href="#" id="admin_wizard_my_work" class="admin_wizard_button button">Continue my work</a>
4 <a href="#" id="admin_wizard_create_page" class="admin_wizard_button button">Add a page in the page tree</a>
5 <%= link_to("Upload a new asset", new_asset_path, :only_path => false) %>
6</div>
7
1<p id="overview_toggle"> 8<p id="overview_toggle">
2 <a href="#" id="recent_changes_toggle" class="button">recent changes</a> 9 <a href="#" id="recent_changes_toggle" class="button">recent changes</a>
10 <a href="#" id="my_work_toggle" class="button">my work</a>
3 <a href="#" id="current_drafts_toggle" class="button">current drafts</a> 11 <a href="#" id="current_drafts_toggle" class="button">current drafts</a>
4 <a href="#" id="admin_sitemap_toggle" class="button">site map</a> 12 <a href="#" id="admin_sitemap_toggle" class="button">site map</a>
5</p> 13</p>
@@ -38,9 +46,43 @@
38 </table> 46 </table>
39</div> 47</div>
40 48
49<div id="my_work_table">
50
51 <h1>My Work</h1>
52
53 <table class="node_table">
54 <tr class="header">
55 <th class="node_id">ID</th>
56 <th class="title">Title</th>
57 <th class="actions">Actions</th>
58 <th class="editor">Locked by</th>
59 <th class="revision">Rev.</th>
60 </tr>
61 <% @mynodes.each do |node| %>
62 <tr class="<%= cycle("even", "odd") %>">
63 <td class="node_id"><%= node.id %></td>
64 <td class="title">
65 <h4><%= link_to title_for_node(node), node_path(node) %></h4>
66 <p><%= link_to_path(node.unique_name, node.unique_name) %></p>
67 </td>
68 <td class="actions">
69 <%= link_to 'show', node_path(node) %>
70 <%= link_to 'Revisions', node_revisions_path(node) %>
71 </td>
72 <td>
73 <%= node.lock_owner.login if node.lock_owner %>
74 </td>
75 <td>
76 <%= node.draft ? node.draft.revision : node.head.revision %>
77 </td>
78 </tr>
79 <% end %>
80 </table>
81</div>
82
41<div id="current_drafts_table"> 83<div id="current_drafts_table">
42 84
43 <h1>Current Drafts</h1> 85 <h1>Current Drafts (<%= @drafts_count %>)</h1>
44 86
45 <table class="node_table"> 87 <table class="node_table">
46 <tr class="header"> 88 <tr class="header">
@@ -92,8 +134,8 @@
92 <p><%= link_to_path(node.unique_name, node.unique_name) %></p> 134 <p><%= link_to_path(node.unique_name, node.unique_name) %></p>
93 </td> 135 </td>
94 <td class="actions"> 136 <td class="actions">
95 <%= link_to 'show', node_path(node) %> 137 <%= link_to 'create subpage', new_node_path(:parent_id => node.id) %>
96 <%= link_to 'Revisions', node_revisions_path(node) %> 138 <%= link_to ':: Revisions', node_revisions_path(node) %>
97 </td> 139 </td>
98 <td> 140 <td>
99 <%= node.lock_owner.login if node.lock_owner %> 141 <%= node.lock_owner.login if node.lock_owner %>