From 3eed426027ed6bc87b58f82d48da06bea55b265f Mon Sep 17 00:00:00 2001 From: Dan McGee Date: Tue, 25 Sep 2012 00:30:05 -0500 Subject: Add structured data to developer listing pages Signed-off-by: Dan McGee --- public/views.py | 3 +++ templates/public/developer_list.html | 17 ++++++++++++----- 2 files changed, 15 insertions(+), 5 deletions(-) diff --git a/public/views.py b/public/views.py index 312cb3b..35315e0 100644 --- a/public/views.py +++ b/public/views.py @@ -29,14 +29,17 @@ def index(request): USER_LISTS = { 'devs': { 'user_type': 'Developers', + 'user_title': 'Developer', 'description': "This is a list of the current Arch Linux Developers. They maintain the [core] and [extra] package repositories in addition to doing any other developer duties.", }, 'tus': { 'user_type': 'Trusted Users', + 'user_title': 'Trusted User', 'description': "Here are all your friendly Arch Linux Trusted Users who are in charge of the [community] repository.", }, 'fellows': { 'user_type': 'Fellows', + 'user_title': 'Fellow', 'description': "Below you can find a list of ex-developers (aka project fellows). These folks helped make Arch what it is today. Thanks!", }, } diff --git a/templates/public/developer_list.html b/templates/public/developer_list.html index 376ab43..df4137e 100644 --- a/templates/public/developer_list.html +++ b/templates/public/developer_list.html @@ -12,17 +12,24 @@ {% for dev in dev_list %} {% with dev.userprofile as prof %} - +
- Image for {{ prof.alias }} + Image for {{ prof.alias }} + + + + +
+ +

{{ dev.get_full_name }}{% if prof.latin_name %} ({{ prof.latin_name}}){% endif %} ΒΆ

- + @@ -38,7 +45,7 @@ - @@ -46,7 +53,7 @@ - + -- cgit v1.2.3-24-g4f1b
Alias:{{ prof.alias }}{{ prof.alias }}
Email: {{ prof.public_email }}
Website:{% if prof.website %}{% if prof.website %}{% endif %}
{{ prof.occupation }}
YOB:{% if prof.yob %}{{ prof.yob }}{% endif %}{% if prof.yob %}{{ prof.yob }}{% endif %}
Location: {% if dev.userprofile.country %}{{ dev.userprofile.country.name }} {% endif %}{{ prof.location }}