[static-web] start links from Home
- From: Olav Vitters <ovitters src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [static-web] start links from Home
- Date: Sat, 2 Aug 2014 00:14:08 +0000 (UTC)
commit 898816e48f8ba7e3a4f66025e1d611e411daeb19
Author: Olav Vitters <olav vitters nl>
Date: Sat Aug 2 02:14:05 2014 +0200
start links from Home
wiki.gnome.org/gnome/gnome.py | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/wiki.gnome.org/gnome/gnome.py b/wiki.gnome.org/gnome/gnome.py
index 19aeaf4..d10c45a 100644
--- a/wiki.gnome.org/gnome/gnome.py
+++ b/wiki.gnome.org/gnome/gnome.py
@@ -127,6 +127,8 @@ class Theme(ThemeBase):
if d['title_text'] == d['page'].split_title():
# just showing a page, no action
segments = d['page_name'].split('/')
+ if segments[0] != d['page_front_page']:
+ segments.insert(0, d['page_front_page'])
link_text = segments[-1]
link = d['page'].link_to(self.request, link_text)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]