Index: app/helpers/issues_helper.rb =================================================================== --- app/helpers/issues_helper.rb (revision 15148) +++ app/helpers/issues_helper.rb (working copy) @@ -511,4 +511,11 @@ end end end + + def issue_history_tabs + tabs = [ + {:name => 'all', :action => :edit_project, :partial => 'issues/history/all', :label => :label_issue_history_all}, + {:name => 'notes', :action => :index, :partial => 'issues/history/notes', :label => :label_issue_history_notes} + ] + end end Index: app/views/issues/history/_all.html.erb =================================================================== --- app/views/issues/history/_all.html.erb (revision 0) +++ app/views/issues/history/_all.html.erb (working copy) @@ -0,0 +1,5 @@ + Index: app/views/issues/history/_notes.html.erb =================================================================== --- app/views/issues/history/_notes.html.erb (revision 0) +++ app/views/issues/history/_notes.html.erb (working copy) @@ -0,0 +1,5 @@ + Index: app/views/issues/show.html.erb =================================================================== --- app/views/issues/show.html.erb (revision 15148) +++ app/views/issues/show.html.erb (working copy) @@ -121,6 +121,7 @@ <% if @journals.present? %>

<%=l(:label_history)%>

+<%= render_tabs issue_history_tabs %> <%= render :partial => 'history', :locals => { :issue => @issue, :journals => @journals } %>
<% end %> Index: config/locales/en.yml =================================================================== --- config/locales/en.yml (revision 15148) +++ config/locales/en.yml (working copy) @@ -988,6 +988,8 @@ label_api: API label_field_format_enumeration: Key/value list label_default_values_for_new_users: Default values for new users + label_issue_history_all: All + label_issue_history_notes: Notes button_login: Login button_submit: Submit Index: config/routes.rb =================================================================== --- config/routes.rb (revision 15148) +++ config/routes.rb (working copy) @@ -48,6 +48,7 @@ match '/issues/context_menu', :to => 'context_menus#issues', :as => 'issues_context_menu', :via => [:get, :post] match '/issues/changes', :to => 'journals#index', :as => 'issue_changes', :via => :get match '/issues/:id/quoted', :to => 'journals#new', :id => /\d+/, :via => :post, :as => 'quoted_issue' + get '/issues/:id/:tab', :to => 'issues#show' resources :journals, :only => [:edit, :update] do member do @@ -154,7 +155,7 @@ end end end - + match 'wiki/index', :controller => 'wiki', :action => 'index', :via => :get resources :wiki, :except => [:index, :new, :create], :as => 'wiki_page' do member do