app/views/wiki/bliki_revision.rhtml in Pimki-1.3.092 vs app/views/wiki/bliki_revision.rhtml in Pimki-1.4.092
- old
+ new
@@ -1,91 +1,91 @@
-<% @title = "#{@page.plain_name} (Rev ##{@revision.number})" %>
-<%= sub_template "top" %>
-
-<table width="100%">
-<tr style="background-color:dfd">
- <td width="70%"><h4><%= @revision.page.name %></h4></td>
- <th><small><%= @revision.pretty_created_at %></small></th>
-</tr>
-<tr>
- <td colspan="2">
- <div id="revision">
- <%= @revision.display_content %>
- </div>
- <div id="changes" style="display: none">
- <p style="background: #eee; padding: 3px; border: 1px solid silver">
- <small>
- Showing changes from revision #<%= @page.number - 1 %> to #<%= @page.number %>:
- <ins class="diffins">Added</ins> | <del class="diffdel">Removed</del>
- </small>
- </p>
-
- <%= @revision.display_diff %>
- </div>
- </td>
-</tr>
-<tr style="background-color:efe">
- <th colspan="2" align="right"><small><%= web.make_link(@revision.author, nil, {}) %></small></th>
-</tr>
-</table>
-
-<div class="byline">
- <%= "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>
- <% 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>
- | <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 %>
- <small>
- | Referenced by: <%= @page.references.collect { |ref| "<a href='#{ref.name}'>#{ref.name}</a>" }.join(", ") %>
- </small>
- <% end %>
-
- <% if @page.revisions.length > 1 %>
- <span id="show_changes">
- | <a href="#" onClick="toggleChanges(); return false;">See changes</a>
- </span>
- <span id="hide_changes" style="display: none">
- | <a href="#" onClick="toggleChanges(); return false;">Hide changes</a>
- </span>
- <% end %>
-
-</div>
-
-<script language="Javascript">
- function toggleChanges() {
- if (document.getElementById("changes").style.display == "none") {
- document.getElementById("changes").style.display = "block";
- document.getElementById("revision").style.display = "none";
- document.getElementById("show_changes").style.display = "none";
- document.getElementById("hide_changes").style.display = "inline";
- } else {
- document.getElementById("changes").style.display = "none";
- document.getElementById("revision").style.display = "block";
- document.getElementById("show_changes").style.display = "inline";
- document.getElementById("hide_changes").style.display = "none";
- }
- }
-</script>
-
+<% @title = "#{@page.plain_name} (Rev ##{@revision.number})" %>
+<%= sub_template "top" %>
+
+<table width="100%">
+<tr style="background-color:dfd">
+ <td width="70%"><h4><%= @revision.page.name %></h4></td>
+ <th><small><%= @revision.pretty_created_at %></small></th>
+</tr>
+<tr>
+ <td colspan="2">
+ <div id="revision">
+ <%= @revision.display_content %>
+ </div>
+ <div id="changes" style="display: none">
+ <p style="background: #eee; padding: 3px; border: 1px solid silver">
+ <small>
+ Showing changes from revision #<%= @page.number - 1 %> to #<%= @page.number %>:
+ <ins class="diffins">Added</ins> | <del class="diffdel">Removed</del>
+ </small>
+ </p>
+
+ <%= @revision.display_diff %>
+ </div>
+ </td>
+</tr>
+<tr style="background-color:efe">
+ <th colspan="2" align="right"><small><%= web.make_link(@revision.author, nil, {}) %></small></th>
+</tr>
+</table>
+
+<div class="byline">
+ <%= "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>
+ <% 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>
+ | <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 %>
+ <small>
+ | Referenced by: <%= @page.references.collect { |ref| "<a href='#{ref.name}'>#{ref.name}</a>" }.join(", ") %>
+ </small>
+ <% end %>
+
+ <% if @page.revisions.length > 1 %>
+ <span id="show_changes">
+ | <a href="#" onClick="toggleChanges(); return false;">See changes</a>
+ </span>
+ <span id="hide_changes" style="display: none">
+ | <a href="#" onClick="toggleChanges(); return false;">Hide changes</a>
+ </span>
+ <% end %>
+
+</div>
+
+<script language="Javascript">
+ function toggleChanges() {
+ if (document.getElementById("changes").style.display == "none") {
+ document.getElementById("changes").style.display = "block";
+ document.getElementById("revision").style.display = "none";
+ document.getElementById("show_changes").style.display = "none";
+ document.getElementById("hide_changes").style.display = "inline";
+ } else {
+ document.getElementById("changes").style.display = "none";
+ document.getElementById("revision").style.display = "block";
+ document.getElementById("show_changes").style.display = "inline";
+ document.getElementById("hide_changes").style.display = "none";
+ }
+ }
+</script>
+
<%= sub_template "bottom" %>
\ No newline at end of file