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

19 lines
629 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
= 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-08-06 22:23:10 +03:00
= link_to key.name, admin_user_path(key)
2014-06-16 13:51:43 +02:00
%div
%small
2014-08-06 22:23:10 +03:00
= link_to pluralize(value, 'submission'), admin_user_path(key, tab: 'submissions-content')
2014-06-16 13:51:43 +02:00
- else
%h4.text-warning
No submissions!