index-files.html 1.89 KB
Newer Older
Kálmán Viktor committed
1 2 3 4 5
{% load i18n %}

<div class="panel panel-default">
  <div class="panel-heading">
    <span class="btn btn-default btn-xs infobtn pull-right" 
6
      title="A list of your most recent files!">
Kálmán Viktor committed
7 8 9 10 11
      <i class="icon-info-sign"></i>
    </span>
    <h3 class="no-margin"><i class="icon-briefcase"></i> Files
    </h3>
  </div>
12
  <div class="list-group" id="dashboard-files-toplist">
Kálmán Viktor committed
13 14 15 16 17 18 19 20
    {% for t in toplist %}
    {% if t.TYPE == "F" %}
      <div class="list-group-item">
        <i class="icon-file"></i> {{ t.NAME }}
        <a href="{% url "dashboard.views.store-download" %}?path={{ t.path }}" 
          class="pull-right btn btn-xs" style="color: black;">
          <i class="icon-cloud-download" title="{% trans "Download" %}"></i>
        </a>
21 22 23 24
        <a href="{% url "dashboard.views.store-list" %}?directory={{ t.directory }}" 
          class="pull-right btn btn-xs" style="color: black;">
          <i class="icon-folder-open" title="{% trans "Show in directory" %}"></i>
        </a>
Kálmán Viktor committed
25 26 27 28 29 30 31
      </div>
    {% else %}
    <a href="{% url "dashboard.views.store-list" %}?directory={{ t.path }}" class="list-group-item">
      <i class="icon-folder-open"></i> {{ t.NAME }}
    </a>
    {% endif %}
    {% endfor %}
32
    <div class="list-group-item text-right no-hover">
Kálmán Viktor committed
33 34 35 36 37 38 39 40 41 42
      <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="icon-refresh"></i>
        </button>
      </form>
      <a href="{% url "dashboard.views.store-list" %}" class="btn btn-primary btn-xs">
        <i class="icon-chevron-sign-right"></i> {% trans "show my files" %}  
      </a>
      <a href="{% url "dashboard.views.store-upload" %}" class="btn btn-success btn-xs">
43
        <i class="icon-cloud-upload"></i> {% trans "upload" %}  
Kálmán Viktor committed
44 45 46 47
      </a>
    </div>
  </div>
</div>