liens "version wiki"
darcs-hash:20060417095849-f46e9-324166be889bfd91119abb44263554ec8b0b341a.gz
This commit is contained in:
parent
3bfec155aa
commit
c553d5fda0
1 changed files with 7 additions and 7 deletions
|
@ -48,7 +48,6 @@ class Theme(ThemeBase):
|
||||||
(u'http://www.apache.org/', u'badges_80x15_apache.png', u'Apache powered'),
|
(u'http://www.apache.org/', u'badges_80x15_apache.png', u'Apache powered'),
|
||||||
(u'http://www.python.org/', u'badges_80x15_python.png', u'Python powered'),
|
(u'http://www.python.org/', u'badges_80x15_python.png', u'Python powered'),
|
||||||
(u'http://www.crans.org/', u'badges_80x15_crans.png', u'Cr@ns powered'),
|
(u'http://www.crans.org/', u'badges_80x15_crans.png', u'Cr@ns powered'),
|
||||||
(u'wiki', u'badges_80x15_crans.png', u'Wiki powered'),
|
|
||||||
]
|
]
|
||||||
|
|
||||||
# Public functions #####################################################
|
# Public functions #####################################################
|
||||||
|
@ -109,8 +108,6 @@ class Theme(ThemeBase):
|
||||||
def badges(self,d ):
|
def badges(self,d ):
|
||||||
badges_html = []
|
badges_html = []
|
||||||
for page, image, alt_text in self.support_badges:
|
for page, image, alt_text in self.support_badges:
|
||||||
if page == u'wiki' :
|
|
||||||
page = u'http://wiki.crans.org/%s' % d['page'].page_name
|
|
||||||
badges_html.append(u'<li><a href="%s"><img src="%s%s" alt="%s"></a></li>' % (page, self.badgesPath, image, alt_text))
|
badges_html.append(u'<li><a href="%s"><img src="%s%s" alt="%s"></a></li>' % (page, self.badgesPath, image, alt_text))
|
||||||
html = [
|
html = [
|
||||||
u'<ul class="supportBadges">',
|
u'<ul class="supportBadges">',
|
||||||
|
@ -385,10 +382,13 @@ class Theme(ThemeBase):
|
||||||
|
|
||||||
else:
|
else:
|
||||||
# Add prefpage links with title: Login
|
# Add prefpage links with title: Login
|
||||||
prefpage = wikiutil.getSysPage(request, 'UserPreferences')
|
# prefpage = wikiutil.getSysPage(request, 'UserPreferences')
|
||||||
attrs = self.extendedAttrs('Logging in is not required, but brings benefits', 'o')
|
# attrs = self.extendedAttrs('Logging in is not required, but brings benefits', 'o')
|
||||||
userlinks.append(prefpage.link_to(request, text=_("Login"), attrs=attrs))
|
# userlinks.append(prefpage.link_to(request, text=_("Login"), attrs=attrs))
|
||||||
|
url = u'http://wiki.crans.org/%s' % d['page'].page_name
|
||||||
|
link = u'<a href="%s">%s</a>' % ( url, 'Version Wiki')
|
||||||
|
userlinks.append(link)
|
||||||
|
|
||||||
html = [
|
html = [
|
||||||
u'<div class="portlet" id="p-personal">',
|
u'<div class="portlet" id="p-personal">',
|
||||||
u'<ul id="username">',
|
u'<ul id="username">',
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue