|
@@ -1,26 +1,23 @@
|
|
<?xml version="1.0" encoding="utf-8" ?>
|
|
<?xml version="1.0" encoding="utf-8" ?>
|
|
<openerp>
|
|
<openerp>
|
|
<data>
|
|
<data>
|
|
-
|
|
|
|
<!-- ======== LATEST POSTS ======== -->
|
|
<!-- ======== LATEST POSTS ======== -->
|
|
-
|
|
|
|
<!-- Snippet's Body -->
|
|
<!-- Snippet's Body -->
|
|
<template id="s_latest_posts" name="Latest Posts List">
|
|
<template id="s_latest_posts" name="Latest Posts List">
|
|
<section class="s_latest_posts">
|
|
<section class="s_latest_posts">
|
|
<div class="container">
|
|
<div class="container">
|
|
<h2 class="text-center">Ultimas Publicaciones</h2>
|
|
<h2 class="text-center">Ultimas Publicaciones</h2>
|
|
- <div class="js_get_posts" data-loading="true" data-template="snippet_latest_posts.media_list_template" />
|
|
|
|
|
|
+ <div class="js_get_posts" data-loading="true" data-template="snippet_latest_posts.media_list_template"/>
|
|
<hr/>
|
|
<hr/>
|
|
</div>
|
|
</div>
|
|
</section>
|
|
</section>
|
|
</template>
|
|
</template>
|
|
-
|
|
|
|
<!-- Latest posts's Template -->
|
|
<!-- Latest posts's Template -->
|
|
<template id="media_list_template">
|
|
<template id="media_list_template">
|
|
<t t-if="not posts">
|
|
<t t-if="not posts">
|
|
<t t-call="snippet_latest_posts.no_blog_posts"/>
|
|
<t t-call="snippet_latest_posts.no_blog_posts"/>
|
|
</t>
|
|
</t>
|
|
- <t t-foreach="posts" t-as="p">
|
|
|
|
|
|
+ <t t-as="p" t-foreach="posts">
|
|
<div class="post media media_list_template">
|
|
<div class="post media media_list_template">
|
|
<div class="pull-left">
|
|
<div class="pull-left">
|
|
<a t-att-href="'/blog/%s/post/%s' % (p.blog_id.id, p.id)">
|
|
<a t-att-href="'/blog/%s/post/%s' % (p.blog_id.id, p.id)">
|
|
@@ -35,55 +32,44 @@
|
|
</div>
|
|
</div>
|
|
</t>
|
|
</t>
|
|
</template>
|
|
</template>
|
|
-
|
|
|
|
<!-- No post here, template -->
|
|
<!-- No post here, template -->
|
|
<template id="no_blog_posts">
|
|
<template id="no_blog_posts">
|
|
<div class="container readable">
|
|
<div class="container readable">
|
|
<div class="alert alert-warning alert-dismissible text-center" role="alert">
|
|
<div class="alert alert-warning alert-dismissible text-center" role="alert">
|
|
- <button type="button" class="close" data-dismiss="alert" aria-label="Close">
|
|
|
|
- <span aria-hidden="true">×</span>
|
|
|
|
|
|
+ <button aria-label="Close" class="close" data-dismiss="alert" type="button">
|
|
|
|
+ <span aria-hidden="true">×</span>
|
|
</button>
|
|
</button>
|
|
<h3>NO hay publicaciones aqui...</h3>
|
|
<h3>NO hay publicaciones aqui...</h3>
|
|
<p>Asegurate que tus publicaciones esten publicadas</p>
|
|
<p>Asegurate que tus publicaciones esten publicadas</p>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
- </template>
|
|
|
|
-
|
|
|
|
-
|
|
|
|
-
|
|
|
|
|
|
+ </template>
|
|
<!-- ======== LATEST POSTS BIG PICTURES ======== -->
|
|
<!-- ======== LATEST POSTS BIG PICTURES ======== -->
|
|
-
|
|
|
|
<!-- Snippet's Body -->
|
|
<!-- Snippet's Body -->
|
|
<template id="s_latest_posts_big_picture" name="Latest Posts Big Images">
|
|
<template id="s_latest_posts_big_picture" name="Latest Posts Big Images">
|
|
<section class="s_latest_posts_big_picture">
|
|
<section class="s_latest_posts_big_picture">
|
|
<h2 class="text-center sans-serif">Ultimas publicaciones</h2>
|
|
<h2 class="text-center sans-serif">Ultimas publicaciones</h2>
|
|
- <div class="js_get_posts" data-loading="true" data-template="snippet_latest_posts.s_latest_posts_big_picture_template" />
|
|
|
|
|
|
+ <div class="js_get_posts" data-loading="true" data-template="snippet_latest_posts.s_latest_posts_big_picture_template"/>
|
|
</section>
|
|
</section>
|
|
</template>
|
|
</template>
|
|
-
|
|
|
|
<template id="s_latest_posts_big_picture_template">
|
|
<template id="s_latest_posts_big_picture_template">
|
|
-
|
|
|
|
<t t-if="not posts">
|
|
<t t-if="not posts">
|
|
<t t-call="snippet_latest_posts.no_blog_posts"/>
|
|
<t t-call="snippet_latest_posts.no_blog_posts"/>
|
|
</t>
|
|
</t>
|
|
- <t t-foreach="posts" t-as="p">
|
|
|
|
-
|
|
|
|
-
|
|
|
|
-
|
|
|
|
-
|
|
|
|
- <figure class="loading_container col-sm-6 cargarimagen">
|
|
|
|
- <div class="content basebloguno">
|
|
|
|
- <div class="thumb imagen_blog" t-att-style="'background-image: url(%s)' % p.background_image" />
|
|
|
|
- <figcaption class="subblogtitulo">
|
|
|
|
- <a t-att-href="'/blog/%s/post/%s' % (p.blog_id.id, p.id)"><h2 class="blog_big_pname" t-field="p.name" /></a>
|
|
|
|
- <!-- <p t-field="p.subtitle"/> -->
|
|
|
|
- <!-- <a t-att-href="'/blog/%s/post/%s' % (p.blog_id.id, p.id)">Ver Más</a> -->
|
|
|
|
- </figcaption>
|
|
|
|
|
|
+ <t t-as="p" t-foreach="posts">
|
|
|
|
+ <figure class="loading_container col-sm-6 ">
|
|
|
|
+ <div class="content">
|
|
|
|
+ <div class="thumb imagen_blog" t-att-style="'background-image: url(%s)' % p.background_image"/>
|
|
|
|
+ <a t-att-href="'/blog/%s/post/%s' % (p.blog_id.id, p.id)">
|
|
|
|
+ <h2 class="blog_big_pname" t-field="p.name"/>
|
|
|
|
+ </a>
|
|
|
|
+ <p class="text-center textoautor"> <strong>
|
|
|
|
+ <span t-field="p.author_id"/>
|
|
|
|
+ <span t-field="p.create_date" t-field-options="{"format": "dd MMMM yyyy"}"/> </strong>>
|
|
|
|
+ </p>
|
|
</div>
|
|
</div>
|
|
</figure>
|
|
</figure>
|
|
</t>
|
|
</t>
|
|
-
|
|
|
|
-</template>
|
|
|
|
-
|
|
|
|
|
|
+ </template>
|
|
</data>
|
|
</data>
|
|
-</openerp>
|
|
|
|
|
|
+</openerp>
|