Skip to content

Commit

Permalink
simplify the "my account" page a little
Browse files Browse the repository at this point in the history
  • Loading branch information
jaredbeck committed Jun 11, 2012
1 parent 8b4a4c8 commit b79a8a7
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 8 deletions.
9 changes: 7 additions & 2 deletions app/views/users/invoice.html.haml
Expand Up @@ -23,5 +23,10 @@
%th{ :colspan => 4, :style => 'text-align:right;' } Grand Total
%td.numeric= number_to_currency @user.get_invoice_total

- if can? :manage, @user
%p= link_to "Return to #{@user.full_name_possessive} Account", user_path(@user)
.row-of-buttons
- if can? :manage, @user
- user_fnp = @user.full_name_possessive
= button_to "Return to #{user_fnp} Account", user_path(@user), :method => :get
- if current_user.is_admin?
- pcsfu_path = print_cost_summary_for_user_path(@user)
= button_to 'Print Cost Summary', pcsfu_path, :method => :get
8 changes: 2 additions & 6 deletions app/views/users/show.html.haml
Expand Up @@ -11,23 +11,19 @@
%td
.hardwrap{:style => "max-width:250px;"}= @user.email
%td.smalltext= link_to 'Edit', edit_email_for_user_path(@user)
%tr
%th Created
%td= @user.created_at.to_formatted_s(:long)

%p
= link_to 'Change Password', edit_password_for_user_path(@user)
%br
- if current_user.is_admin?
= link_to 'User Administration', edit_user_path(@user)
%br
= link_to 'Print Cost Summary', print_cost_summary_for_user_path(@user)

.right-column
%h2 Balance
= render :partial => 'shared/balance', :locals => {:user => @user, :show_detail_links => true}
%p= button_to "Make a Payment", pay_user_path(@user), :method => "get", :class => 'button-emphasis'

%br/
%br

%h2 My Attendees

Expand Down

0 comments on commit b79a8a7

Please sign in to comment.