summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2012-04-26 14:43:18 -0500
committerDan McGee <dan@archlinux.org>2012-04-26 14:43:18 -0500
commiteba4e32891f12bca2b922ee6d859513f67789f42 (patch)
treef5dbfbede1e72f2efc0926fa03305472b286f2cc
parent5f22f4266cd978b4fd80cafb2201e39acaeef3fc (diff)
downloadarchweb-eba4e32891f12bca2b922ee6d859513f67789f42.tar.gz
archweb-eba4e32891f12bca2b922ee6d859513f67789f42.zip
Package files display tweaks
Slightly gray out the directories when displaying file lists, drawing more attention to the file names instead. Signed-off-by: Dan McGee <dan@archlinux.org>
-rw-r--r--sitestatic/archweb.css7
-rw-r--r--templates/packages/files.html8
-rw-r--r--templates/packages/files_list.html2
3 files changed, 12 insertions, 5 deletions
diff --git a/sitestatic/archweb.css b/sitestatic/archweb.css
index 95663008..bc666d74 100644
--- a/sitestatic/archweb.css
+++ b/sitestatic/archweb.css
@@ -797,6 +797,13 @@ form#flag-pkg-form input[type=text] {
padding-top: 1em;
}
+ #pkgdetails #pkgfiles li.d {
+ color: #666;
+ }
+
+ #pkgdetails #pkgfiles li.f {
+ }
+
/* mirror stuff */
table td.country {
white-space: normal;
diff --git a/templates/packages/files.html b/templates/packages/files.html
index 6524fe93..ba3fba25 100644
--- a/templates/packages/files.html
+++ b/templates/packages/files.html
@@ -5,12 +5,12 @@
{% block content %}
<div id="pkgdetails" class="box">
- <h2>Package File List: {{ pkg.pkgname }} {{ pkg.full_version }}</h2>
- <div id="metadata">
- <p><a href="{{ pkg.get_absolute_url }}">Back to Package</a></p>
+ <h2>{{ pkg.pkgname }} {{ pkg.full_version }} File List</h2>
+ <div id="metadata"><div id="pkgfiles">
<p>Package has {{ files_count }} file{{ files_count|pluralize }} and {{ dir_count }} director{{ dir_count|pluralize:"y,ies" }}.</p>
+ <p><a href="{{ pkg.get_absolute_url }}">Back to Package</a></p>
{% include "packages/files_list.html" %}
- </div>
+ </div></div>
</div>
{% endblock %}
diff --git a/templates/packages/files_list.html b/templates/packages/files_list.html
index 156d8588..93a2c847 100644
--- a/templates/packages/files_list.html
+++ b/templates/packages/files_list.html
@@ -6,7 +6,7 @@ of the package; it may be out of date.</p>
{% if files|length %}
<ul>
{% for file in files %}
-<li>{{ file.directory }}{{ file.filename|default:'' }}</li>{% endfor %}
+<li class="{% if file.is_directory %}d{% else %}f{% endif %}">{{ file.directory }}{{ file.filename|default:'' }}</li>{% endfor %}
</ul>
{% else %}
<p class="message">Package has no files.</p>