diff --git a/circle/dashboard/static/dashboard/dashboard.less b/circle/dashboard/static/dashboard/dashboard.less index 6be573f..5dd4df2 100644 --- a/circle/dashboard/static/dashboard/dashboard.less +++ b/circle/dashboard/static/dashboard/dashboard.less @@ -593,7 +593,7 @@ footer a, footer a:hover, footer a:visited { } #dashboard-vm-list, #dashboard-node-list, #dashboard-group-list, -#dashboard-template-list { +#dashboard-template-list, #dashboard-files-toplist { min-height: 200px; } @@ -756,10 +756,6 @@ textarea[name="new_members"] { margin-top: 8px; } -#dashboard-files-toplist { - min-height: 204px; -} - #dashboard-files-toplist div.list-group-item { color: #555; } diff --git a/circle/dashboard/templates/dashboard/store/index-files.html b/circle/dashboard/templates/dashboard/store/index-files.html index 92cb582..539fe29 100644 --- a/circle/dashboard/templates/dashboard/store/index-files.html +++ b/circle/dashboard/templates/dashboard/store/index-files.html @@ -42,7 +42,7 @@ class="list-group-item {% if forloop.last and files.toplist|length < 5 %}list-group-item-last{% endif %}"> <i class="fa fa-{{ t.icon }} dashboard-toplist-icon"></i> - <div class="store-list-item-name"> + <div class="store-list-item-name"> {{ t.NAME }} </div> <div style="clear: both;"></div> @@ -53,20 +53,22 @@ {% trans "Your toplist is empty, upload something." %} </div> {% endfor %} - </div> - <div class="list-group-item text-right no-hover"> - <form class="pull-left" method="POST" action="{% url "dashboard.views.store-refresh-toplist" %}"> - {% csrf_token %} - <button class="btn btn-success btn-xs" type="submit" title="{% trans "Refresh" %}"/> - <i class="fa fa-refresh"></i> - </button> - </form> - <a href="{% url "dashboard.views.store-list" %}" class="btn btn-primary btn-xs"> - <i class="fa fa-chevron-circle-right"></i> {% trans "show my files" %} - </a> - <a href="{% url "dashboard.views.store-upload" %}" class="btn btn-success btn-xs"> - <i class="fa fa-cloud-upload"></i> {% trans "upload" %} - </a> + </div> + <div class="list-group-item list-group-footer no-hover"> + <div class="text-right"> + <form class="pull-left" method="POST" action="{% url "dashboard.views.store-refresh-toplist" %}"> + {% csrf_token %} + <button class="btn btn-success btn-xs" type="submit" title="{% trans "Refresh" %}"/> + <i class="fa fa-refresh"></i> + </button> + </form> + <a href="{% url "dashboard.views.store-list" %}" class="btn btn-primary btn-xs"> + <i class="fa fa-chevron-circle-right"></i> {% trans "show my files" %} + </a> + <a href="{% url "dashboard.views.store-upload" %}" class="btn btn-success btn-xs"> + <i class="fa fa-cloud-upload"></i> {% trans "upload" %} + </a> + </div> </div> </div> </div>