[Hejes-devel] [948] - blog/manage: no right sidebar for easier usage

hejes-devel at nytud.hu hejes-devel at nytud.hu
Wed Sep 18 18:48:54 CEST 2013


Revision: 948
Author:   mihaltz
Date:     2013-09-18 18:48:54 +0200 (Wed, 18 Sep 2013)
Log Message:
-----------
- blog/manage: no right sidebar for easier usage
- blog/index: show only 1st paragraph of body for each post; format using MARKMIN
- blog/show: categories and tags formatted like on index page
- blog/show+index: link on main image to index
- blog/index: show status message if a tag or a category was selected
- blog/index: pager (TODO: don't show all page numbers if npages > 5 or so, e.g. << 1 | 2 | 3 ... 5 | 6 >>)

Modified Paths:
--------------
    trunk/web2py/applications/helyesiras_webdev/languages/hu-hu.py
    trunk/web2py/applications/helyesiras_webdev/languages/hu.py
    trunk/web2py/applications/helyesiras_webdev/progress.log
    trunk/web2py/applications/helyesiras_webdev/static/css/main.css
    trunk/web2py/applications/helyesiras_webdev/static/images/blog_h.png
    trunk/web2py/applications/helyesiras_webdev/static/widget/w1_body.png
    trunk/web2py/applications/helyesiras_webdev/static/widget/w1_head.png
    trunk/web2py/applications/helyesiras_webdev/static/widget/widget1.html
    trunk/web2py/applications/helyesiras_webdev/views/blog/index.html
    trunk/web2py/applications/helyesiras_webdev/views/blog/show.html

Modified: trunk/web2py/applications/helyesiras_webdev/languages/hu-hu.py
===================================================================
--- trunk/web2py/applications/helyesiras_webdev/languages/hu-hu.py	2013-09-18 11:33:20 UTC (rev 947)
+++ trunk/web2py/applications/helyesiras_webdev/languages/hu-hu.py	2013-09-18 16:48:54 UTC (rev 948)
@@ -19,6 +19,7 @@
 'Are you sure you want to delete this object?': 'Are you sure you want to delete this object?',
 'Available databases and tables': 'Elérhető adatbázisok és táblák',
 'Az oldalról': 'Az oldalról',
+'Beépítés': 'Beépítés',
 'Blog': 'Blog',
 'Buy this book': 'Buy this book',
 'cache': 'gyorsítótár',

Modified: trunk/web2py/applications/helyesiras_webdev/languages/hu.py
===================================================================
--- trunk/web2py/applications/helyesiras_webdev/languages/hu.py	2013-09-18 11:33:20 UTC (rev 947)
+++ trunk/web2py/applications/helyesiras_webdev/languages/hu.py	2013-09-18 16:48:54 UTC (rev 948)
@@ -18,6 +18,8 @@
 'Are you sure you want to delete this object?': 'Are you sure you want to delete this object?',
 'Available databases and tables': 'Elérhető adatbázisok és táblák',
 'Az oldalról': 'Az oldalról',
+'Beépítés': 'Beépítés',
+'Blog': 'Blog',
 'Buy this book': 'Buy this book',
 'cache': 'gyorsítótár',
 'Cannot be empty': 'Nem lehet üres',
@@ -27,6 +29,8 @@
 'Community': 'Community',
 'Controller': 'Controller',
 'Copyright': 'Copyright',
+'Created By': 'Created By',
+'Created On': 'Created On',
 'Current request': 'Jelenlegi lekérdezés',
 'Current response': 'Jelenlegi válasz',
 'Current session': 'Jelenlegi folyamat',
@@ -78,6 +82,7 @@
 'Invalid email': 'Invalid email',
 'Invalid Query': 'Hibás lekérdezés',
 'invalid request': 'hibás kérés',
+'Is Active': 'Is Active',
 'Kapcsolat': 'Kapcsolat',
 'Kik készítették?': 'Kik készítették?',
 'Kérem, adjon meg egy dátumot!': 'Kérem, adjon meg egy dátumot!',
@@ -95,6 +100,8 @@
 'Magunkról': 'Magunkról',
 'Main Menu': 'Főmenü',
 'Menu Model': 'Menü model',
+'Modified By': 'Modified By',
+'Modified On': 'Modified On',
 'Name': 'Name',
 'New Record': 'Új bejegyzés',
 'new record inserted': 'új bejegyzés felvéve',
@@ -119,10 +126,11 @@
 'Recipes': 'Recipes',
 'record': 'bejegyzés',
 'record does not exist': 'bejegyzés nem létezik',
+'Record ID': 'Record ID',
 'record id': 'bejegyzés id',
-'Record ID': 'Record ID',
 'Redmine': 'Redmine',
 'register': 'regisztráció',
+'Registration identifier': 'Registration identifier',
 'Registration key': 'Registration key',
 'Reset Password key': 'Reset Password key',
 'Resources': 'Resources',

Modified: trunk/web2py/applications/helyesiras_webdev/progress.log
===================================================================
--- trunk/web2py/applications/helyesiras_webdev/progress.log	2013-09-18 11:33:20 UTC (rev 947)
+++ trunk/web2py/applications/helyesiras_webdev/progress.log	2013-09-18 16:48:54 UTC (rev 948)
@@ -802,3 +802,33 @@
 [2013-09-13 15:22:49] EDIT helyesiras_webdev/views/default/aboutus.html: 0
 [2013-09-13 15:23:40] EDIT helyesiras_webdev/views/default/aboutus.html: 0
 [2013-09-13 15:26:39] EDIT helyesiras_webdev/views/default/aboutus.html: 0
+[2013-09-18 09:40:51] UPLOAD /usr/local/opt/web2py.2.4.6-stable/applications/helyesiras_webdev/static/widget/w1_head.png: 33
+[2013-09-18 09:46:50] EDIT helyesiras_webdev/static/widget/widget1.html.bak: 0
+[2013-09-18 09:47:00] EDIT helyesiras_webdev/static/widget/widget1.html.bak: -1
+[2013-09-18 09:47:06] EDIT helyesiras_webdev/static/widget/widget1.html.bak: 0
+[2013-09-18 09:48:14] DELETE helyesiras_webdev/static/widget/widget1.html.bak.bak: -297
+[2013-09-18 09:48:21] DELETE helyesiras_webdev/static/widget/widget1.html.bak: -298
+[2013-09-18 09:48:47] EDIT helyesiras_webdev/static/widget/widget1.html.bak: 0
+[2013-09-18 09:50:56] UPLOAD /usr/local/opt/web2py.2.4.6-stable/applications/helyesiras_webdev/static/widget/w1_body.png: 4
+[2013-09-18 09:56:42] EDIT helyesiras_webdev/static/widget/widget1.html.bak: 0
+[2013-09-18 09:56:51] EDIT helyesiras_webdev/static/widget/widget1.html.bak: -1
+[2013-09-18 10:12:35] EDIT helyesiras_webdev/views/blog/index.html: 1
+[2013-09-18 10:13:46] EDIT helyesiras_webdev/views/blog/index.html: 3
+[2013-09-18 10:14:59] UPLOAD /usr/local/opt/web2py.2.4.6-stable/applications/helyesiras_webdev/static/images/blog_h.png: 98
+[2013-09-18 10:16:09] EDIT helyesiras_webdev/views/blog/index.html: 0
+[2013-09-18 10:17:40] EDIT helyesiras_webdev/views/blog/index.html: 0
+[2013-09-18 10:19:30] EDIT helyesiras_webdev/static/css/main.css: 14
+[2013-09-18 10:19:51] EDIT helyesiras_webdev/static/css/main.css: 1
+[2013-09-18 10:20:15] EDIT helyesiras_webdev/static/css/main.css: 0
+[2013-09-18 10:20:31] EDIT helyesiras_webdev/static/css/main.css: 1
+[2013-09-18 10:20:48] EDIT helyesiras_webdev/static/css/main.css: 1
+[2013-09-18 10:21:49] EDIT helyesiras_webdev/views/blog/index.html: 0
+[2013-09-18 10:22:02] EDIT helyesiras_webdev/static/css/main.css: 0
+[2013-09-18 10:23:51] EDIT helyesiras_webdev/static/css/main.css: 1
+[2013-09-18 10:24:04] EDIT helyesiras_webdev/static/css/main.css: 1
+[2013-09-18 10:24:15] EDIT helyesiras_webdev/static/css/main.css: 1
+[2013-09-18 10:24:59] EDIT helyesiras_webdev/static/css/main.css: 0
+[2013-09-18 10:25:46] EDIT helyesiras_webdev/static/css/main.css: 0
+[2013-09-18 10:30:11] EDIT helyesiras_webdev/static/css/main.css: 2
+[2013-09-18 11:06:54] EDIT helyesiras_webdev/static/widget/widget1.html: -1
+[2013-09-18 12:16:12] EDIT helyesiras_webdev/views/blog/show.html: 13

Modified: trunk/web2py/applications/helyesiras_webdev/static/css/main.css
===================================================================
--- trunk/web2py/applications/helyesiras_webdev/static/css/main.css	2013-09-18 11:33:20 UTC (rev 947)
+++ trunk/web2py/applications/helyesiras_webdev/static/css/main.css	2013-09-18 16:48:54 UTC (rev 948)
@@ -862,6 +862,8 @@
 /*    clear: right;*/
     list-style: none;
     margin: 0;
+float: left;
+width: 100%;
 }
 textarea.textarea-a,
 ul.result li,
@@ -1882,6 +1884,28 @@
 }
 
 
+#blog-header-image {
+	position: relative;
+	display: block;
+}
+	#blog-header-image h3 {
+		padding: 0;
+		position: absolute;
+		top: 32px;
+		left: 204px;
+		width: 238px;
+		line-height: 17px;
+		font-size: 13px;
+		font-family: 'maven_pro_light_300';		
+		color: #777777;		
+		text-align: center;
+	}
+		#blog-header-image h3 em {
+			font-size: 28px;
+			line-height: 45px;
+			font-style: normal;
+		}
+
 .pager {
 	float: left;
 }

Modified: trunk/web2py/applications/helyesiras_webdev/static/images/blog_h.png
===================================================================
(Binary files differ)

Modified: trunk/web2py/applications/helyesiras_webdev/static/widget/w1_body.png
===================================================================
(Binary files differ)

Modified: trunk/web2py/applications/helyesiras_webdev/static/widget/w1_head.png
===================================================================
(Binary files differ)

Modified: trunk/web2py/applications/helyesiras_webdev/static/widget/widget1.html
===================================================================
--- trunk/web2py/applications/helyesiras_webdev/static/widget/widget1.html	2013-09-18 11:33:20 UTC (rev 947)
+++ trunk/web2py/applications/helyesiras_webdev/static/widget/widget1.html	2013-09-18 16:48:54 UTC (rev 948)
@@ -198,7 +198,6 @@
             font-family: "Helvetica";
         }
         #helyesiras-widget-1 {
