[Hejes-devel] [957] blog/index.html: added links to post images

hejes-devel at nytud.hu hejes-devel at nytud.hu
Wed Sep 25 16:39:27 CEST 2013


Revision: 957
Author:   mihaltz
Date:     2013-09-25 16:39:27 +0200 (Wed, 25 Sep 2013)
Log Message:
-----------
blog/index.html: added links to post images

Modified Paths:
--------------
    trunk/web2py/applications/helyesiras_webdev/views/blog/index.html

Modified: trunk/web2py/applications/helyesiras_webdev/views/blog/index.html
===================================================================
--- trunk/web2py/applications/helyesiras_webdev/views/blog/index.html	2013-09-25 14:27:17 UTC (rev 956)
+++ trunk/web2py/applications/helyesiras_webdev/views/blog/index.html	2013-09-25 14:39:27 UTC (rev 957)
@@ -67,7 +67,7 @@
 
 {{for i, row in enumerate(posts):}}
   <div class="blog-list{{if i == 0:}} first{{pass}}{{if i == len(posts)-1:}} last{{pass}}">
-    <img src="{{=URL('static', 'blog/' + row.posts.image_filename)}}" width=100 height=100></img>
+    <a href="{{=URL(c='blog', f='show', args=[row.posts.slug])}}"><img src="{{=URL('static', 'blog/' + row.posts.image_filename)}}" width=100 height=100></img></a>
     <div class="blog-lead-inner">
         <div class="blog-cat-name"><span>{{=row.categories.name}}</span></div>
     	<h2>{{=A(row.posts.title, _href=URL(c='blog', f='show', args=[row.posts.slug]))}}</h2>




More information about the Hejes-devel mailing list