[Hejes-devel] [925] - moved right sidebar code from layout.html to new file right_sidebar .html which is included from layout.html

hejes-devel at nytud.hu hejes-devel at nytud.hu
Fri Sep 6 12:07:14 CEST 2013


Revision: 925
Author:   mihaltz
Date:     2013-09-06 12:07:14 +0200 (Fri, 06 Sep 2013)
Log Message:
-----------
- moved right sidebar code from layout.html to new file right_sidebar.html which is included from layout.html
- added menu item 'blog'

Modified Paths:
--------------
    trunk/web2py/applications/helyesiras_webdev/models/menu.py
    trunk/web2py/applications/helyesiras_webdev/views/layout.html

Added Paths:
-----------
    trunk/web2py/applications/helyesiras_webdev/views/right_sidebar.html

Modified: trunk/web2py/applications/helyesiras_webdev/models/menu.py
===================================================================
--- trunk/web2py/applications/helyesiras_webdev/models/menu.py	2013-09-05 22:51:58 UTC (rev 924)
+++ trunk/web2py/applications/helyesiras_webdev/models/menu.py	2013-09-06 10:07:14 UTC (rev 925)
@@ -45,5 +45,6 @@
         (T('Helyesírási Tanácsadó Szolgálat'), False, URL('default','helpline'), []),
         (T('Visszajelzés'), False, URL('default','feedback'), []),
         (T('Kövessen minket a Facebookon'), False, 'http://www.facebook.com/helyesiras.hu', [])            
-    ])
+    ]),
+    (T('Blog'), False, URL('blog', 'index'), [])
 ]

Modified: trunk/web2py/applications/helyesiras_webdev/views/layout.html
===================================================================
--- trunk/web2py/applications/helyesiras_webdev/views/layout.html	2013-09-05 22:51:58 UTC (rev 924)
+++ trunk/web2py/applications/helyesiras_webdev/views/layout.html	2013-09-06 10:07:14 UTC (rev 925)
@@ -178,33 +178,13 @@
 
 {{ if not (request.controller == 'blog' and request.function == 'manage'): }}
 
-<div id="helyesiras-widget-2">
-	<dl>
-	    <dt>
-		    <img src="http://htp-devel.nytud.hu/helyesiras_webdev/static/widget/w2_head_top.png">
-            <h2>Facebook</h2></dt>
-        <dd class="init-open active"><div class="helyesiras-widget-2-dd-inner"><div class="helyesiras-widget-2-dd-inner-top"><iframe src="//www.facebook.com/plugins/likebox.php?href=https%3A%2F%2Fwww.facebook.com%2Fhelyesiras.hu&width=210&height=258&show_faces=true&colorscheme=light&stream=false&show_border=false&header=false&appId=1395313737350712" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:210px; height:258px;" allowTransparency="true"></iframe></div></div></dd>
-	    <dt>
-		    <img src="http://htp-devel.nytud.hu/helyesiras_webdev/static/widget/w2_head_top2.png">
-		    <h2>Blog</h2>
-		</dt>
-		 <dd class="init-open active"><div class="helyesiras-widget-2-dd-inner"><div class="helyesiras-widget-2-dd-inner-top">
-                <p>A svájci-francia határon működtetett Nagy Hadronütköztető a világ legnagyobb és legbonyolultabb kísérletegyüttese, amiben fizikusok egész serege figyeli, ahogy a közel fénysebességgel ütköző atommagokból és protonokból müonok, hadronok és bozonok lesznek. Halandó ember igazából fel sem fogja, mit is jelent az előző mondat második fele, még akkor sem, ha <a href="#">személyesen nézi meg, mi is ez az egész</a>. Mi azért megpróbáltuk.</p>
-                </div></div></dd>
-	    <dt>
-        	<img src="http://htp-devel.nytud.hu/helyesiras_webdev/static/widget/w2_head_top2.png">
-        	<h2>Nyest</h2>
-      	</dt>
-        <dd><div class="helyesiras-widget-2-dd-inner"><div class="helyesiras-widget-2-dd-inner-top"></div></div></dd>
-	    <dt>
-        	<img src="http://htp-devel.nytud.hu/helyesiras_webdev/static/widget/w2_head_top2.png">
-        	<h2>Ketsoros cimsor is elferjen ha kell</h2>
-       	</dt>
-        <dd><div class="helyesiras-widget-2-dd-inner"><div class="helyesiras-widget-2-dd-inner-top"></div></div></dd>
-	</dl>
-</div>      
+<!-- Right sidebar ("helyesiras-widget-2"): -->
+
+{{include 'right_sidebar.html'}}
+
+<!-- Right sidebar ("helyesiras-widget-2") END -->
       
-{{ pass }}      
+{{ pass }}
 
       
 {{if not ((request.controller == 'default' and request.function == 'index') or (request.controller == 'blog' and request.function == 'manage')):}}

Added: trunk/web2py/applications/helyesiras_webdev/views/right_sidebar.html
===================================================================
--- trunk/web2py/applications/helyesiras_webdev/views/right_sidebar.html	                        (rev 0)
+++ trunk/web2py/applications/helyesiras_webdev/views/right_sidebar.html	2013-09-06 10:07:14 UTC (rev 925)
@@ -0,0 +1,25 @@
+<div id="helyesiras-widget-2">
+	<dl>
+	    <dt>
+		    <img src="http://htp-devel.nytud.hu/helyesiras_webdev/static/widget/w2_head_top.png">
+            <h2>Facebook</h2></dt>
+        <dd class="init-open active"><div class="helyesiras-widget-2-dd-inner"><div class="helyesiras-widget-2-dd-inner-top"><iframe src="//www.facebook.com/plugins/likebox.php?href=https%3A%2F%2Fwww.facebook.com%2Fhelyesiras.hu&width=210&height=258&show_faces=true&colorscheme=light&stream=false&show_border=false&header=false&appId=1395313737350712" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:210px; height:258px;" allowTransparency="true"></iframe></div></div></dd>
+	    <dt>
+		    <img src="http://htp-devel.nytud.hu/helyesiras_webdev/static/widget/w2_head_top2.png">
+		    <h2>Blog</h2>
+		</dt>
+		 <dd class="init-open active"><div class="helyesiras-widget-2-dd-inner"><div class="helyesiras-widget-2-dd-inner-top">
+                <p>A svájci-francia határon működtetett Nagy Hadronütköztető a világ legnagyobb és legbonyolultabb kísérletegyüttese, amiben fizikusok egész serege figyeli, ahogy a közel fénysebességgel ütköző atommagokból és protonokból müonok, hadronok és bozonok lesznek. Halandó ember igazából fel sem fogja, mit is jelent az előző mondat második fele, még akkor sem, ha <a href="#">személyesen nézi meg, mi is ez az egész</a>. Mi azért megpróbáltuk.</p>
+                </div></div></dd>
+	    <dt>
+        	<img src="http://htp-devel.nytud.hu/helyesiras_webdev/static/widget/w2_head_top2.png">
+        	<h2>Nyest</h2>
+      	</dt>
+        <dd><div class="helyesiras-widget-2-dd-inner"><div class="helyesiras-widget-2-dd-inner-top"></div></div></dd>
+	    <dt>
+        	<img src="http://htp-devel.nytud.hu/helyesiras_webdev/static/widget/w2_head_top2.png">
+        	<h2>Ketsoros cimsor is elferjen ha kell</h2>
+       	</dt>
+        <dd><div class="helyesiras-widget-2-dd-inner"><div class="helyesiras-widget-2-dd-inner-top"></div></div></dd>
+	</dl>
+</div> 




More information about the Hejes-devel mailing list