module WatchersTextInput
  class Hooks < Redmine::Hook::ViewListener
    # This just renders the partial in
    # app/views/hooks/my_plugin/_view_issues_form_details_bottom.rhtml
    # The contents of the context hash is made available as local variables to the partial.
    #
    # Additional context fields
    #   :issue  => the issue this is edited
    #   :f      => the form object to create additional fields
    #render_on :view_issues_form_details_bottom,
    #:partial => 'hooks/my_plugin/view_issues_form_details_bottom'
    
    #def view_layouts_base_html_head(context={})
      #return "<script> alert('success')</script>"
    render_on(:view_layouts_base_html_head,
              :partial => 'redmine_watchers_textinput/include_stylesheet')
    #end
  end
end
