Przeglądaj źródła

Translation links only when available

Thomas Buck 11 lat temu
rodzic
commit
0774753db9

+ 1
- 3
output/2012_12_05_xycontrol.html Wyświetl plik

@@ -32,9 +32,7 @@ t.parentNode.insertBefore(s, t);
32 32
         <h1>xythobuz.de</h1>
33 33
         <h2>Blog</h2>
34 34
     </div>
35
-    <div id="lang"><span id="lang2">Translation: 
36
-<a href='2012_12_05_xycontrol.html'>en</a>
37
-</span></div>
35
+    
38 36
     <div class="colmask leftmenu"><div class="colleft">
39 37
         <div class="content">
40 38
 

+ 1
- 3
output/2012_12_16_mun.html Wyświetl plik

@@ -32,9 +32,7 @@ t.parentNode.insertBefore(s, t);
32 32
         <h1>xythobuz.de</h1>
33 33
         <h2>Blog</h2>
34 34
     </div>
35
-    <div id="lang"><span id="lang2">Translation: 
36
-<a href='2012_12_16_mun.html'>en</a>
37
-</span></div>
35
+    
38 36
     <div class="colmask leftmenu"><div class="colleft">
39 37
         <div class="content">
40 38
 

+ 1
- 3
output/2012_12_22_docking.html Wyświetl plik

@@ -32,9 +32,7 @@ t.parentNode.insertBefore(s, t);
32 32
         <h1>xythobuz.de</h1>
33 33
         <h2>Blog</h2>
34 34
     </div>
35
-    <div id="lang"><span id="lang2">Translation: 
36
-<a href='2012_12_22_docking.html'>en</a>
37
-</span></div>
35
+    
38 36
     <div class="colmask leftmenu"><div class="colleft">
39 37
         <div class="content">
40 38
 

+ 1
- 3
output/2012_12_22_motor_test.html Wyświetl plik

@@ -32,9 +32,7 @@ t.parentNode.insertBefore(s, t);
32 32
         <h1>xythobuz.de</h1>
33 33
         <h2>Blog</h2>
34 34
     </div>
35
-    <div id="lang"><span id="lang2">Translation: 
36
-<a href='2012_12_22_motor_test.html'>en</a>
37
-</span></div>
35
+    
38 36
     <div class="colmask leftmenu"><div class="colleft">
39 37
         <div class="content">
40 38
 

+ 1
- 3
output/2012_12_25_heli.html Wyświetl plik

@@ -32,9 +32,7 @@ t.parentNode.insertBefore(s, t);
32 32
         <h1>xythobuz.de</h1>
33 33
         <h2>Blog</h2>
34 34
     </div>
35
-    <div id="lang"><span id="lang2">Translation: 
36
-<a href='2012_12_25_heli.html'>en</a>
37
-</span></div>
35
+    
38 36
     <div class="colmask leftmenu"><div class="colleft">
39 37
         <div class="content">
40 38
 

+ 1
- 3
output/2013_01_20_quadrocopter.html Wyświetl plik

@@ -32,9 +32,7 @@ t.parentNode.insertBefore(s, t);
32 32
         <h1>xythobuz.de</h1>
33 33
         <h2>Blog</h2>
34 34
     </div>
35
-    <div id="lang"><span id="lang2">Translation: 
36
-<a href='2013_01_20_quadrocopter.html'>en</a>
37
-</span></div>
35
+    
38 36
     <div class="colmask leftmenu"><div class="colleft">
39 37
         <div class="content">
40 38
 

+ 1
- 3
output/2013_01_31_odys_genio.html Wyświetl plik

@@ -32,9 +32,7 @@ t.parentNode.insertBefore(s, t);
32 32
         <h1>xythobuz.de</h1>
33 33
         <h2>Blog</h2>
34 34
     </div>
35
-    <div id="lang"><span id="lang2">Translation: 
36
-<a href='2013_01_31_odys_genio.html'>en</a>
37
-</span></div>
35
+    
38 36
     <div class="colmask leftmenu"><div class="colleft">
39 37
         <div class="content">
40 38
 

