From 63caf646fa72121852eeb4944b6b9ce606665ba0 Mon Sep 17 00:00:00 2001 From: Luke Shumaker Date: Wed, 27 Mar 2013 10:27:16 -0400 Subject: find templates -type f -exec sed -i 's/\({% block title %}\)Arch Linux/\1{{ BRANDING_DISTRONAME }}/' {} + --- templates/public/feeds.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'templates/public/feeds.html') diff --git a/templates/public/feeds.html b/templates/public/feeds.html index 0f80e1c2..9f62c4b7 100644 --- a/templates/public/feeds.html +++ b/templates/public/feeds.html @@ -1,5 +1,5 @@ {% extends "base.html" %} -{% block title %}Arch Linux - RSS Feeds{% endblock %} +{% block title %}{{ BRANDING_DISTRONAME }} - RSS Feeds{% endblock %} {% block content %}
-- cgit v1.2.3-54-g00ecf From 4ab05a025f424c0b5ce140ff68182e20595b04a2 Mon Sep 17 00:00:00 2001 From: Luke Shumaker Date: Fri, 19 Apr 2013 19:11:04 -0400 Subject: manually replace more instances of the Arch name --- README.BRANDING | 60 +++++++++++++++++++++++++++++++++++++++ templates/packages/flag.html | 2 +- templates/packages/flaghelp.html | 2 +- templates/packages/opensearch.xml | 4 +-- templates/public/feeds.html | 8 +++--- templates/public/index.html | 2 +- templates/public/keys.html | 4 +-- templates/public/userlist.html | 2 +- 8 files changed, 72 insertions(+), 12 deletions(-) create mode 100644 README.BRANDING (limited to 'templates/public/feeds.html') diff --git a/README.BRANDING b/README.BRANDING new file mode 100644 index 00000000..d5c43aa8 --- /dev/null +++ b/README.BRANDING @@ -0,0 +1,60 @@ +templates/base.html + * main navbar + * links to `bbs.archlinux.org` + * links to `bugs.archlinux.org` + * links to the AUR + * logged in navbar + * links to `wiki.achlinux.org/index.php/DeveloperWiki` + * links to `mailman.archlinux.org` + * links to `stats.archlinux.org/munin` + * copyright statement is Arch-specific. + +templates/public/index.html + * The text in the intro box describes Arch Linux. + * sidebar + * Documentation + * links to `wiki.archlinux.org` + * Community + * links to `mailman.archlinux.org` + * links to `wiki.archlinux.org` + * links to `planet.archlinux.org` ("Planet Arch") + * Support + * links to `schwag.archlinux.ca` + * links to `www.zazzle.com/archlinux*` + * links to `www.freewear.org/?page=list_items&org=Archlinux` + * Development + * links to `projects.archlinux.org` ("Official Arch projects") + * links to `wiki.archlinux.org` + * More Resources + * links to `wiki.archlinux.org` + * Below sidebar + * Arch's donate button + * Arch's sponsors + +templates/public/feeds + * links to Arch Wiki + * links to AUR + * links to `bugs.archlinux.org` + +templates/public/art.html + * entire page is Arch-specific + +templates/public/donate.html + * entire page is Arch-specific + +templates/public/about.html + * entire page is Arch-specific + +templates/public/download.html + * entire page is Arch-specific + +templates/packages/flaghelp.html + * links to `mailman.archlinux.org` + * links to `bugs.archlinux.org` + +templates/packages/opensearch.xml + * `` includes `archlinux` + +templates/packages/flag.html + * links to `mailman.archlinux.org` + * links to `bugs.archlinux.org` diff --git a/templates/packages/flag.html b/templates/packages/flag.html index bfca2a65..d7b86dde 100644 --- a/templates/packages/flag.html +++ b/templates/packages/flag.html @@ -29,7 +29,7 @@

