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

19 lines
544 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
2014-06-23 19:07:50 +03:00
#{key.name}
2014-06-16 13:51:43 +02:00
%div
%small
#{pluralize(value, 'submission')}
- else
%h4.text-warning
No submissions!