diff --git a/app/controllers/journals_controller.rb b/app/controllers/journals_controller.rb index a38bd4096..88502a171 100644 --- a/app/controllers/journals_controller.rb +++ b/app/controllers/journals_controller.rb @@ -45,6 +45,9 @@ class JournalsController < ApplicationController end def diff + # 顶部导航 + @project_menu_type = 2 + @issue = @journal.issue if params[:detail_id].present? @detail = @journal.details.find_by_id(params[:detail_id]) @@ -55,7 +58,7 @@ class JournalsController < ApplicationController @diff = Redmine::Helpers::Diff.new(@detail.value, @detail.old_value) respond_to do |format| format.html { - render :layout => 'new_base' + render :layout => 'base_projects' } end end diff --git a/app/views/journals/diff.html.erb b/app/views/journals/diff.html.erb index b842d87d0..4bd23728e 100644 --- a/app/views/journals/diff.html.erb +++ b/app/views/journals/diff.html.erb @@ -1,10 +1,17 @@ -
由<%= @journal.user %> 更新于 <%= format_time @journal.created_on %>
+由<%= link_to @journal.user, user_path(@journal.user), :class => "c_blue" %> 更新于 <%= format_time @journal.created_on %>
+ +<%= link_to l(:button_back), issue_path(@issue), :onclick => 'history.back(); return false;' %>
+ + <% html_title "#{@issue.tracker.name} ##{@issue.id}: #{@issue.subject}" %> -<%= link_to l(:button_back), issue_path(@issue), :onclick => 'history.back(); return false;' %>
- -<% html_title "#{@issue.tracker.name} ##{@issue.id}: #{@issue.subject}" %>