changeset 21:faa7c9e936a8

some cleanup and prev/next for feature-teaser.
author casties
date Fri, 05 Apr 2013 19:01:59 +0200
parents c7e6664d60c9
children 5ed0b0c21fe5
files MPIWGFeature.py MPIWGRoot.py css/mpiwg.css
diffstat 3 files changed, 19 insertions(+), 22 deletions(-) [+]
line wrap: on
line diff
--- a/MPIWGFeature.py	Fri Apr 05 17:28:00 2013 +0200
+++ b/MPIWGFeature.py	Fri Apr 05 19:01:59 2013 +0200
@@ -46,7 +46,7 @@
             self.date = date
         
         #    
-        # add language folder_en and sample templates
+        # add language folder and sample templates
         #
         mainid = 'main.pt'
         teaserid = 'teaser.pt'
--- a/MPIWGRoot.py	Fri Apr 05 17:28:00 2013 +0200
+++ b/MPIWGRoot.py	Fri Apr 05 19:01:59 2013 +0200
@@ -87,27 +87,6 @@
     mpiwg_css.index_html = refreshingImageFileIndexHtml
 
 
-    def decode(self,str):
-        """decoder"""
-
-        if not str:
-            return ""
-        if type(str) is StringType:
-            try:            
-                return str.decode('utf-8')
-            except:
-                return str.decode('latin-1')
-        else:
-            return str
-
-
-    def getat(self,array,idx=0,default=None):
-        """return array element idx or default (but no exception)"""
-        if len(array) <= idx:
-            return default
-        else:
-            return array[idx]
-        
     def getLang(self):
         """returns the default language"""
         return self.lang
--- a/css/mpiwg.css	Fri Apr 05 17:28:00 2013 +0200
+++ b/css/mpiwg.css	Fri Apr 05 19:01:59 2013 +0200
@@ -440,6 +440,24 @@
     font-size: 12px;
 }
 
+/* teaser switcher */
+div.feature div.switcher {
+	position: absolute;
+	top: 150px;
+	width: 16px;
+	height: 24px;
+	/* TODO: needs icon */
+	padding-top: 8px;
+	background-color: silver;
+}
+div.feature div.switcher.prev {
+	left: 0;
+}
+div.feature div.switcher.next {
+	right: 0;
+	text-align: right;
+}
+
 /* 
  * toolboxes 
  */