プロジェクト

全般

プロフィール

Vote #62957

完了

DRY: Move repetitive calendar include code from views into helper

Admin Redmine さんがほぼ2年前に追加. ほぼ2年前に更新.

ステータス:
Closed
優先度:
低め
担当者:
-
カテゴリ:
UI_10
対象バージョン:
開始日:
2008/03/31
期日:
進捗率:

0%

予定工数:
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:
ステータス-->[Closed]

説明

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.
--------------------------------------------------------------------------------

Admin Redmine さんがほぼ2年前に更新

  • カテゴリUI_10 にセット
  • 対象バージョン0.8_2 にセット

他の形式にエクスポート: Atom PDF

いいね!0
いいね!0