From b4cf5bbafdda1b8f8fb4f51e6c961ffbbfe992d1 Mon Sep 17 00:00:00 2001 From: Luke Shumaker Date: Wed, 27 Mar 2013 10:10:08 -0400 Subject: Pull references to Arch Linux in code into BRANDING_ variables in settings This does not include templates --- settings.py | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'settings.py') diff --git a/settings.py b/settings.py index 52339c53..998eefbd 100644 --- a/settings.py +++ b/settings.py @@ -156,3 +156,8 @@ if DEBUG_TOOLBAR: INSTALLED_APPS = list(INSTALLED_APPS) + [ 'debug_toolbar' ] # vim: set ts=4 sw=4 et: + +BRANDING_APPNAME = 'archweb' +BRANDING_DISTRONAME = 'Arch Linux' +BRANDING_SHORTNAME = 'Arch' +BRANDING_EMAIL = 'Arch Website Notification ' -- cgit v1.2.3 From 3c115c85cf8cea1d7083c2643043d556a4992131 Mon Sep 17 00:00:00 2001 From: Luke Shumaker Date: Wed, 27 Mar 2013 14:54:10 -0400 Subject: Add a context processor so BRANDING_* works in templaces --- settings.py | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'settings.py') diff --git a/settings.py b/settings.py index 998eefbd..c979d03f 100644 --- a/settings.py +++ b/settings.py @@ -54,6 +54,7 @@ TEMPLATE_CONTEXT_PROCESSORS = ( 'django.core.context_processors.static', 'django.contrib.messages.context_processors.messages', 'main.context_processors.secure', + 'main.context_processors.branding', ) TEMPLATE_DIRS = ( @@ -138,6 +139,11 @@ PXEBOOT_URL = 'http://releng.archlinux.org/pxeboot/' # community bit on the end, repo.svn_root is appended) SVN_BASE_URL = 'svn://svn.archlinux.org/' +BRANDING_APPNAME = 'archweb' +BRANDING_DISTRONAME = 'Arch Linux' +BRANDING_SHORTNAME = 'Arch' +BRANDING_EMAIL = 'Arch Website Notification ' + ## Import local settings from local_settings import * @@ -156,8 +162,3 @@ if DEBUG_TOOLBAR: INSTALLED_APPS = list(INSTALLED_APPS) + [ 'debug_toolbar' ] # vim: set ts=4 sw=4 et: - -BRANDING_APPNAME = 'archweb' -BRANDING_DISTRONAME = 'Arch Linux' -BRANDING_SHORTNAME = 'Arch' -BRANDING_EMAIL = 'Arch Website Notification ' -- cgit v1.2.3 From ae9ee14ff153698dd90c6560437e42ff124a6d0b Mon Sep 17 00:00:00 2001 From: Luke Shumaker Date: Fri, 19 Apr 2013 21:46:51 -0400 Subject: Abstract ArchWiki URLs and references. Notable things: * Standardize on "ArchWiki", instead of also having "Arch Wiki", via BRANDING_WIKINAME * Link to the article "Install_Guide" instead of "Official_Arch_Linux_Install_Guide", it's a redirect anyway. * On the download page, it assumes the that the version is just appended to the URL for the wiki link. * For the wiki RSS link, It now uses "/${title}?feed=rss" instead of "?title=${title}&feed=rss". --- settings.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'settings.py') diff --git a/settings.py b/settings.py index c979d03f..09f2df9c 100644 --- a/settings.py +++ b/settings.py @@ -142,8 +142,10 @@ SVN_BASE_URL = 'svn://svn.archlinux.org/' BRANDING_APPNAME = 'archweb' BRANDING_DISTRONAME = 'Arch Linux' BRANDING_SHORTNAME = 'Arch' +BRANDING_WIKINAME = 'ArchWiki' BRANDING_EMAIL = 'Arch Website Notification ' + ## Import local settings from local_settings import * -- cgit v1.2.3 From 55b52a92806e4e76b1db17178f323362e3ddfe09 Mon Sep 17 00:00:00 2001 From: Luke Shumaker Date: Sat, 20 Apr 2013 00:24:29 -0400 Subject: add MAILMAN_BASE_URL to abstract mailing list links --- settings.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'settings.py') diff --git a/settings.py b/settings.py index 09f2df9c..ba9560f7 100644 --- a/settings.py +++ b/settings.py @@ -139,6 +139,8 @@ PXEBOOT_URL = 'http://releng.archlinux.org/pxeboot/' # community bit on the end, repo.svn_root is appended) SVN_BASE_URL = 'svn://svn.archlinux.org/' +MAILMAN_BASE_URL = 'https://mailman.archlinux.org/mailman' + BRANDING_APPNAME = 'archweb' BRANDING_DISTRONAME = 'Arch Linux' BRANDING_SHORTNAME = 'Arch' -- cgit v1.2.3 From f9fb5909bbcb5f5ff727a2d8f0081a4185138414 Mon Sep 17 00:00:00 2001 From: Luke Shumaker Date: Sat, 20 Apr 2013 13:42:30 -0400 Subject: remove /mailman from the MAILMAN_BASE_URL, use it every time --- settings.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'settings.py') diff --git a/settings.py b/settings.py index ba9560f7..bc15b0ab 100644 --- a/settings.py +++ b/settings.py @@ -139,7 +139,7 @@ PXEBOOT_URL = 'http://releng.archlinux.org/pxeboot/' # community bit on the end, repo.svn_root is appended) SVN_BASE_URL = 'svn://svn.archlinux.org/' -MAILMAN_BASE_URL = 'https://mailman.archlinux.org/mailman' +MAILMAN_BASE_URL = 'https://mailman.archlinux.org/' BRANDING_APPNAME = 'archweb' BRANDING_DISTRONAME = 'Arch Linux' -- cgit v1.2.3 From 753784954794259c6a674a7b33e8b1e0105f55d1 Mon Sep 17 00:00:00 2001 From: Luke Shumaker Date: Sun, 21 Apr 2013 01:01:35 -0400 Subject: add BUGTRACKER_URL --- settings.py | 1 + 1 file changed, 1 insertion(+) (limited to 'settings.py') diff --git a/settings.py b/settings.py index bc15b0ab..8cde6342 100644 --- a/settings.py +++ b/settings.py @@ -140,6 +140,7 @@ PXEBOOT_URL = 'http://releng.archlinux.org/pxeboot/' SVN_BASE_URL = 'svn://svn.archlinux.org/' MAILMAN_BASE_URL = 'https://mailman.archlinux.org/' +BUGTRACKER_URL = 'https://bugs.archlinux.org/' BRANDING_APPNAME = 'archweb' BRANDING_DISTRONAME = 'Arch Linux' -- cgit v1.2.3