app/views/wiki/bliki_revision.rhtml in Pimki-1.0.092 vs app/views/wiki/bliki_revision.rhtml in Pimki-1.1.092

- old
+ new

@@ -18,26 +18,26 @@ <%= "Revision from #{@revision.pretty_created_at} by" %> <%# @page.web.pages[@revision.author] ? WikiWords.existing_page_link(@revision.author) : WikiWords.unexisting_page_link(@revision.author) %> </div> <div class="navigation"> + <a href="../bliki_edit/<%= @page.name %>" class="navlink">Edit</a> | <% if @revision.previous_revision %> <a href="../bliki_revision/<%= @page.name %>?rev=<%= @revision.previous_revision.number %>" class="navlink">Lower</a> - <% @lower = true - end - if @revision.next_revision - if @lower %> - - - <% end %> - <a href="../bliki_revision/<%= @page.name %>?rev=<%= @revision.next_revision.number %>" class="navlink">Higher</a> + <% else %> + <span style="color:grey">Lower</span> + <% end %> - + <% if @revision.next_revision %> + <a href="../bliki_revision/<%= @page.name %>?rev=<%= @revision.next_revision.number %>" class="navlink">Higher</a> + <% else %> + <span style="color:grey">Higher</span> <% end %> <%= '|' if @revision.previous_revision or @revision.next_revision %> <a href="../bliki_delete/<%= @page.name %>" class="navlink" onClick="return confirm('Are you sure you want delete this entry completely?')">Delete All</a> <% if @revision.next_revision %> - | <a href="../bliki_revision/<%= @page.name %>?rev=<%= @page.revisions.length - 1 %>" class="navlink">Back to current</a> - <% else %> - | <a href="../rollback_bliki/<%= @page.name %>?rev=<%= @revision.number - 1 %>" + | <a href="../bliki_revision/<%= @page.name %>?rev=<%= @page.revisions.length - 1 %>" class="navlink">Back to current</a> + | <a href="../rollback_bliki/<%= @page.name %>?rev=<%= @revision.number %>" class="navlink" onClick="return confirm('Are you sure you want reset the page to this revision?')">Rollback to here</a> <% end %> <% if @page.references.length > 0 %> \ No newline at end of file