diff options
Diffstat (limited to 'app')
| -rw-r--r-- | app/views/revisions/diff.html.erb | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/app/views/revisions/diff.html.erb b/app/views/revisions/diff.html.erb index ba320365..5c881f24 100644 --- a/app/views/revisions/diff.html.erb +++ b/app/views/revisions/diff.html.erb | |||
| @@ -71,6 +71,22 @@ | |||
| 71 | <% end %> | 71 | <% end %> |
| 72 | 72 | ||
| 73 | <div id="diffview"> | 73 | <div id="diffview"> |
| 74 | <% current_summary = @locale_summary.find { |s| s[:locale] == @translation_locale } %> | ||
| 75 | <% if current_summary && !current_summary[:changed] %> | ||
| 76 | <% elsewhere = @locale_summary.select { |s| s[:changed] }.map { |s| | ||
| 77 | link_to s[:locale].to_s.upcase, diff_node_revisions_path(@node, | ||
| 78 | start_revision: params[:start_revision], end_revision: params[:end_revision], | ||
| 79 | view: @diff_view, translation_locale: s[:locale]) } %> | ||
| 80 | <p class="diff_unchanged diff_locale_pointer"> | ||
| 81 | <% if elsewhere.any? %> | ||
| 82 | <%= t(".unchanged_here_html", :lang => @translation_locale.to_s.upcase, | ||
| 83 | :others => safe_join(elsewhere, ", ")) %> | ||
| 84 | <% else %> | ||
| 85 | <%= t(".unchanged_anywhere") %> | ||
| 86 | <% end %> | ||
| 87 | </p> | ||
| 88 | <% end %> | ||
| 89 | |||
| 74 | <% if @diff_view == :side_by_side %> | 90 | <% if @diff_view == :side_by_side %> |
| 75 | <div class="diff_side_by_side"> | 91 | <div class="diff_side_by_side"> |
| 76 | <div class="diff_column"> | 92 | <div class="diff_column"> |
