osem-fcy/app/views/admin/conference/_top_submitter.html.haml

19 lines
612 B
Text
Raw Normal View History

.row
2014-06-16 13:51:43 +02:00
.col-md-12
%h3
Top Submitter
- if @top_submitter && !@top_submitter.empty?
- @top_submitter.each do |key, value|
.row.top-submitter
.col-md-2
2014-06-23 19:07:50 +03:00
= image_tag(key.gravatar_url(size: '25'), title: "Yo #{key.name}!", :alt => '', 'class'=>'img-circle img-responsive text-center')
2014-06-16 13:51:43 +02:00
.col-md-10
%h4
= link_to "#{key.name}", admin_user_path(key)
2014-06-16 13:51:43 +02:00
%div
%small
= link_to "#{pluralize(value, 'submission')}", admin_user_path(key)
2014-06-16 13:51:43 +02:00
- else
%h4.text-warning
No submissions!