Feature #3058 » show-notes-only-v3.diff
| app/helpers/issues_helper.rb (working copy) | ||
|---|---|---|
| 511 | 511 |
end |
| 512 | 512 |
end |
| 513 | 513 |
end |
| 514 | ||
| 515 |
def issue_history_tabs |
|
| 516 |
tabs = [ |
|
| 517 |
{:name => 'all', :action => :edit_project, :partial => 'issues/history/all', :label => :label_issue_history_all},
|
|
| 518 |
{:name => 'notes', :action => :index, :partial => 'issues/history/notes', :label => :label_issue_history_notes}
|
|
| 519 |
] |
|
| 520 |
end |
|
| 514 | 521 |
end |
| app/views/issues/history/_all.html.erb (working copy) | ||
|---|---|---|
| 1 |
<script> |
|
| 2 |
$('#history #tab-all').on('click', function() {
|
|
| 3 |
$('.journal:not(.has-notes), .journal>.details').slideDown('fast');
|
|
| 4 |
}); |
|
| 5 |
</script> |
|
| app/views/issues/history/_notes.html.erb (working copy) | ||
|---|---|---|
| 1 |
<script> |
|
| 2 |
$('#history #tab-notes').on('click', function() {
|
|
| 3 |
$('.journal:not(.has-notes), .journal>.details').slideUp('fast');
|
|
| 4 |
}); |
|
| 5 |
</script> |
|
| app/views/issues/show.html.erb (working copy) | ||
|---|---|---|
| 121 | 121 |
<% if @journals.present? %> |
| 122 | 122 |
<div id="history"> |
| 123 | 123 |
<h3><%=l(:label_history)%></h3> |
| 124 |
<%= render_tabs issue_history_tabs %> |
|
| 124 | 125 |
<%= render :partial => 'history', :locals => { :issue => @issue, :journals => @journals } %>
|
| 125 | 126 |
</div> |
| 126 | 127 |
<% end %> |
| config/locales/en.yml (working copy) | ||
|---|---|---|
| 988 | 988 |
label_api: API |
| 989 | 989 |
label_field_format_enumeration: Key/value list |
| 990 | 990 |
label_default_values_for_new_users: Default values for new users |
| 991 |
label_issue_history_all: All |
|
| 992 |
label_issue_history_notes: Notes |
|
| 991 | 993 | |
| 992 | 994 |
button_login: Login |
| 993 | 995 |
button_submit: Submit |
| config/routes.rb (working copy) | ||
|---|---|---|
| 48 | 48 |
match '/issues/context_menu', :to => 'context_menus#issues', :as => 'issues_context_menu', :via => [:get, :post] |
| 49 | 49 |
match '/issues/changes', :to => 'journals#index', :as => 'issue_changes', :via => :get |
| 50 | 50 |
match '/issues/:id/quoted', :to => 'journals#new', :id => /\d+/, :via => :post, :as => 'quoted_issue' |
| 51 |
get '/issues/:id/:tab', :to => 'issues#show' |
|
| 51 | 52 | |
| 52 | 53 |
resources :journals, :only => [:edit, :update] do |
| 53 | 54 |
member do |
| ... | ... | |
| 154 | 155 |
end |
| 155 | 156 |
end |
| 156 | 157 |
end |
| 157 |
|
|
| 158 | ||
| 158 | 159 |
match 'wiki/index', :controller => 'wiki', :action => 'index', :via => :get |
| 159 | 160 |
resources :wiki, :except => [:index, :new, :create], :as => 'wiki_page' do |
| 160 | 161 |
member do |