Changeset 45

Show
Ignore:
Timestamp:
01/30/07 23:43:18 (5 years ago)
Author:
tim
Message:

The planettg theme is now a closer approximation of the
real Planet TurboGears? theme.

Location:
trunk/themes/planettg
Files:
1 added
1 removed
3 modified

Legend:

Unmodified
Added
Removed
  • trunk/themes/planettg/index.html

    r42 r45  
    2222 
    2323 
    24  <div py:for="entry in entries"> 
    25   <a py:attrs="{'href': entry.url}"><h2 py:content="entry.title">Title</h2></a> 
    26   <span py:content="entry.updated_at.strftime(str('%A, %B %d %Y at %I:%M %p'))">Updated At</span> 
     24 <div py:for="entry in entries" class="entry"> 
     25  <h3 class="subscription"><a href="" title="">${entry.feed.name}</a></h3> 
    2726 
     27  <h4><a py:attrs="{'href': entry.url}" py:content="entry.title">Title</a></h4> 
    2828  <div>${XML(entry.content)}</div> 
     29  <p class="date"> 
     30  <a py:attrs="{'href': entry.url}" py:content="entry.updated_at.strftime(str('%A, %B %d %Y at %I:%M %p'))">Updated At</a> 
     31  </p> 
    2932 </div> 
    3033</div> 
  • trunk/themes/planettg/layout.html

    r42 r45  
    33  <head> 
    44    <title>${planet.name} ${page_title()}</title> 
    5     <link href="/theme/css/style.css" type="text/css" rel="stylesheet" /> 
     5    <link href="/theme/css/planet.css" type="text/css" rel="stylesheet" /> 
    66  </head> 
    77 
    88  <body> 
    9     <div id="header"> 
    10       <h1>${planet.name} ${page_title()}</h1> 
    11     </div> 
    12  
    13     <div id="main_content"> 
    149      <content>Default content</content> 
    15     </div> 
    1610 
    1711      <div class="sidebar"> 
     
    1913        <h2>Subscriptions</h2> 
    2014        <ul py:for="feed in feeds"> 
    21           <li><a py:attrs="{'href': feed.htmlurl}">${feed.name}</a> <span class="feedurl">(<a py:attrs="{'href': feed.xmlurl}">feed</a>)</span></li> 
     15          <li><a py:attrs="{'href': feed.htmlurl}">${feed.name}</a>  
     16              <a py:attrs="{'href': feed.xmlurl}">(feed)</a></li> 
    2217        </ul> 
    2318      </div>