summaryrefslogtreecommitdiff
path: root/help/app
diff options
context:
space:
mode:
authorjessib <jessib@riseup.net>2013-01-17 09:36:27 -0800
committerjessib <jessib@riseup.net>2013-01-17 09:36:27 -0800
commitb550cd14f33b9664fe6b547dc56107fae7d12caf (patch)
tree78034e20632f9e6361deb7e1000db0bcb079f03f /help/app
parentee2ea4ac8f4c6b0c3b09be6ed49e7a1faec7a9c1 (diff)
parent9d53f7b2d1b34da6b6103e97bd6c931cedb23e9b (diff)
Merge pull request #14 from leapcode/feature/show_user
Adding show view for users.
Diffstat (limited to 'help/app')
-rw-r--r--help/app/views/tickets/_ticket.html.haml22
1 files changed, 13 insertions, 9 deletions
diff --git a/help/app/views/tickets/_ticket.html.haml b/help/app/views/tickets/_ticket.html.haml
index 3edfa8b..7b37652 100644
--- a/help/app/views/tickets/_ticket.html.haml
+++ b/help/app/views/tickets/_ticket.html.haml
@@ -1,13 +1,17 @@
+- 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)
- updated:
- = ticket.updated_at.to_s(:short)
- %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