summaryrefslogtreecommitdiff
path: root/feeds.py
diff options
context:
space:
mode:
Diffstat (limited to 'feeds.py')
-rw-r--r--feeds.py11
1 files changed, 6 insertions, 5 deletions
diff --git a/feeds.py b/feeds.py
index 678bebcf..8a9c59d1 100644
--- a/feeds.py
+++ b/feeds.py
@@ -2,6 +2,7 @@ from datetime import datetime, time
import hashlib
from pytz import utc
+from django.conf import settings
from django.contrib.sites.models import Site
from django.contrib.syndication.views import Feed
from django.db.models import Q
@@ -76,7 +77,7 @@ class PackageFeed(Feed):
return obj
def title(self, obj):
- s = 'Arch Linux: Recent package updates'
+ s = settings.BRANDING_DISTRONAME+': Recent package updates'
if 'repo' in obj and 'arch' in obj:
s += ' (%s [%s])' % (obj['arch'].name, obj['repo'].name.lower())
elif 'repo' in obj:
@@ -86,7 +87,7 @@ class PackageFeed(Feed):
return s
def description(self, obj):
- s = 'Recently updated packages in the Arch Linux package repositories'
+ s = 'Recently updated packages in the '+settings.BRANDING_DISTRONAME+' package repositories'
if 'arch' in obj:
s += ' for the \'%s\' architecture' % obj['arch'].name.lower()
if not obj['arch'].agnostic:
@@ -131,9 +132,9 @@ def news_last_modified(request, *args, **kwargs):
class NewsFeed(Feed):
feed_type = GuidNotPermalinkFeed
- title = 'Arch Linux: Recent news updates'
+ title = settings.BRANDING_DISTRONAME+': Recent news updates'
link = '/news/'
- description = 'The latest and greatest news from the Arch Linux distribution.'
+ description = 'The latest and greatest news from the '+settings.BRANDING_DISTRONAME+' distribution.'
subtitle = description
description_template = 'feeds/news_description.html'
@@ -163,7 +164,7 @@ class NewsFeed(Feed):
class ReleaseFeed(Feed):
feed_type = GuidNotPermalinkFeed
- title = 'Arch Linux: Releases'
+ title = settings.BRANDING_DISTRONAME+': Releases'
link = '/download/'
description = 'Release ISOs'
subtitle = description