Skip to content

Instantly share code, notes, and snippets.

@alexbevi
Last active November 1, 2021 10:09
Show Gist options
  • Save alexbevi/7017715 to your computer and use it in GitHub Desktop.
Save alexbevi/7017715 to your computer and use it in GitHub Desktop.
A list of the view hooks that are registered in Redmine

Redmine View Hooks

The following is a list of the registered view hooks available in Redmine, as of version 2.3.3.

These have been listed in the form of

:name_of_hook
path/to/file: { :param_1, :param_2, ... :param_n}

ViewHooks

:view_reports_issue_report_split_content_left
reports/issue_report.html.erb: { :project }

:view_reports_issue_report_split_content_right
reports/issue_report.html.erb: { :project }

:view_issue_statuses_form
issue_statuses/_form.html.erb: { :issue_status_status }

:view_custom_fields_form_upper_box
custom_fields/_form.html.erb: { :custom_field, :form }

:"view_custom_fields_form_#{@custom_field.type.to_s.underscore}"
custom_fields/_form.html.erb: { :custom_field, :form }

:view_journals_update_js_bottom
journals/update.js.erb:  { :journal }    

:view_journals_notes_form_after_notes
journals/_notes_form.html.erb: { :journal }    

:view_issues_new_top
issues/new.html.erb: { :issue }

:view_issues_edit_notes_bottom
issues/_edit.html.erb: { :issue, :notes, :form }

:view_issues_sidebar_issues_bottom
issues/_sidebar.html.erb: { }

:view_issues_sidebar_planning_bottom
issues/_sidebar.html.erb: { }

:view_issues_sidebar_queries_bottom
issues/_sidebar.html.erb: { }

:view_issues_show_details_bottom
issues/show.html.erb: { :issue }

:view_issues_show_description_bottom
issues/show.html.erb: { :issue }

:view_issues_bulk_edit_details_bottom
issues/bulk_edit.html.erb: { :issues }

:view_issues_form_details_top
issues/_form.html.erb: { :issue, :form }

:view_issues_form_details_bottom
issues/_form.html.erb: { :issue, :form }

:view_issues_index_bottom
issues/index.html.erb: { :issuess, :project, :query }

:view_issues_history_journal_bottom
issues/_history.html.erb: { :journal }

:view_projects_show_left
projects/show.html.erb: { :project } 

:view_projects_show_right
projects/show.html.erb: { :project }

:view_projects_show_sidebar_bottom
projects/show.html.erb: { :project }

:view_projects_form
projects/_form.html.erb: { :project, :form }

:view_projects_settings_members_table_header
projects/settings/_members.html.erb: { :project }

:view_projects_settings_members_table_row
projects/settings/_members.html.erb: { :project, :member }

:view_users_memberships_table_header
users/_memberships.html.erb: { :user }

:view_users_memberships_table_row
users/_memberships.html.erb: { :user, :membership, :roles, :projects }

:view_account_left_bottom
users/show.html.erb: { :user }

:view_account_right_bottom
users/show.html.erb: { :user }

:view_users_form
users/_form.html.erb: { :user, :form }

:view_welcome_index_left
welcome/index.html.erb: { :projects }

:view_welcome_index_right
welcome/index.html.erb: { :projects }

:view_repositories_show_contextual
repositories/annotate.html.erb: { :repository, :project }

:view_repositories_show_contextual
repositories/changes.html.erb: { :repository, :project }

:view_repositories_show_contextual
repositories/entry.html.erb: { { :repository, :project }

:view_repositories_show_contextual
repositories/show.html.erb: { :repository, :project }

:view_versions_show_contextual
versions/show.html.erb: { :version, :project }

:view_versions_show_bottom
versions/show.html.erb: { :version }

:view_projects_roadmap_version_bottom
versions/index.html.erb: { :version }

:view_settings_general_form)
settings/_general.html.erb:

:view_my_account_contextual
my/account.html.erb: { :user }

:view_my_account
my/account.html.erb: { :user, :form }

:view_account_login_top
account/login.html.erb: { }

:view_account_login_bottom
account/login.html.erb: { }

:view_time_entries_context_menu_start
context_menus/time_entries.html.erb: { :time_entries :can, :back }

:view_time_entries_context_menu_end
context_menus/time_entries.html.erb: { :time_entries, :can, :back }

:view_issues_context_menu_start
context_menus/issues.html.erb: { :issuess, :can, :back }

:view_issues_context_menu_end
context_menus/issues.html.erb: { :issuess, :can, :back }

:view_layouts_base_html_head
layouts/base.html.erb: { }

:view_layouts_base_content
layouts/base.html.erb: { }

:view_layouts_base_body_bottom
layouts/base.html.erb: { }

:view_time_entries_bulk_edit_details_bottom
timelog/bulk_edit.html.erb: { :time_entries }

:view_timelog_edit_form_bottom
timelog/_form.html.erb: { :time_entry, :form  } 
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment