[Hejes-devel] [880] blog: manage page with authentication; images with external URLS
hejes-devel at nytud.hu
hejes-devel at nytud.hu
Thu Aug 1 11:59:23 CEST 2013
Revision: 880
Author: mihaltz
Date: 2013-08-01 11:59:23 +0200 (Thu, 01 Aug 2013)
Log Message:
-----------
blog: manage page with authentication; images with external URLS
Modified Paths:
--------------
trunk/web2py/applications/helyesiras_webdev/views/blog/index.html
trunk/web2py/applications/helyesiras_webdev/views/blog/show.html
Added Paths:
-----------
trunk/web2py/applications/helyesiras_webdev/views/blog/manage.html
Modified: trunk/web2py/applications/helyesiras_webdev/views/blog/index.html
===================================================================
--- trunk/web2py/applications/helyesiras_webdev/views/blog/index.html 2013-08-01 09:48:45 UTC (rev 879)
+++ trunk/web2py/applications/helyesiras_webdev/views/blog/index.html 2013-08-01 09:59:23 UTC (rev 880)
@@ -28,7 +28,7 @@
<div id="blog-container">
-{{=response.toolbar()}}
+{{#=response.toolbar()}}
<h1>Blog</h1>
@@ -36,6 +36,7 @@
<div>
<div>{{=row.categories.name}}</div>
<div>{{=row.posts.title}}</div>
+ <img src="{{=row.posts.image_url}}" width=100 height=100></img>
<div>{{=pretty_hu_date(row.posts.created_on).encode('utf8')}}</div>
<div>{{=row.posts.body}}</div>
<div>{{=A('Tovább', _href=URL(c='blog', f='show', args=[row.posts.slug]))}}</div>
Added: trunk/web2py/applications/helyesiras_webdev/views/blog/manage.html
===================================================================
--- trunk/web2py/applications/helyesiras_webdev/views/blog/manage.html (rev 0)
+++ trunk/web2py/applications/helyesiras_webdev/views/blog/manage.html 2013-08-01 09:59:23 UTC (rev 880)
@@ -0,0 +1,4 @@
+{{extend 'layout.html'}}
+
+{{=grid}}
+
Modified: trunk/web2py/applications/helyesiras_webdev/views/blog/show.html
===================================================================
--- trunk/web2py/applications/helyesiras_webdev/views/blog/show.html 2013-08-01 09:48:45 UTC (rev 879)
+++ trunk/web2py/applications/helyesiras_webdev/views/blog/show.html 2013-08-01 09:59:23 UTC (rev 880)
@@ -16,12 +16,12 @@
<div id="blog-container">
-{{=response.toolbar()}}
+{{#=response.toolbar()}}
<div>{{=post.posts.title}}</div>
<div>{{=post.categories.name}}</div>
<div>{{=pretty_hu_date(post.posts.created_on).encode('utf8')}}</div>
-{{ # TODO: image }}
+<img src="{{=post.posts.image_url}}" width=100 height=100></img>
<div>{{=MARKMIN(post.posts.body)}}</div>
<div>Címkék:
{{for i, tag in enumerate(post.posts.tags):}}
More information about the Hejes-devel
mailing list