summaryrefslogtreecommitdiff
path: root/help
diff options
context:
space:
mode:
authorjessib <jessib@leap.se>2013-01-15 11:03:02 -0800
committerjessib <jessib@leap.se>2013-01-15 11:03:02 -0800
commit9d53f7b2d1b34da6b6103e97bd6c931cedb23e9b (patch)
tree78034e20632f9e6361deb7e1000db0bcb079f03f /help
parentbe8ee9fa669bc5554796be1fc99867fc99ba21bc (diff)
Show different ticket characteristics when viewing the users versus when listing the tickets. Give a message if a user has no tickets.
Diffstat (limited to 'help')
-rw-r--r--help/app/views/tickets/_ticket.html.haml23
1 files changed, 13 insertions, 10 deletions
diff --git a/help/app/views/tickets/_ticket.html.haml b/help/app/views/tickets/_ticket.html.haml
index e02aaeb..7b37652 100644
--- a/help/app/views/tickets/_ticket.html.haml
+++ b/help/app/views/tickets/_ticket.html.haml
@@ -1,14 +1,17 @@
-= # TODO---this is now used in 2 places, and not sure we want the same CSS in both places
+- updated_at_text = 'updated: ' + ticket.updated_at.to_s(:long)
%tr
%td
%b
= link_to ticket.title, ticket
- %br
- %small
- created:
- = ticket.created_at.to_s(:short) #todo doesn't show year
- updated:
- = ticket.updated_at.to_s(:short) # doesn't show year
- %small.pull-right
- comments by:
- = ticket.commenters
+ - if params[:controller] == 'tickets'
+ %br
+ %small
+ created:
+ = ticket.created_at.to_s(:long)
+ = updated_at_text
+ %small.pull-right
+ comments by:
+ = ticket.commenters
+ - else
+ %small
+ = updated_at_text \ No newline at end of file