1
0
Fork 0
forked from OpenNeo/impress
impress/app/views/contributions/index.html.haml

21 lines
535 B
Text

- title 'Recent Contributions'
- if @user
- canonical_path user_contributions_path(@user)
%ul.buttons
- if @user
%li= link_to 'Recent Contributions', contributions_path, :class => 'button'
%li= link_to 'Top Contributors', top_contributors_path, :class => 'button'
- if @user
%p
= @user.name
currently has
= @user.points
points
- if @contributions.empty?
%p No contributions to see here!
- else
= will_paginate @contributions
%ul.contributions= render @contributions
= will_paginate @contributions