summaryrefslogtreecommitdiff
path: root/users/app
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 /users/app
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 'users/app')
-rw-r--r--users/app/views/users/show.html.haml12
1 files changed, 8 insertions, 4 deletions
diff --git a/users/app/views/users/show.html.haml b/users/app/views/users/show.html.haml
index ec5cea6..a1eeccb 100644
--- a/users/app/views/users/show.html.haml
+++ b/users/app/views/users/show.html.haml
@@ -17,11 +17,15 @@
%ul.pull-left.unstyled
= render aliases
- else
- =t :none_set
+ =t :none
.clearfix
%dt
=t :most_recently_updated_tickets
%dd
- %table
- %tbody
- = render @user.most_recent_tickets
+ - tix = @user.most_recent_tickets
+ - if tix.present?
+ %table
+ %tbody
+ = render @user.most_recent_tickets
+ - else
+ =t :none \ No newline at end of file