Skip to content

Commit

Permalink
Updated show.html.erb to use html_safe output of helpers.
Browse files Browse the repository at this point in the history
Also deleted redunand method in applications_helper.rb, with the whole helper.

This is backwards compatible to Rails 2.3.8, which should be OK for most Redmine 1.x releases.
  • Loading branch information
kulesa committed Jul 7, 2012
1 parent 3d57035 commit 6fcd6de
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 9 deletions.
5 changes: 0 additions & 5 deletions app/helpers/application_helper.rb

This file was deleted.

8 changes: 4 additions & 4 deletions app/views/gantts/show.html.erb
Expand Up @@ -74,7 +74,7 @@ t_height = g_height + headers_height
<div style="right:-2px;width:<%= subject_width %>px;height:<%= t_height %>px;border-left: 1px solid #c0c0c0;overflow:hidden;" class="gantt_hdr"></div>

<div class="gantt_subjects">
<%= @gantt.subjects %>
<%= @gantt.subjects.html_safe %>
</div>

</div>
Expand Down Expand Up @@ -155,7 +155,7 @@ if show_days
end
end %>
<%= @gantt.lines %>
<%= @gantt.lines.html_safe %>
<%
#
Expand All @@ -172,8 +172,8 @@ if Date.today >= @gantt.date_from and Date.today <= @gantt.date_to %>

<table width="100%">
<tr>
<td align="left"><%= link_to_content_update('&#171; ' + l(:label_previous), params.merge(@gantt.params_previous)) %></td>
<td align="right"><%= link_to_content_update(l(:label_next) + ' &#187;', params.merge(@gantt.params_next)) %></td>
<td align="left"><%= link_to('&#171; ' + l(:label_previous), params.merge(@gantt.params_previous)) %></td>
<td align="right"><%= link_to(l(:label_next) + ' &#187;', params.merge(@gantt.params_next)) %></td>
</tr>
</table>

Expand Down

0 comments on commit 6fcd6de

Please sign in to comment.