+ 1
- 3
output/2013_02_11_motor_test.html Wyświetl plik

@@ -32,9 +32,7 @@ t.parentNode.insertBefore(s, t);
32 32
         <h1>xythobuz.de</h1>
33 33
         <h2>Blog</h2>
34 34
     </div>
35
-    <div id="lang"><span id="lang2">Translation: 
36
-<a href='2013_02_11_motor_test.html'>en</a>
37
-</span></div>
35
+    
38 36
     <div class="colmask leftmenu"><div class="colleft">
39 37
         <div class="content">
40 38
 

+ 1
- 3
output/2013_02_25_android.html Wyświetl plik

@@ -32,9 +32,7 @@ t.parentNode.insertBefore(s, t);
32 32
         <h1>xythobuz.de</h1>
33 33
         <h2>Blog</h2>
34 34
     </div>
35
-    <div id="lang"><span id="lang2">Translation: 
36
-<a href='2013_02_25_android.html'>en</a>
37
-</span></div>
35
+    
38 36
     <div class="colmask leftmenu"><div class="colleft">
39 37
         <div class="content">
40 38
 

+ 1
- 3
output/2013_03_05_graphview.html Wyświetl plik

@@ -32,9 +32,7 @@ t.parentNode.insertBefore(s, t);
32 32
         <h1>xythobuz.de</h1>
33 33
         <h2>Blog</h2>
34 34
     </div>
35
-    <div id="lang"><span id="lang2">Translation: 
36
-<a href='2013_03_05_graphview.html'>en</a>
37
-</span></div>
35
+    
38 36
     <div class="colmask leftmenu"><div class="colleft">
39 37
         <div class="content">
40 38
 

+ 1
- 3
output/2013_03_10_yasab.html Wyświetl plik

@@ -32,9 +32,7 @@ t.parentNode.insertBefore(s, t);
32 32
         <h1>xythobuz.de</h1>
33 33
         <h2>Blog</h2>
34 34
     </div>
35
-    <div id="lang"><span id="lang2">Translation: 
36
-<a href='2013_03_10_yasab.html'>en</a>
37
-</span></div>
35
+    
38 36
     <div class="colmask leftmenu"><div class="colleft">
39 37
         <div class="content">
40 38
 

+ 1
- 3
output/2013_03_12_test_rig.html Wyświetl plik

@@ -32,9 +32,7 @@ t.parentNode.insertBefore(s, t);
32 32
         <h1>xythobuz.de</h1>
33 33
         <h2>Blog</h2>
34 34
     </div>
35
-    <div id="lang"><span id="lang2">Translation: 
36
-<a href='2013_03_12_test_rig.html'>en</a>
37
-</span></div>
35
+    
38 36
     <div class="colmask leftmenu"><div class="colleft">
39 37
         <div class="content">
40 38
 

+ 1
- 3
output/2013_03_13_test_rig.html Wyświetl plik

@@ -32,9 +32,7 @@ t.parentNode.insertBefore(s, t);
32 32
         <h1>xythobuz.de</h1>
33 33
         <h2>Blog</h2>
34 34
     </div>
35
-    <div id="lang"><span id="lang2">Translation: 
36
-<a href='2013_03_13_test_rig.html'>en</a>
37
-</span></div>
35
+    
38 36
     <div class="colmask leftmenu"><div class="colleft">
39 37
         <div class="content">
40 38
 

+ 1
- 3
output/2013_03_16_pid.html Wyświetl plik

@@ -32,9 +32,7 @@ t.parentNode.insertBefore(s, t);
32 32
         <h1>xythobuz.de</h1>
33 33
         <h2>Blog</h2>
34 34
     </div>
35
-    <div id="lang"><span id="lang2">Translation: 
36
-<a href='2013_03_16_pid.html'>en</a>
37
-</span></div>
35
+    
38 36
     <div class="colmask leftmenu"><div class="colleft">
39 37
         <div class="content">
40 38
 

+ 1
- 3
output/2013_03_25_doxygen.html Wyświetl plik

@@ -32,9 +32,7 @@ t.parentNode.insertBefore(s, t);
32 32
         <h1>xythobuz.de</h1>
