Methods
I
L
P
U
Instance Public methods
issue_css_classes(issue)
# File app/helpers/issues_helper.rb, line 7
def issue_css_classes issue
  classes = "issue"
  classes << " closed" if issue.closed
  classes << " today" if issue.today?
  classes
end
issue_tags()
# File app/helpers/issues_helper.rb, line 14
def issue_tags
  @project.issues.tag_counts_on(:labels).map(&:name)
end
issues_active_milestones()
# File app/helpers/issues_helper.rb, line 40
def issues_active_milestones
  @project.milestones.active.order("id desc").all
end
issues_filter()
# File app/helpers/issues_helper.rb, line 25
def issues_filter
  {
    all: "all",
    closed: "closed",
    to_me: "assigned-to-me",
    open: "open"
  }
end
labels_autocomplete_source()
# File app/helpers/issues_helper.rb, line 34
def labels_autocomplete_source
  labels = @project.issues_labels.order('count DESC')
  labels = labels.map{ |l| { label: l.name, value: l.name } }
  labels.to_json
end
project_issues_filter_path(project, params = {})
# File app/helpers/issues_helper.rb, line 2
def project_issues_filter_path project, params = {}
  params[:f] ||= cookies['issue_filter']
  project_issues_path project, params
end
unassigned_filter()

Returns an OpenStruct object suitable for use by options_from_collection_for_select to allow filtering issues by an unassigned User or Milestone

# File app/helpers/issues_helper.rb, line 20
def unassigned_filter
  # Milestone uses :title, Issue uses :name
  OpenStruct.new(id: 0, title: 'Unspecified', name: 'Unassigned')
end