diff options
| author | hukl <contact@smyck.org> | 2009-06-13 15:42:13 +0200 |
|---|---|---|
| committer | hukl <contact@smyck.org> | 2009-06-13 15:42:13 +0200 |
| commit | edd450502f74dcbe8175dfddee8b50d14424a390 (patch) | |
| tree | c5b8c1b9b4ba57151cc72a6235e10807916ddeb4 /app/views/nodes/edit.html.erb | |
| parent | 4b60f3637c63c40f7b542bcb89cc48f0a6315e0b (diff) | |
added js search widget with clickable results that will take the user to the brand new "show" version of the page. so the user doesn't create new revisions and locks all the time when he / she only wants to take a look at it.
Diffstat (limited to 'app/views/nodes/edit.html.erb')
| -rw-r--r-- | app/views/nodes/edit.html.erb | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/app/views/nodes/edit.html.erb b/app/views/nodes/edit.html.erb index e957b5d..f37a24b 100644 --- a/app/views/nodes/edit.html.erb +++ b/app/views/nodes/edit.html.erb | |||
| @@ -1,6 +1,7 @@ | |||
| 1 | <% content_for :subnavigation do %> | 1 | <% content_for :subnavigation do %> |
| 2 | <%= link_to 'metadata', '#', :id => 'button', :class => "unselected" %> | 2 | <%= link_to 'metadata', '#', :id => 'button', :class => "unselected" %> |
| 3 | <%= link_to 'Preview', @node %> | 3 | <%= link_to 'Show', @node %> |
| 4 | <%= link_to 'Preview', preview_page_path(@draft) %> | ||
| 4 | <%= link_to 'Publish', publish_node_path, :method => :put, :confirm => "Publish this draft?" %> | 5 | <%= link_to 'Publish', publish_node_path, :method => :put, :confirm => "Publish this draft?" %> |
| 5 | <%= link_to 'Revisions', revision_path(params[:id]) %> | 6 | <%= link_to 'Revisions', revision_path(params[:id]) %> |
| 6 | <% end %> | 7 | <% end %> |
| @@ -36,6 +37,10 @@ | |||
| 36 | 37 | ||
| 37 | <table id="content"> | 38 | <table id="content"> |
| 38 | <tr> | 39 | <tr> |
| 40 | <th class="description"></th> | ||
| 41 | <th class="content"></th> | ||
| 42 | </tr> | ||
| 43 | <tr> | ||
| 39 | <td class="description">Title</td> | 44 | <td class="description">Title</td> |
| 40 | <td><%= d.text_field :title %></td> | 45 | <td><%= d.text_field :title %></td> |
| 41 | </tr> | 46 | </tr> |
