impress/app/views/contributions/index.html.haml

22 lines
535 B
Text
Raw Normal View History

2010-11-06 08:52:58 -07:00
- title 'Recent Contributions'
2011-07-26 15:56:14 -07:00
- if @user
- canonical_path user_contributions_path(@user)
2010-11-06 08:52:58 -07:00
%ul.buttons
2010-11-06 08:57:22 -07:00
- if @user
%li= link_to 'Recent Contributions', contributions_path, :class => 'button'
2010-11-06 08:52:58 -07:00
%li= link_to 'Top Contributors', top_contributors_path, :class => 'button'
2010-11-06 08:57:22 -07:00
- if @user
%p
= @user.name
currently has
= @user.points
points
2010-11-06 08:52:58 -07:00
- if @contributions.empty?
%p No contributions to see here!
- else
= will_paginate @contributions
%ul.contributions= render @contributions
= will_paginate @contributions
2011-07-26 15:56:14 -07:00