[IMP] HMTL cleaning for blogs
authorFabien Pinckaers <fp@tinyerp.com>
Sun, 23 Feb 2014 18:16:44 +0000 (19:16 +0100)
committerFabien Pinckaers <fp@tinyerp.com>
Sun, 23 Feb 2014 18:16:44 +0000 (19:16 +0100)
bzr revid: fp@tinyerp.com-20140223181644-g50duy7w75ejb80j

addons/website_blog/views/website_blog_templates.xml

index c9728c4..d6c0f9d 100644 (file)
     </xpath>
 </template>
 
-<!-- Options: Blog Post: Footer author detail -->
-<template id="blog_post_footer" name="Blog Footer"
-        inherit_option_id="website_blog.blog_post_complete">
-    <xpath expr="//section[@id='comments']" position="before">
-        <div class="container mt16 mb32">
-            <div class="col-sm-12">
-                <div class="col-sm-4 col-sm-push-2">
-                    <hr class="mt0 mb0"/>
-                    <strong class="text-muted text-right">WRITTEN BY</strong>
-                    <div class="media">
-                        <a class="pull-left" href="#">
-                            <img class="img-rounded" t-att-src="'/website/image?model=res.users&amp;field=image_small&amp;id='+str(blog_post.create_uid.id)" style="width: 50px; margin-right: 10px;"/>
-                        </a>
-                        <div class="media-body">
-                            <h4 class="media-heading"  t-field="blog_post.create_uid.name"></h4>
-                            <p t-field="blog_post.create_uid.email"></p>
-                            <small t-if="blog_post.website_published_datetime" class="text-right text-muted">Published on <t t-esc="blog_post.website_published_datetime"/></small>
-                            <small t-if="not blog_post.website_published_datetime" class="text-right text-muted">Last Modified on <t t-esc="blog_post.write_date"/></small>
-                        </div>
-                    </div>
-                </div>
-                <div class="col-sm-4 col-sm-push-2" t-if="blog_post.blog_id">
-                    <hr class="mt0 mb0"/>
-                    <strong class="text-muted text-right">PUBLISHED IN</strong>
-                    <div class="media">
-                        <a class="pull-left" href="#">
-                            <img class="img-rounded" t-att-src="'/website/image?model=blog.blog&amp;field=image&amp;id='+str(blog_post.blog_id.id)" style="width: 50px; margin-right: 10px;"/>
-                        </a>
-                        <div class="media-body">
-                            <h4 class="media-heading"  t-field="blog_post.blog_id.name"></h4>
-                            <span t-field="blog_post.blog_id.description"/>
-                        </div>
-                    </div>
-                </div>
-            </div>
-        </div>
-    </xpath>
-</template>
-
 <!-- Options: Blog Post: user can reply -->
 <template id="opt_blog_post_complete_comment" name="Allow Comments"
         inherit_option_id="website_blog.blog_post_complete"
     </xpath>
 </template>
 
-<!-- Options: Blog Post: hide author -->
-<template id="opt_blog_post_complete_author" name="Authors"
-        inherit_option_id="website_blog.blog_post_complete">
-    <xpath expr="//span[@class='fa fa-calendar oe_date']" position="after">
-        <span class="fa fa-user"> By <span t-field="blog_post.create_uid"/> &amp;nbsp;</span>
-    </xpath>
-</template>
-
-<!-- Options: Blog Post: show blog -->
-<template id="opt_blog_post_complete_blog" name="Blog"
-        inherit_option_id="website_blog.blog_post_complete">
-    <xpath expr="//span[@class='fa fa-calendar oe_date']" position="after">
-        <span class="fa fa-folder-open"> In <span t-field="blog_post.blog_id"/> &amp;nbsp;</span>
-    </xpath>
-</template>
-
 <!-- Page -->
 <template id="index" name="Blog Navigation">
     <t t-call="website.layout">