Sfoglia il codice sorgente

modificaciones blog

edgar 8 anni fa
parent
commit
f2f88431f8
2 ha cambiato i file con 25 aggiunte e 38 eliminazioni
  1. 6 5
      static/src/less/s_latest_posts_big_picture.less
  2. 19 33
      views/s_latest_posts.xml

+ 6 - 5
static/src/less/s_latest_posts_big_picture.less

@@ -50,8 +50,8 @@
       padding: 0;
       margin: 10px 1%;
       width: 98%;
-      height: 250px;
-      background: @s_latest_posts_big_picture-figure_bg;
+      height: 400px;
+      background: transparent;
       text-align: center;
       cursor: pointer;
       .transition(all 300ms);
@@ -60,7 +60,7 @@
       }
 
       &.js-loading{
-        background: #E7E7E7!important;
+        background: transparent !important;
       }
 
       .thumb {
@@ -68,10 +68,11 @@
         display: block;
         height: auto;
         width: 100%;
-        height: 100%;
+        height: 60%;
         background-size: cover!important;
         background-position: 50%;
-        opacity: 0.8;
+        opacity: 1;
+        
       }
       figcaption, figcaption > a {
         position: absolute;

+ 19 - 33
views/s_latest_posts.xml

@@ -1,26 +1,23 @@
 <?xml version="1.0" encoding="utf-8" ?>
 <openerp>
   <data>
-
     <!-- ======== LATEST POSTS  ========  -->
-
     <!-- Snippet's Body -->
     <template id="s_latest_posts" name="Latest Posts List">
       <section class="s_latest_posts">
         <div class="container">
           <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/>
         </div>
       </section>
     </template>
-    
     <!-- Latest posts's Template -->
     <template id="media_list_template">
       <t t-if="not posts">
         <t t-call="snippet_latest_posts.no_blog_posts"/>
       </t>
-      <t t-foreach="posts" t-as="p">
+      <t t-as="p" t-foreach="posts">
         <div class="post media media_list_template">
           <div class="pull-left">
             <a t-att-href="'/blog/%s/post/%s' % (p.blog_id.id, p.id)">
@@ -35,55 +32,44 @@
         </div>
       </t>
     </template>
-    
     <!-- No post here, template -->
     <template id="no_blog_posts">
       <div class="container readable">
         <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">&#215;</span>
+          <button aria-label="Close" class="close" data-dismiss="alert" type="button">
+            <span aria-hidden="true">×</span>
           </button>
           <h3>NO hay publicaciones aqui...</h3>
           <p>Asegurate que tus publicaciones esten publicadas</p>
         </div>
       </div>
-    </template> 
-
-
-
+    </template>
     <!-- ======== LATEST POSTS BIG PICTURES  ========  -->
-
     <!-- Snippet's Body -->
     <template id="s_latest_posts_big_picture" name="Latest Posts Big Images">
       <section class="s_latest_posts_big_picture">
         <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>
     </template>
-    
     <template id="s_latest_posts_big_picture_template">
-     
       <t t-if="not posts">
         <t t-call="snippet_latest_posts.no_blog_posts"/>
       </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="{&quot;format&quot;: &quot;dd MMMM yyyy&quot;}"/> </strong>>
+            </p>
           </div>
         </figure>
       </t>
-        
-</template>
-
+    </template>
   </data>
-</openerp>
+</openerp>