From 993638d63c5177f4002374b986dca3af7f4b420a Mon Sep 17 00:00:00 2001 From: Leonidas Spyropoulos Date: Mon, 1 Oct 2012 01:19:36 +0100 Subject: [archweb] [PATCH] FS-30518 support page --- public/views.py | 7 ++++++ sitemaps.py | 1 + templates/public/support.html | 58 +++++++++++++++++++++++++++++++++++++++++++ urls.py | 1 + 4 files changed, 67 insertions(+) create mode 100644 templates/public/support.html diff --git a/public/views.py b/public/views.py index 42f2f34..0e675d7 100644 --- a/public/views.py +++ b/public/views.py @@ -71,6 +71,13 @@ def donate(request): return render(request, 'public/donate.html', context) @cache_control(max_age=300) +def support(request): + context = { + 'news_updates': News.objects.order_by('-postdate', '-id')[:3], + } + return render(request, 'public/support.html', context) + +@cache_control(max_age=300) def download(request): mirror_urls = MirrorUrl.objects.select_related('mirror').filter( protocol__default=True, diff --git a/sitemaps.py b/sitemaps.py index b53c990..7aa19ef 100644 --- a/sitemaps.py +++ b/sitemaps.py @@ -102,6 +102,7 @@ class BaseSitemap(Sitemap): 'page-tus', 'page-fellows', 'page-donate', + 'page-support', 'feeds-list', 'mirror-list', 'mirrorlist', diff --git a/templates/public/support.html b/templates/public/support.html new file mode 100644 index 0000000..0105143 --- /dev/null +++ b/templates/public/support.html @@ -0,0 +1,58 @@ +{% extends "base.html" %} +{% load markup cache %} +{% load url from future %} +{% load static from staticfiles %} + +{% block title %}Arch Linux - Support{% endblock %} + +{% block content %} +{% cache 600 support %} +
+

Support

+ +
+

News

+ {% for news in news_updates %} + {% if forloop.counter0 == 0 %} +

First check the News for any recent notifications. Usually when some major package involves manual process from the user you will find useful information there.

+ {% endif %} +

{{ news.title }}

+

{{ news.postdate|date }}

+
+ {{ news.content|markdown|truncatewords_html:50 }} +
+ {% endfor %} +
+
+

Wiki

+

The Archlinux Wiki contains solution to common problems, howto's, guides and tips. It can be found at Archlinux Wiki and it's it's open to create an account and contribute.

+
+
+

Forums

+

Find help at the Archlinux Forums

using the search functionality, or register an account and ask a question yourself. +
+
+

Mailing Lists

+

Subscribe, contribute and manage your subscribtion through the Mailman interface where you can also check archived mailing lists.

+
+
+

IRC

+

Use IRC (Internet Relay Chat) for joining our official IRC channel #archlinux on freenode.org and start chatting real time with other people with archlinux as common grounds. You will need an IRC client for connecting, please refer to simple steps provided by the wiki IRC page for details on installation and configuration.

+
+
+

Bug Tracking System

+

If you want to report a BUG you found please use our Bug Tracking System for reporting, following and helping solve your (and others) issues.

+
+
+{% endcache %} +{% endblock %} diff --git a/urls.py b/urls.py index 6cbee5d..6beef45 100644 --- a/urls.py +++ b/urls.py @@ -66,6 +66,7 @@ (r'^donate/$', 'donate', {}, 'page-donate'), (r'^download/$', 'download', {}, 'page-download'), (r'^master-keys/$', 'keys', {}, 'page-keys'), + (r'^support/$', 'support', {}, 'page-support'), ) urlpatterns += patterns('retro.views', -- 1.7.12.2