summaryrefslogtreecommitdiff
path: root/help/app/helpers
diff options
context:
space:
mode:
Diffstat (limited to 'help/app/helpers')
-rw-r--r--help/app/helpers/tickets_helper.rb15
1 files changed, 15 insertions, 0 deletions
diff --git a/help/app/helpers/tickets_helper.rb b/help/app/helpers/tickets_helper.rb
new file mode 100644
index 0000000..c683be3
--- /dev/null
+++ b/help/app/helpers/tickets_helper.rb
@@ -0,0 +1,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