4/debian-10/plugins/redmine_issue_templates/app/controllers/issue_templates_controller.rb
#
# List templates associated with tracker and project.
# TODO: refactor here. Duplicate with set_pulldown....
#
List templates associated with tracker and project.
TODO: refactor here.
List templates associated with tracker and project . TODO : refactor here .
def list_templates
    (default_global, default_inherit, default_project) = default_templates
    default_template = default_inherit.presence || default_global
    default_template = default_project.presence || default_template
    respond_to do |format|
      format.html do
        render action: '_list_templates',
               layout: false,
               locals: { default_template: default_template,
                         issue_templates: @issue_templates,
                         inherit_templates: @inherit_templates,
                         global_issue_templates: @global_templates }
      end
      format.api do
        render action: '_list_templates',
               locals: { default_template: default_template,
                         issue_templates: @issue_templates,
                         inherit_templates: @inherit_templates,
                         global_issue_templates: @global_templates }
      end
    end
  end
def list_templates ( default_global , default_inherit , default_project ) = default_templates default_template = default_inherit . presence || default_global default_template = default_project . presence || default_template respond_to do | format | format . html do render action : '_list_templates' , layout : false , locals : { default_template : default_template , issue_templates : @issue_templates , inherit_templates : @inherit_templates , global_issue_templates : @global_templates } end format . api do render action : '_list_templates' , locals : { default_template : default_template , issue_templates : @issue_templates , inherit_templates : @inherit_templates , global_issue_templates : @global_templates } end end end
List templates associated with tracker and project.
List templates associated with tracker and project .