Performance improvement on calendar and gantt (about 45% on gantt for large number of issues).
Partial issues/_tooltip is replaced by an helper and some translated strings are now cached. git-svn-id: http://redmine.rubyforge.org/svn/trunk@794 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
@@ -1,6 +0,0 @@
|
||||
<%= link_to_issue issue %></strong>: <%=h issue.subject %><br />
|
||||
<br />
|
||||
<strong><%= l(:field_start_date) %></strong>: <%= format_date(issue.start_date) %><br />
|
||||
<strong><%= l(:field_due_date) %></strong>: <%= format_date(issue.due_date) %><br />
|
||||
<strong><%= l(:field_assigned_to) %></strong>: <%= issue.assigned_to ? issue.assigned_to.name : "-" %><br />
|
||||
<strong><%= l(:field_priority) %></strong>: <%= issue.priority.name %>
|
||||
@@ -49,7 +49,7 @@ while day <= @date_to
|
||||
<%= h(truncate(i.subject, 30)) %>
|
||||
</small>
|
||||
<span class="tip">
|
||||
<%= render :partial => "issues/tooltip", :locals => { :issue => i }%>
|
||||
<%= render_issue_tooltip i %>
|
||||
</span>
|
||||
</div>
|
||||
<% else %>
|
||||
|
||||
@@ -192,7 +192,7 @@ top = headers_height + 10
|
||||
<% # === tooltip === %>
|
||||
<div class="tooltip" style="position: absolute;top:<%= top %>px;left:<%= i_left %>px;width:<%= i_width %>px;height:12px;">
|
||||
<span class="tip">
|
||||
<%= render :partial => "issues/tooltip", :locals => { :issue => i }%>
|
||||
<%= render_issue_tooltip i %>
|
||||
</span></div>
|
||||
<% else
|
||||
i_left = ((i.start_date - @date_from)*zoom).floor
|
||||
|
||||
@@ -29,9 +29,9 @@
|
||||
<td align="center">
|
||||
<% if entry.issue %>
|
||||
<div class="tooltip">
|
||||
<%= link_to "#{entry.issue.tracker.name} ##{entry.issue.id}", {:action => 'details', :issue_id => entry.issue } %>
|
||||
<%= link_to_issue entry.issue %>
|
||||
<span class="tip">
|
||||
<%= render :partial => "issues/tooltip", :locals => { :issue => entry.issue }%>
|
||||
<%= render_issue_tooltip entry.issue %>
|
||||
</span>
|
||||
</div>
|
||||
<% end %>
|
||||
|
||||
Reference in New Issue
Block a user