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

20 lines
552 B
Text
Raw Normal View History

2012-12-29 23:57:23 -08:00
- title t('.title')
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
2012-12-29 23:57:23 -08:00
%li= link_to t('.title'), contributions_path, :class => 'button'
%li
= link_to t('users.top_contributors.title'), top_contributors_path,
:class => 'button'
2010-11-06 08:57:22 -07:00
- if @user
2012-12-29 23:57:23 -08:00
%p= t('.user_summary', :user_name => @user.name, :user_points => @user.points)
2010-11-06 08:52:58 -07:00
- if @contributions.empty?
2012-12-29 23:57:23 -08:00
%p= t('.no_contributions')
2010-11-06 08:52:58 -07:00
- else
= will_paginate @contributions
%ul.contributions= render @contributions
= will_paginate @contributions
2011-07-26 15:56:14 -07:00