From 08f67821d1c2002711f519b2f7a09c7a8b5c8c2e Mon Sep 17 00:00:00 2001 From: Dan McGee Date: Thu, 11 Feb 2010 22:16:58 -0600 Subject: Make the package files view look better Make it look more like the dependencies and required-by panes on the main package details page. Some day you might even find it shows up below there too via an AJAX call or something. Signed-off-by: Dan McGee --- templates/packages/files.html | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) (limited to 'templates/packages/files.html') diff --git a/templates/packages/files.html b/templates/packages/files.html index 145bcf24..dc0c64b7 100644 --- a/templates/packages/files.html +++ b/templates/packages/files.html @@ -1,11 +1,16 @@ {% extends "base.html" %} -{% block title %}Pkg: {{ pkg.pkgname }} - Arch Linux Package File List{% endblock %} +{% block title %}Arch Linux - Package File List - {{ pkg.pkgname }}{% endblock %} {% block content %}
-

Viewing Files: {{ pkg.pkgname }} {{ pkg.pkgver }}-{{ pkg.pkgrel }}

- {% for file in files %} - {{ file.path }}
- {% endfor %} +

{{ pkg.pkgname }} {{ pkg.pkgver }}-{{ pkg.pkgrel }}

+
+

Files:

+
    + {% for file in files %} +
  • {{ file.path }}
  • + {% endfor %} +
+
{% endblock %} -- cgit v1.2.3-2-g168b From 7e1e5a5e8a2f3231d0878612508aba06f4397024 Mon Sep 17 00:00:00 2001 From: Dan McGee Date: Sat, 27 Feb 2010 10:31:55 -0600 Subject: files: template reuse Get rid of the copy/paste by including the sub-template. Signed-off-by: Dan McGee --- templates/packages/files.html | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) (limited to 'templates/packages/files.html') diff --git a/templates/packages/files.html b/templates/packages/files.html index dc0c64b7..1d87246c 100644 --- a/templates/packages/files.html +++ b/templates/packages/files.html @@ -3,14 +3,7 @@ {% block content %}

{{ pkg.pkgname }} {{ pkg.pkgver }}-{{ pkg.pkgrel }}

-
-

Files:

-
    - {% for file in files %} -
  • {{ file.path }}
  • - {% endfor %} -
-
+ {% include "packages/files-list.html" %}
{% endblock %} -- cgit v1.2.3-2-g168b From 8777ccf001374460a573bd1e417b0996a633f6bb Mon Sep 17 00:00:00 2001 From: Dan McGee Date: Mon, 1 Mar 2010 21:43:52 -0600 Subject: Fix up HTML titles on a lot of pages We didn't include them on many pages, or the ones we did weren't always useful. Also try to keep the boilerplate to a minimum so you can see the important bits in the title. 'Arch Linux - ' comes first in all titles, and from there it can be filled in with something useful. Signed-off-by: Dan McGee --- templates/packages/files.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'templates/packages/files.html') diff --git a/templates/packages/files.html b/templates/packages/files.html index 1d87246c..2fff5ff1 100644 --- a/templates/packages/files.html +++ b/templates/packages/files.html @@ -1,5 +1,5 @@ {% extends "base.html" %} -{% block title %}Arch Linux - Package File List - {{ pkg.pkgname }}{% endblock %} +{% block title %}Arch Linux - {{ pkg.pkgname }} {{ pkg.pkgver }}-{{ pkg.pkgrel }} - Package File List{% endblock %} {% block content %}

{{ pkg.pkgname }} {{ pkg.pkgver }}-{{ pkg.pkgrel }}

-- cgit v1.2.3-2-g168b