diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2018-09-23 14:08:24 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2018-09-23 14:08:24 +0000 |
commit | a54c69ce87311dfe6b85103037131034044cb9fe (patch) | |
tree | cc85b5dc9dafc53610f124d7dba60d8459034824 /app/views/wiki | |
parent | 8eb8cdc06d6980e8f7cbae21d22264980a93cd01 (diff) | |
download | redmine-a54c69ce87311dfe6b85103037131034044cb9fe.tar.gz redmine-a54c69ce87311dfe6b85103037131034044cb9fe.zip |
Cleanup.
git-svn-id: http://svn.redmine.org/redmine/trunk@17511 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/views/wiki')
-rw-r--r-- | app/views/wiki/show.html.erb | 18 |
1 files changed, 12 insertions, 6 deletions
diff --git a/app/views/wiki/show.html.erb b/app/views/wiki/show.html.erb index 311eec1c4..559d5e0e0 100644 --- a/app/views/wiki/show.html.erb +++ b/app/views/wiki/show.html.erb @@ -24,16 +24,22 @@ "#{l(:label_revision)} #{@content.version}" %> <p> - <%= link_to(("\xc2\xab " + l(:label_previous)), + <% if @content.previous %> + <%= link_to ("\xc2\xab " + l(:label_previous)), :action => 'show', :id => @page.title, :project_id => @page.project, - :version => @content.previous.version) + " - " if @content.previous %> + :version => @content.previous.version %> | + <% end %> <%= "#{l(:label_revision)} #{@content.version}/#{@page.content.version}" %> - <%= '('.html_safe + link_to(l(:label_diff), :controller => 'wiki', :action => 'diff', + <% if @content.previous %> + (<%= link_to l(:label_diff), :controller => 'wiki', :action => 'diff', :id => @page.title, :project_id => @page.project, - :version => @content.version) + ')'.html_safe if @content.previous %> - - <%= link_to((l(:label_next) + " \xc2\xbb"), :action => 'show', + :version => @content.version %>) + <% end %> + <% if @content.next %> + | <%= link_to (l(:label_next) + " \xc2\xbb"), :action => 'show', :id => @page.title, :project_id => @page.project, - :version => @content.next.version) if @content.next %> + :version => @content.next.version %> + <% end %> <br /> <em><%= @content.author ? link_to_user(@content.author) : l(:label_user_anonymous) %>, <%= format_time(@content.updated_on) %> </em><br /> |