##// END OF EJS Templates
Removed IssuesController#history, all changes are now displayed on issues/show (not only the last 15)....
Jean-Philippe Lang -
r610:6862b9790904
parent child
Show More
@@ -37,13 +37,7 class IssuesController < ApplicationController
37 def show
37 def show
38 @status_options = @issue.status.find_new_statuses_allowed_to(logged_in_user.role_for_project(@project), @issue.tracker) if logged_in_user
38 @status_options = @issue.status.find_new_statuses_allowed_to(logged_in_user.role_for_project(@project), @issue.tracker) if logged_in_user
39 @custom_values = @issue.custom_values.find(:all, :include => :custom_field)
39 @custom_values = @issue.custom_values.find(:all, :include => :custom_field)
40 @journals_count = @issue.journals.count
41 @journals = @issue.journals.find(:all, :include => [:user, :details], :limit => 15, :order => "#{Journal.table_name}.created_on desc")
42 end
43
44 def history
45 @journals = @issue.journals.find(:all, :include => [:user, :details], :order => "#{Journal.table_name}.created_on desc")
40 @journals = @issue.journals.find(:all, :include => [:user, :details], :order => "#{Journal.table_name}.created_on desc")
46 @journals_count = @journals.length
47 end
41 end
48
42
49 def export_pdf
43 def export_pdf
@@ -1,11 +1,13
1 <% note_id = journals.length %>
1 <% for journal in journals %>
2 <% for journal in journals %>
2 <h4><%= format_time(journal.created_on) %> - <%= journal.user.name %></h4>
3 <h4><div style="float:right;"><%= link_to "##{note_id}", :anchor => "note-#{note_id}" %></div>
4 <%= content_tag('a', '', :name => "note-#{note_id}")%>
5 <%= format_time(journal.created_on) %> - <%= journal.user.name %></h4>
3 <ul>
6 <ul>
4 <% for detail in journal.details %>
7 <% for detail in journal.details %>
5 <li><%= show_detail(detail) %></li>
8 <li><%= show_detail(detail) %></li>
6 <% end %>
9 <% end %>
7 </ul>
10 </ul>
8 <% if journal.notes? %>
11 <%= textilizable(journal.notes) unless journal.notes.blank? %>
9 <%= textilizable(journal.notes) %>
12 <% note_id -= 1 %>
10 <% end %>
11 <% end %>
13 <% end %>
@@ -81,14 +81,10 end %>
81 </div>
81 </div>
82 <% end %>
82 <% end %>
83
83
84 <% if @journals_count > 0 %>
84 <% if @journals.any? %>
85 <div id="history" class="box">
85 <div id="history" class="box">
86 <h3><%=l(:label_history)%>
86 <h3><%=l(:label_history)%></h3>
87 <% if @journals_count > @journals.length %>(<%= l(:label_last_changes, @journals.length) %>)<% end %></h3>
88 <%= render :partial => 'history', :locals => { :journals => @journals } %>
87 <%= render :partial => 'history', :locals => { :journals => @journals } %>
89 <% if @journals_count > @journals.length %>
90 <p><center><small><%= link_to l(:label_change_view_all), :action => 'history', :id => @issue %></small></center></p>
91 <% end %>
92 </div>
88 </div>
93 <% end %>
89 <% end %>
94
90
1 NO CONTENT: file was removed
NO CONTENT: file was removed
General Comments 0
You need to be logged in to leave comments. Login now