diff options
Diffstat (limited to 'app/views/revisions/diff.html.erb')
| -rw-r--r-- | app/views/revisions/diff.html.erb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/app/views/revisions/diff.html.erb b/app/views/revisions/diff.html.erb index 25f5ad04..17146615 100644 --- a/app/views/revisions/diff.html.erb +++ b/app/views/revisions/diff.html.erb | |||
| @@ -1,6 +1,6 @@ | |||
| 1 | <h1><%= t(".title") %></h1> | 1 | <h1><%= t(".title") %></h1> |
| 2 | 2 | ||
| 3 | <p class="node_action_bar standalone_action_bar"> | 3 | <p class="node_action_bar"> |
| 4 | <%= link_to t(".revisions_link"), node_revisions_path(@node) %> | 4 | <%= link_to t(".revisions_link"), node_revisions_path(@node) %> |
| 5 | </p> | 5 | </p> |
| 6 | 6 | ||
| @@ -23,7 +23,7 @@ | |||
| 23 | <%= t(".comparing_html", :start => start_control, :end => end_control, | 23 | <%= t(".comparing_html", :start => start_control, :end => end_control, |
| 24 | :lang => locale_control, :view => view_control) %> | 24 | :lang => locale_control, :view => view_control) %> |
| 25 | </p> | 25 | </p> |
| 26 | <p class="node_action_bar standalone_action_bar diff_step_bar"> | 26 | <p class="node_action_bar diff_step_bar"> |
| 27 | <% if earlier %> | 27 | <% if earlier %> |
| 28 | <%= link_to t(".pair_link", :from => earlier.first, :to => earlier.last), diff_node_revisions_path(@node, | 28 | <%= link_to t(".pair_link", :from => earlier.first, :to => earlier.last), diff_node_revisions_path(@node, |
| 29 | start_revision: earlier.first, end_revision: earlier.last, | 29 | start_revision: earlier.first, end_revision: earlier.last, |
| @@ -43,13 +43,13 @@ | |||
| 43 | <% end %> | 43 | <% end %> |
| 44 | 44 | ||
| 45 | <% unless numeric_comparison %> | 45 | <% unless numeric_comparison %> |
| 46 | <p class="node_action_bar standalone_action_bar"> | 46 | <p class="node_action_bar"> |
| 47 | <%= link_to t(".compare_numbered"), node_revisions_path(@node) %> | 47 | <%= link_to t(".compare_numbered"), node_revisions_path(@node) %> |
| 48 | </p> | 48 | </p> |
| 49 | <% end %> | 49 | <% end %> |
| 50 | 50 | ||
| 51 | <% if @available_layer_pairs.present? %> | 51 | <% if @available_layer_pairs.present? %> |
| 52 | <div class="node_action_bar standalone_action_bar"> | 52 | <div class="node_action_bar"> |
| 53 | <% @available_layer_pairs.each do |pair| %> | 53 | <% @available_layer_pairs.each do |pair| %> |
| 54 | <% next if [params[:start_revision].to_s, params[:end_revision].to_s].sort == pair.map(&:to_s).sort %> | 54 | <% next if [params[:start_revision].to_s, params[:end_revision].to_s].sort == pair.map(&:to_s).sort %> |
| 55 | <%= button_to t("nodes.show.diff_layers", :from => t("nodes.show.layer_#{pair.first}"), :to => t("nodes.show.layer_#{pair.last}")), | 55 | <%= button_to t("nodes.show.diff_layers", :from => t("nodes.show.layer_#{pair.first}"), :to => t("nodes.show.layer_#{pair.last}")), |
