diff options
author | jessib <jessib@leap.se> | 2013-01-14 12:39:59 -0800 |
---|---|---|
committer | jessib <jessib@leap.se> | 2013-01-14 12:39:59 -0800 |
commit | 8141876126aa25d713cf4b2c76c3ecff837c4ba7 (patch) | |
tree | daa33640bd157a9ad080975bcc3e1dee686480f2 /users/app/views/users/show.html.haml | |
parent | c2f232d994b3ee01ff9d50da1e4f3798df2136f3 (diff) |
Use partials for displaying details shown when viewing a user. Some of these partials have specific CSS for another use, so we will likely want to tweak this.
Diffstat (limited to 'users/app/views/users/show.html.haml')
-rw-r--r-- | users/app/views/users/show.html.haml | 21 |
1 files changed, 8 insertions, 13 deletions
diff --git a/users/app/views/users/show.html.haml b/users/app/views/users/show.html.haml index 9df029e..2b59c66 100644 --- a/users/app/views/users/show.html.haml +++ b/users/app/views/users/show.html.haml @@ -1,5 +1,7 @@ .span8.offset1 %h2= @user.login + .small + = link_to 'edit', edit_user_path(@user) %dl.offset1 - fields = ['login', 'email', 'created_at', 'updated_at', 'email_forward'] - fields.each do |field| @@ -14,19 +16,12 @@ - if aliases.empty? none set - else - %ul.unstyled - - aliases.each do |al| - %li - = al.email + .pull-left + = render aliases + .clearfix %dt =t :most_recently_updated_tickets %dd - %ul - - @user.most_recent_tickets.each do |ticket| - %li - = link_to ticket.title, ticket - %small - updated: - = ticket.updated_at.to_s(:long) - - + %table + %tbody + = render @user.most_recent_tickets
\ No newline at end of file |