[IMP] : view blog post list
bzr revid: aja@tinyerp.com-20140211055548-9ras1avyu8058011
This commit is contained in:
parent
d26f38bd0b
commit
d0824a2e1d
|
@ -140,26 +140,18 @@
|
|||
inherit_option_id="website_blog.blog_post_short">
|
||||
<xpath expr="//div[@name='blog_post_summary']" position="replace">
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
<div name="blog_post_summary" class="col-md-8 col-md-offset-2 mt32" t-att-publish-data="blog_post.website_published and 'on' or 'off'">
|
||||
<div class="media">
|
||||
<a class="pull-right" href="#">
|
||||
<img class="media-object" t-att-src="'/website/image?model=res.partner&field=image_small&id='+str(blog_post.create_uid.id)" style="width: 40px;"/>
|
||||
</a>
|
||||
<div class="media-body">
|
||||
<h2 class="media-heading">
|
||||
<a t-attf-href="/blogpost/#{ slug(blog_post) }/?#{ tag and 'tag=%s' % tag.id or '' }#{tag and date and '&' or ''}#{ date and 'date=%s' % date or ''}" t-field="blog_post.name"></a>
|
||||
</h2>
|
||||
<h3><small class="text-left text-muted" t-field="blog_post.sub_title"/></h3>
|
||||
<p class="text-justify text-muted"><strong><small t-field="blog_post.create_uid.name"></small></strong></p>
|
||||
</div>
|
||||
</div>
|
||||
<p class="post-meta text-muted text-left hidden" name='blog_post_data'>
|
||||
<span class="fa fa-calendar oe_date"> <span t-field="blog_post.create_date"/> &nbsp;</span>
|
||||
</p>
|
||||
<hr/>
|
||||
</div>
|
||||
<div name="blog_post_summary" t-att-publish-data="blog_post.website_published and 'on' or 'off'">
|
||||
<h2>
|
||||
<a t-attf-href="/blogpost/#{ slug(blog_post) }/?#{ tag and 'tag=%s' % tag.id or '' }#{tag and date and '&' or ''}#{ date and 'date=%s' % date or ''}" t-field="blog_post.name"></a>
|
||||
</h2>
|
||||
<p class="text-muted" t-field="blog_post.sub_title"/>
|
||||
<img class="img-circle" t-att-src="'/website/image?model=res.users&field=image_small&id='+str(blog_post.create_uid.id)" style="width: 40px;"/>
|
||||
<span t-field="blog_post.create_uid.name"/>
|
||||
<p class="post-meta text-muted text-left hidden" name='blog_post_data'>
|
||||
<span class="fa fa-calendar oe_date"> <span t-field="blog_post.create_date"/> &nbsp;</span>
|
||||
</p>
|
||||
</div>
|
||||
<hr/>
|
||||
</div>
|
||||
</xpath>
|
||||
</template>
|
||||
|
@ -271,7 +263,7 @@
|
|||
</xpath>
|
||||
<xpath expr="//div[@id='title']" position="inside">
|
||||
<div class="text-center blog_item">
|
||||
<img class="img-circle" t-att-src="'/website/image?model=res.partner&field=image_small&id='+str(blog_post.create_uid.id)" style="width: 30px; margin-right: 10px;"/>
|
||||
<img class="img-circle" t-att-src="'/website/image?model=res.users&field=image_small&id='+str(blog_post.create_uid.id)" style="width: 30px; margin-right: 10px;"/>
|
||||
<small id="blog_author" t-field="blog_post.create_uid.name"/>
|
||||
</div>
|
||||
<div class="text-center mt64">
|
||||
|
@ -284,7 +276,7 @@
|
|||
<h1 class="text-center" t-field="next_post.name"/>
|
||||
<h5 class="text-center" t-field="blog_post.sub_title"/>
|
||||
<div class="text-center blog_item">
|
||||
<img class="img-circle" t-att-src="'/website/image?model=res.partner&field=image_small&id='+str(next_post.create_uid.id)" style="width: 30px; margin-right: 10px;"/>
|
||||
<img class="img-circle" t-att-src="'/website/image?model=res.users&field=image_small&id='+str(next_post.create_uid.id)" style="width: 30px; margin-right: 10px;"/>
|
||||
<small id="blog_author" t-field="next_post.create_uid.name"/>
|
||||
</div>
|
||||
</div>
|
||||
|
|
Loading…
Reference in New Issue