logo       
Google Custom Search
    AddThis Social Bookmark Button
-->

CVS: tmda-cgi View.py,1.21,1.22: msg#00011

Subject: CVS: tmda-cgi View.py,1.21,1.22
Update of /cvsroot/tmda/tmda-cgi
In directory sc8-pr-cvs1:/tmp/cvs-serv3389

Modified Files:
        View.py 
Log Message:
Moved theme-specific data (inactive forward/next button filenames) out of 
View.py and into the theme.


Index: View.py
===================================================================
RCS file: /cvsroot/tmda/tmda-cgi/View.py,v
retrieving revision 1.21
retrieving revision 1.22
diff -u -r1.21 -r1.22
--- View.py     12 Jun 2003 18:05:38 -0000      1.21
+++ View.py     5 Dec 2003 18:44:23 -0000       1.22
@@ -168,33 +168,27 @@
 
   # Grey out the first & prev buttons?
   if MsgIdx == 0:
-    T["FirstButt1"]
-    T["FirstButt1"] = """<img src="%(ThemeDir)s/buttons/subnav_r1_c10.gif"
-width="18" height="18" alt="First">"""
-    T["PrevButt1"]
-    T["PrevButt1"] = """<img src="%(ThemeDir)s/buttons/subnav_r1_c11.gif"
-width="11" height="18" alt="Prev">"""
-    T["FirstButt2"]
-    T["FirstButt2"] = """<img src="%(ThemeDir)s/buttons/subnav_r1_c10.gif"
-width="18" height="18" alt="First">"""
-    T["PrevButt2"]
-    T["PrevButt2"] = """<img src="%(ThemeDir)s/buttons/subnav_r1_c11.gif"
-width="11" height="18" alt="Prev">"""
+    T["FirstButton1Active"]
+    T["PrevButton1Active"]
+    T["FirstButton2Active"]
+    T["PrevButton2Active"]
+  else:
+    T["FirstButton1Inactive"]
+    T["PrevButton1Inactive"]
+    T["FirstButton2Inactive"]
+    T["PrevButton2Inactive"]
 
   # Grey out the next & last buttons?
   if MsgIdx == (len(Msgs) - 1):
-    T["NextButt1"]
-    T["NextButt1"] = """<img src="%(ThemeDir)s/buttons/subnav_r1_c12.gif"
-width="11" height="18" alt="Next">"""
-    T["LastButt1"]
-    T["LastButt1"] = """<img src="%(ThemeDir)s/buttons/subnav_r1_c13.gif"
-width="18" height="18" alt="Last">"""
-    T["NextButt2"]
-    T["NextButt2"] = """<img src="%(ThemeDir)s/buttons/subnav_r1_c12.gif"
-width="11" height="18" alt="Next">"""
-    T["LastButt2"]
-    T["LastButt2"] = """<img src="%(ThemeDir)s/buttons/subnav_r1_c13.gif"
-width="18" height="18" alt="Last">"""
+    T["NextButton1Active"]
+    T["LastButton1Active"]
+    T["NextButton2Active"]
+    T["LastButton2Active"]
+  else:
+    T["NextButton1Inactive"]
+    T["LastButton1Inactive"]
+    T["NextButton2Inactive"]
+    T["LastButton2Inactive"]
 
   # Use Javascript confirmation?
   if PVars[("General", "UseJSConfirm")] == "Yes":



<Prev in Thread] Current Thread [Next in Thread>