Commit 9fabdf4b by Kálmán Viktor

dashboard: minor design fixis for files

parent a9a27ccc
......@@ -452,5 +452,5 @@ STORE_SETTINGS = {
"store_client_user": "admin",
"store_client_key": "/opt/webadmin/cloud/client.key",
"store_client_cert": "/opt/webadmin/cloud/client.crt",
"store_url": "http://pc3.szgt.uni-miskolc.hu:14505",
"store_url": "http://pc3.szgt.uni-miskolc.hu:17719",
}
......@@ -780,3 +780,15 @@ textarea[name="list-new-namelist"] {
.store-list-item-icon-directory {
color: #ff8c00;
}
#dashboard-files-toplist div.list-group-item {
color: #555;
}
#dashboard-files-toplist div.list-group-item:hover {
background: #eee;
}
.no-hover:hover {
background: none !important;
}
......@@ -225,12 +225,12 @@ def process_list(content):
"directory" if d['TYPE'] == "D" else
filesizeformat(float(d['SIZE'])))
d['path'] = d['DIR']
if len(d['path']) == 1 and d['path'][0] == ".":
d['path'] = "/"
if len(d['DIR']) == 1 and d['DIR'][0] == ".":
d['directory'] = "/"
else:
d['path'] = "/" + d['path'] + "/"
d['directory'] = "/" + d['DIR'] + "/"
d['path'] = d['directory']
d['path'] += d['NAME']
if d['TYPE'] == "D":
d['path'] += "/"
......
......@@ -9,7 +9,7 @@
<h3 class="no-margin"><i class="icon-briefcase"></i> Files
</h3>
</div>
<div class="list-group" id="vm-list-view">
<div class="list-group" id="dashboard-files-toplist">
{% for t in toplist %}
{% if t.TYPE == "F" %}
<div class="list-group-item">
......@@ -18,6 +18,10 @@
class="pull-right btn btn-xs" style="color: black;">
<i class="icon-cloud-download" title="{% trans "Download" %}"></i>
</a>
<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>
</div>
{% else %}
<a href="{% url "dashboard.views.store-list" %}?directory={{ t.path }}" class="list-group-item">
......@@ -25,8 +29,7 @@
</a>
{% endif %}
{% endfor %}
<div class="list-group-item list-group-footer text-right">
<p>
<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" %}"/>
......@@ -37,9 +40,8 @@
<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">
<i class="icon-upload-alt"></i> {% trans "upload" %}
<i class="icon-cloud-upload"></i> {% trans "upload" %}
</a>
</p>
</div>
</div>
</div>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment