[IMP] : change cover photo button on top-right and add t-ignore to restrict users from change data outside t-field
bzr revid: aja@tinyerp.com-20140217090017-b1cvr99x1v1wqmxd
This commit is contained in:
parent
28802724e3
commit
3993c71dac
|
@ -32,7 +32,7 @@ p.post-meta {
|
|||
min-height: 400px;
|
||||
height: 100vh;
|
||||
color: white;
|
||||
padding-top: 30vh;
|
||||
padding-top: 1vh;
|
||||
}
|
||||
|
||||
.cover_footer {
|
||||
|
@ -49,3 +49,7 @@ p.post-meta {
|
|||
padding-top: 5vh;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.cover_title {
|
||||
padding-top: 20vh;
|
||||
}
|
||||
|
|
|
@ -31,7 +31,7 @@ p.post-meta
|
|||
min-height : 400px
|
||||
height: 100vh
|
||||
color: white
|
||||
padding-top: 30vh
|
||||
padding-top: 1vh
|
||||
|
||||
.cover_footer
|
||||
-webkit-background-size: cover
|
||||
|
@ -46,3 +46,6 @@ p.post-meta
|
|||
color: white
|
||||
padding-top: 5vh
|
||||
cursor: pointer
|
||||
|
||||
.cover_title
|
||||
padding-top : 20vh
|
||||
|
|
|
@ -123,7 +123,7 @@
|
|||
</span>
|
||||
<span t-if="not blog_post.website_published" class="label label-danger">not published</span>
|
||||
</p>
|
||||
<div t-raw="blog_post.shortened_content" class="blog_content"/>
|
||||
<div t-raw="blog_post.shortened_content" t-ignore="true" class="blog_content"/>
|
||||
<hr/>
|
||||
</div>
|
||||
|
||||
|
@ -249,29 +249,29 @@
|
|||
<template id="blog_post_background_cover" name="Blog Cover"
|
||||
inherit_option_id="website_blog.blog_post_complete" inherit_id="website_blog.blog_post_complete">
|
||||
<xpath expr="//div[@id='title']" position="attributes">
|
||||
<attribute name="class">blog_cover mb8</attribute>
|
||||
<attribute name="class">blog_cover</attribute>
|
||||
<attribute name="t-attf-style">background-image : url(#{blog_post.content_image})</attribute>
|
||||
</xpath>
|
||||
<xpath expr="//h1[@id='blog_post_name']" position="replace">
|
||||
<h1 class="text-center"><strong t-field="blog_post.name" id="blog_post_name"/></h1>
|
||||
<p id="is_document_user" groups="base.group_document_user"/>
|
||||
</xpath>
|
||||
<xpath expr="//p[@name='blog_post_data']" position="replace">
|
||||
<h2 class="text-center" t-field="blog_post.sub_title"/>
|
||||
<div class="text-center mt16">
|
||||
<a t-ignore="true" id="change_cover" class="btn btn-primary css_non_editable_mode_hidden" style="cursor :pointer">
|
||||
<div class="text-right">
|
||||
<a id="change_cover" t-ignore="true" class="btn btn-primary css_non_editable_mode_hidden" style="cursor :pointer">
|
||||
Change Cover Photo
|
||||
</a>
|
||||
</div>
|
||||
<h1 class="text-center cover_title" t-ignore="true"><strong t-field="blog_post.name" id="blog_post_name"/></h1>
|
||||
<p t-ignore="true" id="is_document_user" groups="base.group_document_user"/>
|
||||
</xpath>
|
||||
<xpath expr="//p[@name='blog_post_data']" position="replace">
|
||||
<h2 class="text-center" t-field="blog_post.sub_title"/>
|
||||
<p class="post-meta text-muted text-center" name="blog_post_data"/>
|
||||
</xpath>
|
||||
<xpath expr="//div[@id='title']" position="inside">
|
||||
<div class="text-center blog_item">
|
||||
<div class="text-center blog_item" t-ignore="true">
|
||||
<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">
|
||||
<a href="#blog_content"><span class="fa fa-angle-down fa-2x fa-inverse"/></a>
|
||||
<div class="text-center mt32">
|
||||
<a href="#blog_content" t-ignore="true"><span class="fa fa-angle-down fa-2x fa-inverse"/></a>
|
||||
</div>
|
||||
</xpath>
|
||||
<xpath expr="//section[@id='comments']" position="after">
|
||||
|
@ -281,7 +281,7 @@
|
|||
<a class="hidden js_next" t-attf-href="/blogpost/#{ slug(next_post) }#wrap"/>
|
||||
<h1 class="text-center" t-field="next_post.name"/>
|
||||
<h2 class="text-center" t-field="next_post.sub_title"/>
|
||||
<div class="text-center blog_item">
|
||||
<div class="text-center blog_item" t-ignore="true">
|
||||
<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>
|
||||
|
|
Loading…
Reference in New Issue