Methods
- I
- L
- P
- U
Instance Public methods
issue_css_classes(issue)
Link
Source: show
# 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
issues_active_milestones()
Link
Source: show
# File app/helpers/issues_helper.rb, line 40 def issues_active_milestones @project.milestones.active.order("id desc").all end
issues_filter()
Link
Source: show
# 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()
Link
Source: show
# 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 = {})
Link
Source: show
# 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()
Link
Returns an OpenStruct object suitable for use by
options_from_collection_for_select
to allow filtering issues
by an unassigned User or Milestone
Source: show
# 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