summaryrefslogtreecommitdiff
path: root/templates/packages
diff options
context:
space:
mode:
authorLuke Shumaker <LukeShu@sbcglobal.net>2012-12-12 20:28:49 -0500
committerLuke Shumaker <LukeShu@sbcglobal.net>2012-12-12 20:28:49 -0500
commit16e941c68ddb2d37d7e94d0c60da7e9d3dba65a0 (patch)
tree0dc941580251a06870b9ceee159b7685c8a02795 /templates/packages
parentf9ae4f860ccf57e84032d7be9426331a9e06e979 (diff)
parentfbbcc8534a25d3e78ef3a319c8aeb127bc5085f0 (diff)
Merge tag 'release_2012-04-26'parabolaweb-2012-12-12
CSS and display related tweaks Conflicts: public/views.py requirements.txt requirements_prod.txt templates/public/download.html
Diffstat (limited to 'templates/packages')
-rw-r--r--templates/packages/details.html2
-rw-r--r--templates/packages/files.html8
-rw-r--r--templates/packages/files_list.html2
3 files changed, 6 insertions, 6 deletions
diff --git a/templates/packages/details.html b/templates/packages/details.html
index 8e4b2bb0..0369aa96 100644
--- a/templates/packages/details.html
+++ b/templates/packages/details.html
@@ -10,7 +10,7 @@
{% block content %}
<div id="pkgdetails" class="box">
- <h2>Package Details: {{ pkg.pkgname }} {{ pkg.full_version }}</h2>
+ <h2>{{ pkg.pkgname }} {{ pkg.full_version }}</h2>
<div id="detailslinks" class="listing">
<div id="actionlist">
diff --git a/templates/packages/files.html b/templates/packages/files.html
index 8cf6738d..46553b25 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>