プロジェクト

全般

プロフィール

Vote #64524

完了

New View Hooks

Admin Redmine さんが3年以上前に追加. 3年以上前に更新.

ステータス:
Closed
優先度:
通常
担当者:
-
カテゴリ:
Plugin API_20
対象バージョン:
開始日:
2009/01/27
期日:
進捗率:

100%

予定工数:
category_id:
20
version_id:
9
issue_org_id:
2599
author_id:
291
assigned_to_id:
5
comments:
4
status_id:
5
tracker_id:
3
plus1:
0
affected_version:
closed_on:
affected_version_id:
ステータス-->[Closed]

説明

Here is a patch with five new view hooks that I found useful. Maybe they can be included in the official version.

The 2nd hook in @custom_fields/_form.rhtml@ is actually four hooks (one hook for each type of custom field: for example @view_custom_fields_form_user_custom_field@).

app/views/custom_fields/_form.rhtml:
  * [ 67] :view_custom_fields_form_upper_box, :custom_field => @custom_field, :form => f)
  * [ 97] :"view_custom_fields_form_#{@custom_field.type.to_s.underscore}", :custom_field => @custom_field, :form => f)

app/views/issue_statuses/_form.rhtml:
  * [ 14] :view_issue_statuses_form, :issue_status => @issue_status)

app/views/my/account.rhtml:
  * [ 22] :view_my_account, :user => @user, :form => f)

app/views/users/_form.rhtml:
  * [ 16] :view_users_form, :user => @user, :form => f)

journals

I have added two more hooks:
<pre>
app/controllers/custom_fields_controller.rb:
* [ 38] :controller_custom_fields_new_after_save, :params => params, :custom_field => @custom_field)
* [ 48] :controller_custom_fields_edit_after_save, :params => params, :custom_field => @custom_field)
</pre>

--------------------------------------------------------------------------------
I don't know if this is the right place, but I've added a hook that I find useful, too -- it's after the description on the show issues page. I'd appreciate it if it could be made 'official'.
--------------------------------------------------------------------------------
Thank you for the patches, I've added these hooks in r2611. I'm looking forward to seeing what you come up with for these.

* :controller_custom_fields_new_after_save
* :controller_custom_fields_edit_after_save
* :view_custom_fields_form_upper_box
* :view_custom_fields_form_* (type of custom field)
* :view_issue_statuses_form
* :view_issues_show_description_bottom
* :view_my_account
* :view_users_form
--------------------------------------------------------------------------------
Committed in 0.8-stable in r2654.
--------------------------------------------------------------------------------

Admin Redmine さんが3年以上前に更新

  • カテゴリPlugin API_20 にセット
  • 対象バージョン0.8.3_9 にセット

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

いいね!0
いいね!0