Vote #62957
完了DRY: Move repetitive calendar include code from views into helper
開始日:
2008/03/31
期日:
進捗率:
0%
予定工数:
Redmineorg_URL:
category_id:
10
version_id:
2
issue_org_id:
966
author_id:
700
assigned_to_id:
0
comments:
1
status_id:
5
tracker_id:
3
plus1:
0
affected_version:
closed_on:
affected_version_id:
説明
Avoid repetitive code snippets seen in many views:
<% content_for :header_tags do %>
<%= javascript_include_tag 'calendar/calendar' %>
<%= javascript_include_tag "calendar/lang/calendar-#{current_language}.js" %>
<%= javascript_include_tag 'calendar/calendar-setup' %>
<%= stylesheet_link_tag 'calendar' %>
<% end %>
Move that code to ApplicationHelper in call it implicitly when calling calendar_for('field_id').
journals
This patch cleaned the views indeed.
Committed in r1315 with slight changes. Thanks.
--------------------------------------------------------------------------------
いいね!0