[commits] r128 - selinux-site/trunk/selinux.theme/selinux/theme/browser

tim at mail.se.linux.org tim at mail.se.linux.org
Sön Nov 11 14:56:42 CET 2007


Author: tim
Date: 2007-11-11 14:56:42 +0100 (Sun, 11 Nov 2007)
New Revision: 128

Modified:
   selinux-site/trunk/selinux.theme/selinux/theme/browser/footer.pt
   selinux-site/trunk/selinux.theme/selinux/theme/browser/viewlets.py
Log:
Change image urls in footer so they are correct and the images are found.


Modified: selinux-site/trunk/selinux.theme/selinux/theme/browser/footer.pt
===================================================================
--- selinux-site/trunk/selinux.theme/selinux/theme/browser/footer.pt	2007-11-09 18:50:44 UTC (rev 127)
+++ selinux-site/trunk/selinux.theme/selinux/theme/browser/footer.pt	2007-11-11 13:56:42 UTC (rev 128)
@@ -1,37 +1,37 @@
 <div id="portal-footer" metal:define-macro="portal_footer" i18n:domain="plone">
 <p>
 <a href="http://www.busnet.se/redirect.aspx?BTNDESTID=63" class="link-plain"> 
-<img src="/busnet.png" height="35"
+<img tal:attributes="src string:${view/root_url}/busnet.png" height="35"
 	width="130" border="0" alt="Bandbredd från Busnet"
 	title="Denna webbplats skulle inte finnas på nätet utan Busnet som sponsrar med bandbredd." />
 </a>
 
 <a href="http://www.ds.karen.hj.se/" class="link-plain">
-<img src="/datorsektionen.png" height="35"
+<img tal:attributes="src string:${view/root_url}/datorsektionen.png" height="35"
 	width="130" border="0" alt="Bandbredd från Datorsektionen vid Högskolan i Jönköping"
 	title="Föreningens ftp-server skulle inte ha någon bandgredd om det inte vore för Datorsektionen vid Högskolan i Jönköping." />
 </a>
 
 <a href="http://www.informatik.gu.se" class="link-plain">
-<img src="/informatik.png" height="35"
+<img tal:attributes="src string:${view/root_url}/informatik.png" height="35"
 	width="130" border="0" alt="Server från Institutionen för Informatik vid Handelshögskolan vid Göteborgs Universitet"
 	title="Denna webbplats skulle inte finnas på nätet utan Institutionen för Informatik vid Handelshögskolan vid Göteborgs Universitet som sponsrar med hårdvara." />
 </a>
 
 <a href="http://www.southpole.se" class="link-plain">
-<img src="/southpole.png" height="35"
+<img tal:attributes="src string:${view/root_url}/southpole.png" height="35"
 	width="130" border="0" alt="Server från Southpole"
 	title="Denna webbplats skulle inte finnas utan Southpole AB som sponsrar med hårdvara." />
 </a>
 
 <a href="http://www.teknikmejeriet.se" class="link-plain">
-<img src="/teknikmejeriet.gif" height="35"
+<img tal:attributes="src string:${view/root_url}/teknikmejeriet.gif" height="35"
 	width="130" border="0" alt="Bandbredd från Teknikmejeriet i Lund"
 	title="Denna webbplats skulle inte finnas på nätet utan Teknikmejeriet som sponsrar med bandbredd." />
 </a>
 
 <a href="http://plone.org" class="link-plain">
-<img src="/plone.gif" height="35"
+<img tal:attributes="src string:${view/root_url}/plone.gif" height="35"
 	width="130" border="0" alt="Baserad på Plone"
 	title="Denna webplats är bygd med Plone Content Management System. Klicka här för mer information." />
 </a>
@@ -41,40 +41,4 @@
 <a href="/arbetsgrupper/webb/licens">Copyright 2003–2007 Svenska Linuxföreningen.</a> Kontakta oss på info at se.linux.org.<br />
 </p>
 
-
-<!--
-<p>
-    <span i18n:translate="description_copyright" tal:omit-tag="">
-    The 
-    <span i18n:name="plonecms">
-        <a href="http://plone.org" i18n:translate="label_plone_cms">Plone<sup>&reg;</sup> CMS &mdash; Open Source Content Management System</a>
-    </span>
-    is
-    <acronym title="Copyright" i18n:name="copyright" i18n:attributes="title title_copyright;">&copy;</acronym>
-    2000-<span i18n:name="current_year" 
-               tal:define="now modules/DateTime/DateTime" 
-               tal:content="now/year" />
-    by the 
-    <span i18n:name="plonefoundation">
-        <a href="http://plone.org/foundation" i18n:translate="label_plone_foundation">Plone Foundation</a>
-    </span>
-    et al.
-    </span>
-</p>
-
-<p>
-
-    <span i18n:translate="description_trademark">
-    Plone<sup>&reg;</sup> and the Plone logo are registered trademarks of the  
-        <span i18n:name="plonefoundation">
-            <a href="http://plone.org/foundation" i18n:translate="label_plone_foundation">Plone Foundation</a></span>.
-    </span>
-
-    <span i18n:translate="description_license">
-    Distributed under the 
-        <span i18n:name="license">
-            <a href="http://creativecommons.org/licenses/GPL/2.0/" i18n:translate="label_gnu_gpl_licence">GNU GPL license</a></span>.
-    </span>
-</p>
--->
 </div>

Modified: selinux-site/trunk/selinux.theme/selinux/theme/browser/viewlets.py
===================================================================
--- selinux-site/trunk/selinux.theme/selinux/theme/browser/viewlets.py	2007-11-09 18:50:44 UTC (rev 127)
+++ selinux-site/trunk/selinux.theme/selinux/theme/browser/viewlets.py	2007-11-11 13:56:42 UTC (rev 128)
@@ -7,3 +7,12 @@
 
 class TitleViewlet(viewlets.common.ViewletBase):
     render = ViewPageTemplateFile('title.pt')
+
+class FooterViewlet(viewlets.common.ViewletBase):
+    render = ViewPageTemplateFile('footer.pt')
+
+    def update(self):
+        portal_state = getMultiAdapter((self.context, self.request),
+                                            name=u'plone_portal_state')
+
+        self.root_url = portal_state.navigation_root_url()




More information about the commits mailing list