Changeset 1824

Show
Ignore:
Timestamp:
10/31/08 16:11:46 (2 months ago)
Author:
nickyg
Message:

center videos & photos; move summary below photo and video

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • siteapp/trunk/opengeo/almanac/templates/storyindex.pt

    r1817 r1824  
    6868 
    6969<div metal:fill-slot="body" tal:define="story_data context/@@config/data; 
    70                                           image_type python:story_data['mediatype'] == 'image'"> 
     70                                          image_type python:story_data['mediatype'] == 'image'; 
     71                                          video_type python:story_data['mediatype'] == 'video'"> 
    7172   
    7273    <div class="span-16"> 
     
    7980      </div><!-- end .story-container --> 
    8081 
    81           <div class="story-container"> 
    82         <div class="story-summary"  tal:condition="view/should_display_summary" tal:content="context/dc:description"></div> 
    83           </div><!-- end .story-container --> 
     82    <div class="story-content" tal:condition="python:not(image_type or video_type)" tal:content="structure context/body">[Story Content]</div><!-- end .story-content --> 
     83     
     84    <div class="story-content video" tal:condition="video_type" tal:content="structure context/body"></div> 
    8485 
    85     <div class="story-content" tal:condition="not:image_type" tal:content="structure context/body">[Story Content]</div><!-- end .story-content --> 
    86  
    87     <div tal:condition="image_type"> 
     86    <div class="story-content photo" tal:condition="image_type"> 
    8887      <img class="story-image" tal:attributes="title context/dc:title; alt context/dc:title;src context/flickr:photourl" /> 
    8988    </div><!-- end image --> 
    9089 
     90          <div class="story-container" tal:condition="python:(image_type or video_type)"> 
     91        <div class="story-content"  tal:condition="view/should_display_summary" tal:content="context/dc:description"></div> 
     92          </div><!-- end .story-container --> 
    9193 
    9294  <div class="story-footer"> 
     
    134136       
    135137      <div class="comment-body">         
    136             <p tal:content="structure comment/body">comment body </p> 
     138            <p tal:content="comment/body">comment body </p> 
    137139      </div><!-- end .comment-body --> 
    138140    </div><!-- /.story-comment --> 
     
    163165    </div><!-- end .sidebar --> 
    164166     
     167    <div style="clear: both; margin: 0 100px;"> 
     168     
     169    <h3>testing soundcloud...</h3> 
     170     
     171    <div style="font-size: 11px;">  <object height="81" width="100%">  <param name="movie" value="http://player.soundcloud.com/player.swf?track=femalesample1" /> <param name="wmode" value="transparent" />  <param name="allowscriptaccess" value="always" /> <embed allowscriptaccess="always" height="81" src="http://player.soundcloud.com/player.swf?track=femalesample1" type="application/x-shockwave-flash" width="100%" wmode="transparent"> </embed>  </object>  <div style="padding-top: 5px;">  <a href="http://soundcloud.com/nickyg/femalesample1">FemaleSample1</a>   by   <a href="http://soundcloud.com/nickyg">nickyg</a>  </div> </div>  
     172     
     173    </div> 
     174     
    165175  </div><!-- end slot=body --> 
    166176</body>