33 33
         <h2>document ALL the code</h2>
34 34
     </div>
35
-    <div id="lang"><span id="lang2">Translation: 
36
-<a href='2013_03_25_doxygen.html'>en</a>
37
-</span></div>
35
+    
38 36
     <div class="colmask leftmenu"><div class="colleft">
39 37
         <div class="content">
40 38
 

+ 1
- 3
output/2013_04_02_zaphod.html Wyświetl plik

@@ -32,9 +32,7 @@ t.parentNode.insertBefore(s, t);
32 32
         <h1>xythobuz.de</h1>
33 33
         <h2>Zaphod Beeblebrox</h2>
34 34
     </div>
35
-    <div id="lang"><span id="lang2">Translation: 
36
-<a href='2013_04_02_zaphod.html'>en</a>
37
-</span></div>
35
+    
38 36
     <div class="colmask leftmenu"><div class="colleft">
39 37
         <div class="content">
40 38
 

+ 1
- 3
output/2013_04_04_html5.html Wyświetl plik

@@ -32,9 +32,7 @@ t.parentNode.insertBefore(s, t);
32 32
         <h1>xythobuz.de</h1>
33 33
         <h2>Blog</h2>
34 34
     </div>
35
-    <div id="lang"><span id="lang2">Translation: 
36
-<a href='2013_04_04_html5.html'>en</a>
37
-</span></div>
35
+    
38 36
     <div class="colmask leftmenu"><div class="colleft">
39 37
         <div class="content">
40 38
 

+ 1
- 3
output/2013_04_11_rss.html Wyświetl plik

@@ -21,9 +21,7 @@
21 21
         <h1>xythobuz.de</h1>
22 22
         <h2>Blog</h2>
23 23
     </div>
24
-    <div id="lang"><span id="lang2">Translation: 
25
-<a href='2013_04_11_rss.html'>en</a>
26
-</span></div>
24
+    
27 25
     <div class="colmask leftmenu"><div class="colleft">
28 26
         <div class="content">
29 27
 

+ 1
- 3
output/2013_04_17_abi.html Wyświetl plik

@@ -21,9 +21,7 @@
21 21
         <h1>xythobuz.de</h1>
22 22
         <h2>Blog</h2>
23 23
     </div>
24
-    <div id="lang"><span id="lang2">Translation: 
25
-<a href='2013_04_17_abi.html'>en</a>
26
-</span></div>
24
+    
27 25
     <div class="colmask leftmenu"><div class="colleft">
28 26
         <div class="content">
29 27
 

+ 1
- 3
output/2013_04_19_ekstasie.html Wyświetl plik

@@ -21,9 +21,7 @@
21 21
         <h1>xythobuz.de</h1>
22 22
         <h2>Drugs are bad!</h2>
23 23
     </div>
24
-    <div id="lang"><span id="lang2">Translation: 
25
-<a href='2013_04_19_ekstasie.html'>en</a>
26
-</span></div>
24
+    
27 25
     <div class="colmask leftmenu"><div class="colleft">
28 26
         <div class="content">
29 27
 

+ 1
- 3
output/2013_04_23_pad.html Wyświetl plik

@@ -21,9 +21,7 @@
21 21
         <h1>xythobuz.de</h1>
22 22
         <h2>Blog</h2>
23 23
     </div>
24
-    <div id="lang"><span id="lang2">Translation: 
25
-<a href='2013_04_23_pad.html'>en</a>
26
-</span></div>
24
+    
27 25
     <div class="colmask leftmenu"><div class="colleft">
28 26
         <div class="content">
29 27
 

+ 1
- 3
output/2013_04_24_bitrot.html Wyświetl plik

@@ -21,9 +21,7 @@
21 21
         <h1>xythobuz.de</h1>
22 22
         <h2>Blog</h2>
23 23
     </div>
24
-    <div id="lang"><span id="lang2">Translation: 
25
-<a href='2013_04_24_bitrot.html'>en</a>
26
-</span></div>
24
+    
27 25
     <div class="colmask leftmenu"><div class="colleft">
