Class: ProjectCustomStyle::Hooks
- Inherits:
-
Redmine::Hook::ViewListener
- Object
- Redmine::Hook::ViewListener
- ProjectCustomStyle::Hooks
- Defined in:
- lib/project_custom_style/hooks.rb
Constant Summary collapse
- STYLE_WRAPPER =
%(<style type="text/css">%s</style>)
Instance Method Summary collapse
Instance Method Details
#view_layouts_base_html_head(context) ⇒ Object
5 6 7 8 |
# File 'lib/project_custom_style/hooks.rb', line 5 def view_layouts_base_html_head(context) page = find_wiki_page(context) wrap_style_content(page.content.text) if page end |
#view_projects_contextual(context) ⇒ Object
10 11 12 13 14 15 16 |
# File 'lib/project_custom_style/hooks.rb', line 10 def view_projects_contextual(context) link_to( l("project_custom_style_label"), edit_path(context), class: "icon icon-copy" ) end |