Implements recent items tabs and top submitter for dashboard

This commit is contained in:
Chrisbr 2014-06-04 16:11:33 +02:00
parent 25a1c116fd
commit 28293cb4c4
11 changed files with 186 additions and 1 deletions

View file

@ -0,0 +1,17 @@
.row
%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.public_name}!", :alt => '', 'class'=>'img-circle img-responsive text-center')
.col-md-10
%h4
#{key}
%div
%small
#{pluralize(value, 'submission')}
- else
%h4.text-warning
No submissions!