diff options
Diffstat (limited to 'app/views/nodes')
| -rw-r--r-- | app/views/nodes/_preview.html.erb | 5 | ||||
| -rw-r--r-- | app/views/nodes/edit.html.erb | 7 | ||||
| -rw-r--r-- | app/views/nodes/index.html.erb | 4 | ||||
| -rw-r--r-- | app/views/nodes/show.html.erb | 6 |
4 files changed, 18 insertions, 4 deletions
diff --git a/app/views/nodes/_preview.html.erb b/app/views/nodes/_preview.html.erb new file mode 100644 index 00000000..e8d7b9fa --- /dev/null +++ b/app/views/nodes/_preview.html.erb | |||
| @@ -0,0 +1,5 @@ | |||
| 1 | <div id="preview_disclaimer"> | ||
| 2 | <strong>Preview draft.</strong> | ||
| 3 | Clicking on links will redirected you to the public site. | ||
| 4 | <%= link_to 'Back to admin interface', nodes_path %> | ||
| 5 | </div \ No newline at end of file | ||
diff --git a/app/views/nodes/edit.html.erb b/app/views/nodes/edit.html.erb index 929bbf6a..2dade0fe 100644 --- a/app/views/nodes/edit.html.erb +++ b/app/views/nodes/edit.html.erb | |||
| @@ -13,9 +13,14 @@ | |||
| 13 | <%= f.error_messages %> | 13 | <%= f.error_messages %> |
| 14 | 14 | ||
| 15 | <% fields_for @draft do |d| %> | 15 | <% fields_for @draft do |d| %> |
| 16 | |||
| 17 | <p> | ||
| 18 | <%= d.label :published_at %><br /> | ||
| 19 | <%= d.datetime_select :published_at %> | ||
| 20 | </p> | ||
| 16 | <p> | 21 | <p> |
| 17 | <%= d.label :template_name %> | 22 | <%= d.label :template_name %> |
| 18 | <%= d.select :template_name, custom_page_templates %> | 23 | <%= d.select :template_name, custom_page_templates, {:prompt => 'Select Template'} %> |
| 19 | </p> | 24 | </p> |
| 20 | <p> | 25 | <p> |
| 21 | <%= d.label :title %><br /> | 26 | <%= d.label :title %><br /> |
diff --git a/app/views/nodes/index.html.erb b/app/views/nodes/index.html.erb index 833ffed8..a2a42b1a 100644 --- a/app/views/nodes/index.html.erb +++ b/app/views/nodes/index.html.erb | |||
| @@ -11,6 +11,7 @@ | |||
| 11 | <th class="path">Path</th> | 11 | <th class="path">Path</th> |
| 12 | <th class="actions">Actions</th> | 12 | <th class="actions">Actions</th> |
| 13 | <th class="editor">Locked by</th> | 13 | <th class="editor">Locked by</th> |
| 14 | <th class="revision">Rev.</th> | ||
| 14 | </tr> | 15 | </tr> |
| 15 | <% @nodes.each do |node| %> | 16 | <% @nodes.each do |node| %> |
| 16 | <tr class="<%= cycle("even", "odd") %>"> | 17 | <tr class="<%= cycle("even", "odd") %>"> |
| @@ -29,6 +30,9 @@ | |||
| 29 | <td> | 30 | <td> |
| 30 | <%= "#{node.draft.user.login}" if node.draft && node.draft.user %> | 31 | <%= "#{node.draft.user.login}" if node.draft && node.draft.user %> |
| 31 | </td> | 32 | </td> |
| 33 | <td> | ||
| 34 | <%= node.head.revision if node.head %> | ||
| 35 | </td> | ||
| 32 | </tr> | 36 | </tr> |
| 33 | <% end %> | 37 | <% end %> |
| 34 | </table> | 38 | </table> |
diff --git a/app/views/nodes/show.html.erb b/app/views/nodes/show.html.erb index dd37c280..67dd7fc5 100644 --- a/app/views/nodes/show.html.erb +++ b/app/views/nodes/show.html.erb | |||
| @@ -1,5 +1,5 @@ | |||
| 1 | <h1>Node</h1> | 1 | <h1>Node</h1> |
| 2 | 2 | ||
| 3 | <%= @node.unique_name %> | 3 | There is no draft to preview. Click <%= link_to 'edit', edit_node_path %> to |
| 4 | 4 | create one or view the currently | |
| 5 | <%= link_to 'Edit', edit_node_path %> \ No newline at end of file | 5 | <%= link_to_path 'published version', @node.unique_path %>. \ No newline at end of file |
