From: Jean-Philippe Lang Date: Sun, 23 Sep 2018 13:55:40 +0000 (+0000) Subject: User label_revision instead of label_version for wiki edits (#26575). X-Git-Tag: 4.0.0~163 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=b085b2fce1e244aae43a300578f0d002fbf224da;p=redmine.git User label_revision instead of label_version for wiki edits (#26575). git-svn-id: http://svn.redmine.org/redmine/trunk@17509 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- diff --git a/app/views/wiki/diff.html.erb b/app/views/wiki/diff.html.erb index 335e581f8..2482242fb 100644 --- a/app/views/wiki/diff.html.erb +++ b/app/views/wiki/diff.html.erb @@ -10,12 +10,12 @@ "#{l(:label_version)} #{@diff.content_to.version}" %>

-<%= l(:label_version) %> <%= link_to @diff.content_from.version, :action => 'show', :id => @page.title, :project_id => @page.project, :version => @diff.content_from.version %> +<%= l(:label_revision) %> <%= link_to @diff.content_from.version, :action => 'show', :id => @page.title, :project_id => @page.project, :version => @diff.content_from.version %> (<%= @diff.content_from.author ? @diff.content_from.author.name : l(:label_user_anonymous) %>, <%= format_time(@diff.content_from.updated_on) %>) → -<%= l(:label_version) %> <%= link_to @diff.content_to.version, :action => 'show', +<%= l(:label_revision) %> <%= link_to @diff.content_to.version, :action => 'show', :id => @page.title, :project_id => @page.project, :version => @diff.content_to.version %>/<%= @page.content.version %> diff --git a/app/views/wiki/show.html.erb b/app/views/wiki/show.html.erb index 8dd106818..caa35eb08 100644 --- a/app/views/wiki/show.html.erb +++ b/app/views/wiki/show.html.erb @@ -21,13 +21,13 @@ <% unless @content.current_version? %> <%= title [@page.pretty_title, project_wiki_page_path(@page.project, @page.title, :version => nil)], [l(:label_history), history_project_wiki_page_path(@page.project, @page.title)], - "#{l(:label_version)} #{@content.version}" %> + "#{l(:label_revision)} #{@content.version}" %>

<%= link_to(("\xc2\xab " + l(:label_previous)), :action => 'show', :id => @page.title, :project_id => @page.project, :version => @content.previous.version) + " - " if @content.previous %> - <%= "#{l(:label_version)} #{@content.version}/#{@page.content.version}" %> + <%= "#{l(:label_revision)} #{@content.version}/#{@page.content.version}" %> <%= '('.html_safe + link_to(l(:label_diff), :controller => 'wiki', :action => 'diff', :id => @page.title, :project_id => @page.project, :version => @content.version) + ')'.html_safe if @content.previous %> -