-            background: url("http://htp-devel.nytud.hu/helyesiras_webdev/static/widget/w1_body.png") no-repeat left top;            
             width: 222px;
             height: 302px;
         }

Modified: trunk/web2py/applications/helyesiras_webdev/views/blog/index.html
===================================================================
--- trunk/web2py/applications/helyesiras_webdev/views/blog/index.html	2013-09-18 11:33:20 UTC (rev 947)
+++ trunk/web2py/applications/helyesiras_webdev/views/blog/index.html	2013-09-18 16:48:54 UTC (rev 948)
@@ -1,3 +1,8 @@
+{{
+response.title = 'Blog - helyesiras.mta.hu'
+response.meta.description = 'Hírek, érdekességek, helyesírási kérdések'
+}}
+
 {{extend 'layout.html'}}
 
 {{from util import pretty_hu_date}}
@@ -48,7 +53,11 @@
 <div id="blog-container">
 
 {{#=response.toolbar()}}
-<a href="{{=URL(c='blog', f='index')}}"> <img src="http://htp-devel.nytud.hu/helyesiras_webdev/static/images/blog_h.png"> </a>
+<a href="{{=URL(c='blog', f='index')}}" id="blog-header-image">
+    <img src="http://htp-devel.nytud.hu/helyesiras_webdev/static/images/blog_h.png">
+    <h3><em>Helyesiras.hu blog</em><br>
+Hírek, érdekességek, helyesírási kérdések</h3>
+</a>
 
 {{if request.vars.get('tag'):}}
   <div class="status-msg">A következő címkéjű bejegyzések láthatók: <b>{{=request.vars.get('tag')}}</b>. <a href="{{=URL(c='blog', f='index')}}">Összes bejegyzés megjelenítése</a></div>

Modified: trunk/web2py/applications/helyesiras_webdev/views/blog/show.html
===================================================================
--- trunk/web2py/applications/helyesiras_webdev/views/blog/show.html	2013-09-18 11:33:20 UTC (rev 947)
+++ trunk/web2py/applications/helyesiras_webdev/views/blog/show.html	2013-09-18 16:48:54 UTC (rev 948)
@@ -1,3 +1,11 @@
+{{
+response.title = 'Blog - helyesiras.mta.hu'
+if post.posts.title:
+  response.title = post.posts.title + ' - ' + response.title
+pass
+response.meta.description = 'Hírek, érdekességek, helyesírási kérdések'
+}}
+
 {{extend 'layout.html'}}
 
 {{from util import pretty_hu_date}}
@@ -24,7 +32,11 @@
 <div id="blog-container">
 
 {{#=response.toolbar()}}
-<a href="{{=URL(c='blog', f='index')}}"> <img src="http://htp-devel.nytud.hu/helyesiras_webdev/static/images/blog_h.png"> </a>
+<a href="{{=URL(c='blog', f='index')}}" id="blog-header-image">
+    <img src="http://htp-devel.nytud.hu/helyesiras_webdev/static/images/blog_h.png">
+    <h3><em>Helyesiras.hu blog</em><br>
+Hírek, érdekességek, helyesírási kérdések</h3>
+</a>
 
 {{if post != None:}}
     
@@ -56,6 +68,26 @@
     <span>{{=A(tag, _href=URL(c='blog', f='index', vars={'tag': tag}))}}</span>{{if i < len(post.posts.tags) - 1:}},{{pass}}
   {{pass}}
 </div>
+
+<div id="disqus_thread"></div>
+<script type="text/javascript">
+    /* * * CONFIGURATION VARIABLES: EDIT BEFORE PASTING INTO YOUR WEBPAGE * * */
+    var disqus_shortname = 'helyesirasmtahublog'; // required: replace example with your forum shortname
+    var disqus_identifier = '{{=post.posts.slug}}'; // unique id of this post => id of thread in disqus
+    var disqus_title = '{{=post.posts.title}}'; // title of this post => title of thread in disqus
+    var disqus_title = '{{=post.posts.title}}'; // title of this post => title of thread in disqus
+    var disqus_url = '{{=URL(c='blog', f='show', args=[post.posts.slug], host=True)}}'; // URL of this post (TODO: helyesiras.mta.hu!!!)
+    /* * * DON'T EDIT BELOW THIS LINE * * */
+    (function() {
+        var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true;
+        dsq.src = '//' + disqus_shortname + '.disqus.com/embed.js';
+        (document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq);
+    })();
+</script>
+<noscript>Kérjük, engedélyezze a JavaScriptet <a href="http://disqus.com/?ref_noscript">a hozzászólások</a> megjelenítéséhez.</noscript>
+<a href="http://disqus.com" class="dsq-brlink">Hozzászólások betöltése...</a>
+
+<!--
 <div class="blog-comments">
 <h5>Hozzászólások:</h5>
 <div class="blog-comment">
@@ -72,6 +104,7 @@
     </div>
 </div>
 </div>
+-->
 
 {{pass}} {{# (if post != None:) }}
 




More information about the Hejes-devel mailing list