28 26
         <div class="content">
29 27
 

+ 1
- 3
output/2013_04_26_iphone_lens.html Wyświetl plik

@@ -21,9 +21,7 @@
21 21
         <h1>xythobuz.de</h1>
22 22
         <h2>Blog</h2>
23 23
     </div>
24
-    <div id="lang"><span id="lang2">Translation: 
25
-<a href='2013_04_26_iphone_lens.html'>en</a>
26
-</span></div>
24
+    
27 25
     <div class="colmask leftmenu"><div class="colleft">
28 26
         <div class="content">
29 27
 

+ 1
- 3
output/2013_05_05_debian.html Wyświetl plik

@@ -21,9 +21,7 @@
21 21
         <h1>xythobuz.de</h1>
22 22
         <h2>Blog</h2>
23 23
     </div>
24
-    <div id="lang"><span id="lang2">Translation: 
25
-<a href='2013_05_05_debian.html'>en</a>
26
-</span></div>
24
+    
27 25
     <div class="colmask leftmenu"><div class="colleft">
28 26
         <div class="content">
29 27
 

+ 1
- 3
output/404.html Wyświetl plik

@@ -21,9 +21,7 @@
21 21
         <h1>xythobuz.de</h1>
22 22
         <h2>searching something?</h2>
23 23
     </div>
24
-    <div id="lang"><span id="lang2">Translation: 
25
-<a href='404.html'>en</a>
26
-</span></div>
24
+    
27 25
     <div class="colmask leftmenu"><div class="colleft">
28 26
         <div class="content">
29 27
 

+ 1
- 3
output/avrnetstack.html Wyświetl plik

@@ -35,9 +35,7 @@ https://github.com/xythobuz/avrNetStack
35 35
         <h1>xythobuz.de</h1>
36 36
         <h2>avrNetStack</h2>
37 37
     </div>
38
-    <div id="lang"><span id="lang2">Translation: 
39
-<a href='avrnetstack.html'>en</a>
40
-</span></div>
38
+    
41 39
     <div class="colmask leftmenu"><div class="colleft">
42 40
         <div class="content">
43 41
 

+ 2
- 2
output/rss.xml Wyświetl plik

@@ -6,8 +6,8 @@
6 6
 <atom:link href="http://www.xythobuz.de/rss.xml" rel="self" type="application/rss+xml" />
7 7
 <description>xythobuz Electronics &amp; Software Projects</description>
8 8
 <language>en-us</language>
9
-<pubDate>Sun, 05 May 2013 21:15:55 -0000</pubDate>
10
-<lastBuildDate>Sun, 05 May 2013 21:15:55 -0000</lastBuildDate>
9
+<pubDate>Sun, 05 May 2013 21:18:05 -0000</pubDate>
10
+<lastBuildDate>Sun, 05 May 2013 21:18:05 -0000</lastBuildDate>
11 11
 <docs>http://blogs.law.harvard.edu/tech/rss</docs>
12 12
 <generator>Poole</generator>
13 13
 

+ 4
- 4
page.html Wyświetl plik

@@ -43,10 +43,10 @@
43 43
         <h2>{{ page.get("funny", htmlspecialchars(page["title"])) }}</h2>
44 44
     </div>
45 45
     <!--%
46
-        # if len("".join(["%s" % lang for lang in page["lang_links"]])) > 2:
47
-        print '<div id="lang"><span id="lang2">Translation: '
48
-        print " | ".join(["<a href='%s'>%s</a>" % (url, lang) for lang, url in page["lang_links"].iteritems()])
49
-        print "</span></div>"
46
+        if len("".join(["%s" % lang for lang in page["lang_links"]])) > 2:
47
+            print '<div id="lang"><span id="lang2">Translation: '
48
+            print " | ".join(["<a href='%s'>%s</a>" % (url, lang) for lang, url in page["lang_links"].iteritems()])
49
+            print "</span></div>"
50 50
     %-->
51 51
     <div class="colmask leftmenu"><div class="colleft">
52 52
         <div class="content">

Ładowanie…
Anuluj
Zapisz