diff options
| author | erdgeist <erdgeist@erdgeist.org> | 2026-07-09 18:13:41 +0200 |
|---|---|---|
| committer | erdgeist <erdgeist@erdgeist.org> | 2026-07-09 18:13:41 +0200 |
| commit | 400f104320aeb551eddc6ed5608460992a3d23ca (patch) | |
| tree | dcf226ed106182b63b719222858761c3a362aa4c /app | |
| parent | ae48c9e86411f8f54f29e72a11b1e4ced48fe437 (diff) | |
Modernise revision#show view with the paradigms established in all the other views, removing subnav
Diffstat (limited to 'app')
| -rw-r--r-- | app/views/revisions/show.html.erb | 90 |
1 files changed, 37 insertions, 53 deletions
diff --git a/app/views/revisions/show.html.erb b/app/views/revisions/show.html.erb index f2a2895..4148096 100644 --- a/app/views/revisions/show.html.erb +++ b/app/views/revisions/show.html.erb | |||
| @@ -1,54 +1,38 @@ | |||
| 1 | <% content_for :subnavigation do %> | ||
| 2 | <%= link_to 'show all revisions', node_revisions_path(@node) %> | ||
| 3 | <% end %> | ||
| 4 | |||
| 5 | <div id="page_editor" class="show_node"> | 1 | <div id="page_editor" class="show_node"> |
| 6 | <table id="content"> | 2 | <h1>Revision <%= @page.revision %>: <%= @page.title %></h1> |
| 7 | <tr> | 3 | |
| 8 | <td class="description">Path</td> | 4 | <div id="content"> |
| 9 | <td><%= @page.public_link %></td> | 5 | <div class="node_description">Actions</div> |
| 10 | </tr> | 6 | <div class="node_content node_info_group"> |
| 11 | <tr> | 7 | <div class="node_info_group_items"> |
| 12 | <td class="description">Author</td> | 8 | <div class="node_info_item"> |
| 13 | <td><%= @page.user.try(:login) %></td> | 9 | <%= link_to 'Show all revisions', node_revisions_path(@node) %> |
| 14 | </tr> | 10 | </div> |
| 15 | <tr> | 11 | </div> |
| 16 | <td class="description">Editor</td> | 12 | </div> |
| 17 | <td><%= @page.editor.try(:login) %></td> | 13 | |
| 18 | </tr> | 14 | <div class="node_description">Path</div> |
| 19 | <% if @page.node.locked? %> | 15 | <div class="node_content"><%= @page.public_link %></div> |
| 20 | <tr> | 16 | |
| 21 | <td class="description">Locked by</td> | 17 | <div class="node_description">Author</div> |
| 22 | <td><%= @page.node.lock_owner.login %></td> | 18 | <div class="node_content"><%= @page.user.try(:login) %></div> |
| 23 | </tr> | 19 | |
| 24 | <% end %> | 20 | <div class="node_description">Editor</div> |
| 25 | <tr> | 21 | <div class="node_content"><%= @page.editor.try(:login) %></div> |
| 26 | <td class="description">Last updated</td> | 22 | |
| 27 | <td><%= @page.updated_at %></td> | 23 | <div class="node_description">Last updated</div> |
| 28 | </tr> | 24 | <div class="node_content"><%= @page.updated_at %></div> |
| 29 | <tr> | 25 | |
| 30 | <td class="description">Published at</td> | 26 | <div class="node_description">Published at</div> |
| 31 | <td><%= @page.published_at %></td> | 27 | <div class="node_content"><%= @page.published_at %></div> |
| 32 | </tr> | 28 | |
| 33 | <tr> | 29 | <div class="node_description">Title</div> |
| 34 | <td class="description">Revision</td> | 30 | <div class="node_content"><%= @page.title %></div> |
| 35 | <td><%= @page.revision %></td> | 31 | |
| 36 | </tr> | 32 | <div class="node_description">Abstract</div> |
| 37 | <tr> | 33 | <div class="node_content"><%= @page.abstract %></div> |
| 38 | <td class="description"><strong>Title</strong></td> | 34 | |
| 39 | <td><%= @page.title %></td> | 35 | <div class="node_description">Body</div> |
| 40 | </tr> | 36 | <div class="node_content"><%= @page.body %></div> |
| 41 | <tr> | 37 | </div> |
| 42 | <td class="description"><strong>Abstract</strong></td> | 38 | </div> |
| 43 | <td><%= @page.abstract %></td> | ||
| 44 | </tr> | ||
| 45 | <tr> | ||
| 46 | <td class="description"><strong>Body</strong></td> | ||
| 47 | <td><%= @page.body %></td> | ||
| 48 | </tr> | ||
| 49 | <tr> | ||
| 50 | <td></td> | ||
| 51 | <td class="right"></td> | ||
| 52 | </tr> | ||
| 53 | </table> | ||
| 54 | </div> \ No newline at end of file | ||
