From 0c72812fde64f3ed039d807b9e8b3914960b7d6b Mon Sep 17 00:00:00 2001 From: Dan McGee Date: Sun, 2 Nov 2014 09:42:52 -0600 Subject: Mirror view tweaks and enhancements * Add country column to main mirror list overview page. Most mirrors are strictly in one country, so do a little magic to show the right country if it makes sense. * Use new way of getting country names so we respect the overrides now present in the django_countries package. * Make the country selection box on the mirrorlist generation page a lot taller by default so it is easier to use. Signed-off-by: Dan McGee --- templates/mirrors/mirrors.html | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'templates') diff --git a/templates/mirrors/mirrors.html b/templates/mirrors/mirrors.html index 4276b30a..f55bd875 100644 --- a/templates/mirrors/mirrors.html +++ b/templates/mirrors/mirrors.html @@ -1,8 +1,12 @@ {% extends "base.html" %} {% load cycle from future %} {% load static from staticfiles %} +{% load flags %} + {% block title %}Arch Linux - Mirror Overview{% endblock %} +{% block head %}{% endblock %} + {% block content %}

Mirror Overview

@@ -10,6 +14,7 @@ Server + Country Tier ISOs Protocols @@ -26,6 +31,7 @@ {{ mirror.name }} + {% if mirror.country %}{% country_flag mirror.country %}{{ mirror.country.name }}{% else %}Various{% endif %} {{ mirror.get_tier_display }} {{ mirror.isos|yesno|capfirst }} {{ mirror.protocols|join:", " }} @@ -44,7 +50,7 @@ {% endblock %} -- cgit v1.2.3 From 5bfe138a86a98b52f0b6746b900af6431cd4d17a Mon Sep 17 00:00:00 2001 From: Dan McGee Date: Sun, 2 Nov 2014 10:43:09 -0600 Subject: Add new StaffGroup object This will allow us to be a bit more dynamic in showing the people listings on the website. We'll be adding a Support Staff category to recognize those that do things around here but aren't technically developers. Signed-off-by: Dan McGee --- templates/public/developer_list.html | 4 ++-- templates/public/index.html | 6 +++--- templates/public/userlist.html | 8 ++++---- 3 files changed, 9 insertions(+), 9 deletions(-) (limited to 'templates') diff --git a/templates/public/developer_list.html b/templates/public/developer_list.html index 4401d97b..954216ce 100644 --- a/templates/public/developer_list.html +++ b/templates/public/developer_list.html @@ -21,7 +21,7 @@ - +
@@ -53,7 +53,7 @@ Occupation: {{ prof.occupation }} - YOB: + Birth Year: {% if prof.yob %}{{ prof.yob }}{% endif %} Location: diff --git a/templates/public/index.html b/templates/public/index.html index 3b17803c..c78303ce 100644 --- a/templates/public/index.html +++ b/templates/public/index.html @@ -172,9 +172,9 @@

People

diff --git a/templates/public/userlist.html b/templates/public/userlist.html index 35104317..b49c5de2 100644 --- a/templates/public/userlist.html +++ b/templates/public/userlist.html @@ -2,16 +2,16 @@ {% load static from staticfiles %} {% load cache %} -{% block title %}Arch Linux - {{ user_type }}{% endblock %} +{% block title %}Arch Linux - {{ group.name }}{% endblock %} {% block head %}{% endblock %} {% block content %} -{% cache 600 dev-tu-profiles user_type %} +{% cache 600 dev-tu-profiles group.name %}
-

Arch Linux {{user_type}}

+

Arch Linux {{ group.name }}

-

{{description}}

+

{{ group.description }}

{% with users as dev_list %} {% include 'public/developer_list.html' %} -- cgit v1.2.3