From 39a548fd2629f3b6383990264b2e331b3aea99fb Mon Sep 17 00:00:00 2001 From: eliott Date: Sat, 3 Nov 2007 03:45:10 -0400 Subject: Initial import for public release... Special Note Prior to git import, approx 90% of the code was done by Judd Vinet. Thanks Judd! --- templates/packages/details.html | 77 +++++++++++++++++++++++++ templates/packages/files.html | 11 ++++ templates/packages/flag.html | 26 +++++++++ templates/packages/flaghelp.html | 14 +++++ templates/packages/outofdate.txt | 13 +++++ templates/packages/search.html | 120 +++++++++++++++++++++++++++++++++++++++ 6 files changed, 261 insertions(+) create mode 100644 templates/packages/details.html create mode 100644 templates/packages/files.html create mode 100644 templates/packages/flag.html create mode 100644 templates/packages/flaghelp.html create mode 100644 templates/packages/outofdate.txt create mode 100644 templates/packages/search.html (limited to 'templates/packages') diff --git a/templates/packages/details.html b/templates/packages/details.html new file mode 100644 index 0000000..65de079 --- /dev/null +++ b/templates/packages/details.html @@ -0,0 +1,77 @@ +{% load package_extras %} +{% extends "base.html" %} + +{% block content %} +
+

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

+
+
    +
  • View CVS Entries
  • +
  • View File List
  • +
  • + {% if pkg.needupdate %} + This package has been flagged out-of-date + {% if not user.is_anonymous %}{% if pkg.maintainer %}{% ifequal user.username pkg.maintainer.username %} +
        Click here to unflag + {% endifequal %}{% endif %}{% endif %} + {% else %} + Flag Package Out-of-Date + (?) + {% endif %} +
  • + {% if not user.is_anonymous %} +
  •  
  • +
  • +
    + + + +
    +
  • + {% endif %} +
+
+ + + + + + + + + + + + + + + + + + + + +
Repository:{{ pkg.repo.name }}
Category:{{ pkg.category.category }}
Description:{{ pkg.pkgdesc }}
URL:{{ pkg.url }}
Maintainer:{% if pkg.maintainer %}{{ pkg.maintainer.get_full_name }}{% else %}None{% endif %}
LastUpdated:{{ pkg.last_update|date:"Y-m-d" }}
+
+ + + + +
+
+

Dependencies:

+
    + {{ pkg.depends_urlize }} +
+
+
+
+

Sources:

+
    + {{ pkg.sources_urlize }} +
+
+
+
+{% endblock %} + diff --git a/templates/packages/files.html b/templates/packages/files.html new file mode 100644 index 0000000..24f5581 --- /dev/null +++ b/templates/packages/files.html @@ -0,0 +1,11 @@ +{% extends "base.html" %} + +{% block content %} +
+

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

+ {% for file in files %} + {{ file.path }}
+ {% endfor %} +
+{% endblock %} + diff --git a/templates/packages/flag.html b/templates/packages/flag.html new file mode 100644 index 0000000..215b6fa --- /dev/null +++ b/templates/packages/flag.html @@ -0,0 +1,26 @@ +{% load validation %} + +Flagging Packages + +{% if errors %} + {% print_errors errors %} +{% endif %} + +{% if confirmemail %} + Thank you. Maintainers have been notified. +{% else %} +
+ Please confirm your flag request.
+
+ Email Address: (required)
+
+
+ Message to dev: (optional)
+
+ +
+{% endif %} +
+ + + diff --git a/templates/packages/flaghelp.html b/templates/packages/flaghelp.html new file mode 100644 index 0000000..09f7530 --- /dev/null +++ b/templates/packages/flaghelp.html @@ -0,0 +1,14 @@ + +Flagging Packages + + +If you notice that one of Arch's packages is out of date (ie, there is a newer +stable release available), then please notify us by using the Flag +button in the Package Details screen. This will notify the maintainer +responsible for that package so they can update it. +

+Note: Please do not use this facility if the package is broken! +Use the bugtracker instead. +
+ + diff --git a/templates/packages/outofdate.txt b/templates/packages/outofdate.txt new file mode 100644 index 0000000..7b86360 --- /dev/null +++ b/templates/packages/outofdate.txt @@ -0,0 +1,13 @@ + +* Note: this is an automated message + +{{ email }} wants to notify you that the following package may be out +of date: + + {{ pkgname }} ({{ weburl }}) +{% if message %} +The user provided the following additional text: + +{{ message }} +{% endif %} + diff --git a/templates/packages/search.html b/templates/packages/search.html new file mode 100644 index 0000000..030289d --- /dev/null +++ b/templates/packages/search.html @@ -0,0 +1,120 @@ +{% load validation %} +{% load package_extras %} +{% extends "base.html" %} + +{% block head %} + + +{% endblock %} + +{% block content %} +
+

Search Criteria

+ {% if errors %} + {% print_errors errors %} + {% endif %} +
+
+ + + + + + + + + + +
RepositoryCategoryKeywordsLast UpdatePer Page
+ + + + + + + + + + + + +
+
+
+

+ + {% if results %} +
+ + + {% if not user.is_anonymous %} + + + {% endif %} + + + + + + + + {% for pkg in results %} + + {% if not user.is_anonymous %} + + {% endif %} + + + + {% if pkg.needupdate %} + + {% else %} + + {% endif %} + + + + {% endfor %} + + + + + + {% if not user.is_anonymous %} + + + + + + + + {% endif %} +
 RepoCategoryNameVersionDescriptionLast Updated
{{ pkg.repo.name }}{{ pkg.category.category }}{{ pkg.pkgname }}{{ pkg.pkgver }}-{{ pkg.pkgrel }}{{ pkg.pkgver }}-{{ pkg.pkgrel }}{{ pkg.pkgdesc }}{{ pkg.last_update|date:"Y-m-d" }}
{% if prevpage %}
<<< Prev{% endif %}
 {% if nextpage %}
Next >>>{% endif %}
  
+
+ {% endif %} +{% endblock %} + -- cgit v1.2.3-24-g4f1b