Flag Package: {{ package.pkgname }} {{ package.full_version }} ({{ package.a

Note: Do not use this facility if the package is broken! The package will be unflagged and the report will be ignored! - Use the + Use the bugtracker to file a bug instead.

Please confirm your flag request for {{package.pkgname}}:

diff --git a/templates/packages/flaghelp.html b/templates/packages/flaghelp.html index 819a2f01..9080f611 100644 --- a/templates/packages/flaghelp.html +++ b/templates/packages/flaghelp.html @@ -30,7 +30,7 @@

Flagging Packages

Note: Please do not use this facility if the package is broken! Use the bugtracker instead.

+ title="{{ BRANDING_DISTRONAME }} Bugtracker">bugtracker instead.

diff --git a/templates/packages/opensearch.xml b/templates/packages/opensearch.xml index 216be3e9..800b7890 100644 --- a/templates/packages/opensearch.xml +++ b/templates/packages/opensearch.xml @@ -1,7 +1,7 @@ - Arch Linux Packages - Search the Arch Linux package repositories. + {{BRANDING_DISTRONAME}} Packages + Search the {{BRANDING_DISTRONAME}} package repositories. linux archlinux package software {{domain}}/static/favicon.ico en-us diff --git a/templates/public/feeds.html b/templates/public/feeds.html index 9f62c4b7..764ebd90 100644 --- a/templates/public/feeds.html +++ b/templates/public/feeds.html @@ -6,14 +6,14 @@

RSS Feeds

-

Several RSS feeds are available for consumption from the Arch website. +

Several RSS feeds are available for consumption from the {{ BRANDING_SHORTNAME }} website. The majority of these are package-related and allow feeds to be customized for the updates you care about.

News and Activity Feeds

-

Grab the news item feed - to keep up-to-date with the latest news from the Arch Linux development staff.

+

Grab the news item feed + to keep up-to-date with the latest news from the {{ BRANDING_DISTRONAME }} development staff.

The Arch Wiki: Recent changes feed @@ -23,7 +23,7 @@

News and Activity Feeds

Package Feeds

If you are interested in all package updates, + title="{{ BRANDING_DISTRONAME }} package updates feed">all package updates, then grab this feed. Note that when a package is updated for multiple architectures, you will see each individual update show up here. Alternatively, you can select a packages feed from the below table that is diff --git a/templates/public/index.html b/templates/public/index.html index 86c0be05..4b2bdfa3 100644 --- a/templates/public/index.html +++ b/templates/public/index.html @@ -189,7 +189,7 @@

More Resources

New
  • Press Coverage
  • -
  • Logos & Artwork
  • +
  • Logos & Artwork
  • News Archives
  • RSS Feeds
  • Developer Profiles
  • diff --git a/templates/public/keys.html b/templates/public/keys.html index 1a21827a..4afc6d6b 100644 --- a/templates/public/keys.html +++ b/templates/public/keys.html @@ -8,7 +8,7 @@

    Master Signing Keys

    -

    This page lists the Arch Linux Master Keys. This is a distributed set of +

    This page lists the {{ BRANDING_DISTORNAME }} Master Keys. This is a distributed set of keys that are seen as "official" signing keys of the distribution. Each key is held by a different developer, and a revocation certificate for the key is held by a different developer. Thus, no one developer has absolute hold @@ -53,7 +53,7 @@

    Master Signing Keys

    personal key of the developer is signed by the given master key. A 'No' indicates it has not been signed; however, this does not necessarily mean the key should not be trusted.

    -

    All official Arch Linux developers and trusted users should have their +

    All official {{ BRANDING_DISTRONAME }} developers and trusted users should have their key signed by at least three master keys if they are responsible for packaging software in the repositories. This is in accordance with the PGP web of trust concept. If a user is willing to marginally trust all diff --git a/templates/public/userlist.html b/templates/public/userlist.html index 66c63400..197346c3 100644 --- a/templates/public/userlist.html +++ b/templates/public/userlist.html @@ -6,7 +6,7 @@ {% block content %} {% cache 600 dev-tu-profiles user_type %}

    -

    Arch Linux {{user_type}}

    +

    {{BRANDING_DISTRONAME}} {{user_type}}

    {{description}}

    -- cgit v1.2.3-54-g00ecf 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". --- README.BRANDING | 8 -------- main/context_processors.py | 1 + main/templatetags/wiki.py | 9 +++++++++ settings.py | 2 ++ templates/base.html | 8 ++++---- templates/mirrors/mirrorlist_generate.html | 5 +++-- templates/public/art.html | 2 +- templates/public/download.html | 7 ++++--- templates/public/feeds.html | 10 +++++----- templates/public/index.html | 19 ++++++++++--------- templates/public/svn.html | 4 ++-- templates/releng/results.html | 3 ++- 12 files changed, 43 insertions(+), 35 deletions(-) create mode 100644 main/templatetags/wiki.py (limited to 'templates/public/feeds.html') diff --git a/README.BRANDING b/README.BRANDING index d5c43aa8..1f9a1db0 100644 --- a/README.BRANDING +++ b/README.BRANDING @@ -4,7 +4,6 @@ templates/base.html * links to `bugs.archlinux.org` * links to the AUR * logged in navbar - * links to `wiki.achlinux.org/index.php/DeveloperWiki` * links to `mailman.archlinux.org` * links to `stats.archlinux.org/munin` * copyright statement is Arch-specific. @@ -12,11 +11,8 @@ templates/base.html templates/public/index.html * The text in the intro box describes Arch Linux. * sidebar - * Documentation - * links to `wiki.archlinux.org` * Community * links to `mailman.archlinux.org` - * links to `wiki.archlinux.org` * links to `planet.archlinux.org` ("Planet Arch") * Support * links to `schwag.archlinux.ca` @@ -24,15 +20,11 @@ templates/public/index.html * links to `www.freewear.org/?page=list_items&org=Archlinux` * Development * links to `projects.archlinux.org` ("Official Arch projects") - * links to `wiki.archlinux.org` - * More Resources - * links to `wiki.archlinux.org` * Below sidebar * Arch's donate button * Arch's sponsors templates/public/feeds - * links to Arch Wiki * links to AUR * links to `bugs.archlinux.org` diff --git a/main/context_processors.py b/main/context_processors.py index 850bb499..5ac31744 100644 --- a/main/context_processors.py +++ b/main/context_processors.py @@ -7,6 +7,7 @@ def branding(request): 'BRANDING_APPNAME': settings.BRANDING_APPNAME, 'BRANDING_DISTRONAME': settings.BRANDING_DISTRONAME, 'BRANDING_SHORTNAME': settings.BRANDING_SHORTNAME, + 'BRANDING_WIKINAME': settings.BRANDING_WIKINAME, 'BRANDING_EMAIL': settings.BRANDING_EMAIL, } diff --git a/main/templatetags/wiki.py b/main/templatetags/wiki.py new file mode 100644 index 00000000..b1b8dd55 --- /dev/null +++ b/main/templatetags/wiki.py @@ -0,0 +1,9 @@ +from django import template +register = template.Library() + +@register.simple_tag +def wiki_url(article=""): + if article == "": + return "https://wiki.archlinux.org/" + else: + return "https://wiki.archlinux.org/index.php/"+article.replace(' ', '_') diff --git a/settings.py b/settings.py index c979d03f..09f2df9c 100644 --- a/settings.py +++ b/settings.py @@ -142,8 +142,10 @@ 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 * diff --git a/templates/base.html b/templates/base.html index 3eb67c92..2b3aed66 100644 --- a/templates/base.html +++ b/templates/base.html @@ -1,4 +1,4 @@ -{% load url from future %}{% load static from staticfiles %} +{% load url from future %}{% load static from staticfiles %}{% load wiki %} {% block title %}{{ BRANDING_DISTRONAME }}{% endblock %} @@ -21,7 +21,7 @@
  • Home
  • Packages
  • Forums
  • -
  • Wiki
  • +
  • Wiki
  • Bugs
  • AUR
  • Download
  • @@ -33,7 +33,7 @@ {% if user.is_authenticated %}
    • Dashboard
    • -
    • DevWiki
    • News
    • Signoffs
    • @@ -75,7 +75,7 @@ title="Contact Aaron Griffin">Aaron Griffin.

      The Arch Linux name and logo are recognized - trademarks. Some rights reserved.

      The registered trademark Linux® is used pursuant to a sublicense from LMI, diff --git a/templates/mirrors/mirrorlist_generate.html b/templates/mirrors/mirrorlist_generate.html index c68cad6c..2025eec2 100644 --- a/templates/mirrors/mirrorlist_generate.html +++ b/templates/mirrors/mirrorlist_generate.html @@ -1,5 +1,6 @@ {% extends "base.html" %} {% load package_extras %} +{% load wiki %} {% block title %}{{ BRANDING_DISTRONAME }} - Pacman Mirrorlist Generator{% endblock %} {% block content %} @@ -28,8 +29,8 @@

      Mirrorlist with all available mirrors

      Customized by country mirrorlist

      The following form can generate a custom up-to-date - pacman mirrorlist based on geography and + pacman mirrorlist based on geography and desired protocol(s). Simply replace the contents of /etc/pacman.d/mirrorlist with your generated list. Additionally, the mirror status data can be incorporated into the generated diff --git a/templates/public/art.html b/templates/public/art.html index f013a040..89f1f81e 100644 --- a/templates/public/art.html +++ b/templates/public/art.html @@ -11,7 +11,7 @@

      {{ BRANDING_DISTRONAME }} Logos and Artwork

      Logos for Press Usage

      The following {{BRANDING_DISTRONAME}} logos are available for press and other use, subject to - the restrictions of our trademark policy.

      Two-color standard version
      diff --git a/templates/public/download.html b/templates/public/download.html index fdfe8e57..72d21736 100644 --- a/templates/public/download.html +++ b/templates/public/download.html @@ -2,6 +2,7 @@ {% load cache %} {% load url from future %} {% load static from staticfiles %} +{% load wiki %} {% block title %}{{ BRANDING_DISTRONAME }} - Downloads{% endblock %} {% block navbarclass %}anb-download{% endblock %} @@ -20,7 +21,7 @@

      Release Info

      can always be updated with `pacman -Syu`.

    {% endblock %} diff --git a/templates/public/feeds.html b/templates/public/feeds.html index 764ebd90..f298de7f 100644 --- a/templates/public/feeds.html +++ b/templates/public/feeds.html @@ -1,4 +1,4 @@ -{% extends "base.html" %} +{% extends "base.html" %}{% load wiki %} {% block title %}{{ BRANDING_DISTRONAME }} - RSS Feeds{% endblock %} {% block content %} @@ -15,10 +15,10 @@

    News and Activity Feeds

    Grab the news item feed to keep up-to-date with the latest news from the {{ BRANDING_DISTRONAME }} development staff.

    -

    The Arch Wiki: Recent changes feed - is also available to track document changes from the Arch Wiki.

    +

    The {{ BRANDING_WIKINAME }}: Recent changes feed + is also available to track document changes from the {{ BRANDING_WIKINAME }}.

    Package Feeds

    diff --git a/templates/public/index.html b/templates/public/index.html index de8a5fe8..7c22c251 100644 --- a/templates/public/index.html +++ b/templates/public/index.html @@ -2,6 +2,7 @@ {% load markup cache %} {% load url from future %} {% load static from staticfiles %} +{% load wiki %} {% block head %} @@ -28,8 +29,8 @@

    A simple, lightweight distribution

    check out our forums and mailing lists - to get your feet wet. Also glance through our wiki + to get your feet wet. Also glance through our wiki if you want to learn more about Arch.

    Recent Updates (Documentation

    @@ -128,11 +129,11 @@

    Community

    @@ -168,7 +169,7 @@

    Development

    title="Official Arch projects (git)">Projects in Git
  • SVN Repositories
  • -
  • Developer Wiki
  • Package Groups
  • @@ -187,7 +188,7 @@

    More Resources

  • Signing Master Keys New
  • -
  • Press Coverage
  • Logos & Artwork
  • News Archives
  • diff --git a/templates/public/svn.html b/templates/public/svn.html index 38e20ec9..88c6df93 100644 --- a/templates/public/svn.html +++ b/templates/public/svn.html @@ -5,7 +5,7 @@

    SVN Repositories

    The PKGBUILD files can be fetched via the ABS utility. To learn more - about ABS, see the ABS wiki page. + about ABS, see the ABS wiki page.

    The SVN repositories have been cloned into git repositories and can be viewed via the cgit interface. @@ -31,7 +31,7 @@

    SVN Repositories

    svn update <your-package-name>

    - Visit the wiki + Visit the wiki for more tips on checking out and updating svn PKGBUILDs.

    diff --git a/templates/releng/results.html b/templates/releng/results.html index 82073ffe..df98d1ac 100644 --- a/templates/releng/results.html +++ b/templates/releng/results.html @@ -1,5 +1,6 @@ {% extends "base.html" %} {% load url from future %} +{% load wiki %} {% block title %}{{ BRANDING_DISTRONAME }} - Release Engineering Testbuild Results{% endblock %} @@ -18,7 +19,7 @@

    Release Engineering Testbuild Results

    the overview.

    For more information, see the documentation + href="{% wiki_url 'DeveloperWiki:releng_testimages_feedback' %}">documentation on the wiki.

    All ISOs referenced on this page are available from -- cgit v1.2.3-54-g00ecf 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 --- main/context_processors.py | 1 + settings.py | 1 + templates/base.html | 2 +- templates/packages/flag.html | 2 +- templates/packages/flaghelp.html | 2 +- templates/public/feeds.html | 2 +- 6 files changed, 6 insertions(+), 4 deletions(-) (limited to 'templates/public/feeds.html') diff --git a/main/context_processors.py b/main/context_processors.py index d6456a9d..2543a3de 100644 --- a/main/context_processors.py +++ b/main/context_processors.py @@ -10,6 +10,7 @@ def branding(request): 'BRANDING_WIKINAME': settings.BRANDING_WIKINAME, 'BRANDING_EMAIL': settings.BRANDING_EMAIL, 'MAILMAN_BASE_URL': settings.MAILMAN_BASE_URL, + 'BUGTRACKER_URL': settings.BUGTRACKER_URL, } # vim: set ts=4 sw=4 et: diff --git a/settings.py b/settings.py index bc15b0ab..8cde6342 100644 --- a/settings.py +++ b/settings.py @@ -140,6 +140,7 @@ 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' diff --git a/templates/base.html b/templates/base.html index e6553449..f555b83d 100644 --- a/templates/base.html +++ b/templates/base.html @@ -22,7 +22,7 @@

  • Packages
  • Forums
  • Wiki
  • -
  • Bugs
  • +
  • Bugs
  • AUR
  • Download
  • diff --git a/templates/packages/flag.html b/templates/packages/flag.html index 6cd5bedf..063e1d1e 100644 --- a/templates/packages/flag.html +++ b/templates/packages/flag.html @@ -29,7 +29,7 @@

    Flag Package: {{ package.pkgname }} {{ package.full_version }} ({{ package.a

    Note: Do not use this facility if the package is broken! The package will be unflagged and the report will be ignored! - Use the + Use the bugtracker to file a bug instead.

    Please confirm your flag request for {{package.pkgname}}:

    diff --git a/templates/packages/flaghelp.html b/templates/packages/flaghelp.html index 01534d8f..fddc1bda 100644 --- a/templates/packages/flaghelp.html +++ b/templates/packages/flaghelp.html @@ -29,7 +29,7 @@

    Flagging Packages

    with your additional text.

    Note: Please do not use this facility if the - package is broken! Use the bugtracker instead.

    diff --git a/templates/public/feeds.html b/templates/public/feeds.html index f298de7f..91cd9e71 100644 --- a/templates/public/feeds.html +++ b/templates/public/feeds.html @@ -61,7 +61,7 @@

    Package Feeds

    Development Feeds

    Subscribe to any of the following to track bug tickets and feature - requests from the Arch Linux Bugtracker:

    + requests from the {{BRANDING_DISTRONAME}} Bugtracker:

    -- cgit v1.2.3-54-g00ecf