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

19 lines
552 B
Text

- title t('.title')
- if @user
- canonical_path user_contributions_path(@user)
%ul.buttons
- if @user
%li= link_to t('.title'), contributions_path, :class => 'button'
%li
= link_to t('users.top_contributors.title'), top_contributors_path,
:class => 'button'
- if @user
%p= t('.user_summary', :user_name => @user.name, :user_points => @user.points)
- if @contributions.empty?
%p= t('.no_contributions')
- else
= will_paginate @contributions
%ul.contributions= render @contributions
= will_paginate @contributions