summaryrefslogtreecommitdiff
path: root/help/app/helpers/tickets_helper.rb
blob: c683be326fc8fd08bbc21b3458127791884b2b77 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
module TicketsHelper

  def status
    params[:open_status] || 'open'
  end

  def admin
    params[:admin_status] || 'all'
  end

  def link_to_status(new_status)
    label = new_status + ' issues'
    link_to label, :open_status => new_status, :admin_status => admin
  end
end