Changeset 2645

Show
Ignore:
Timestamp:
03/25/08 11:35:34
Author:
kaminogoya
Message:

added permalink to each news article.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • yapcasia2008-test/actdocs/static/index.html

    r2644 r2645  
    5151[% FOREACH n = news %] 
    5252<div class="section entry hentry"> 
    53     <h3 class="entry-title"><a href="[% n.link %]">[% n.title %]</a></h3> 
     53    <h3 class="entry-title"><a href="[% n.link %]" rel="bookmark">[% n.title %]</a></h3> 
    5454    <ul class="meta"> 
    5555        <li class="datetime">[% date_format(n.datetime, "date_full") %]</li> 
  • yapcasia2008-test/actdocs/templates/news/list

    r2643 r2645  
    11[% WRAPPER ui title = loc("News") %] 
    22 
    3 [% FOREACH item = global.news %] 
     3[% IF news.size %]  
     4[% FOREACH n = news %] 
    45<div class="section entry hentry"> 
    5     <h3 class="entry-title"><a href="[% item.link %]" rel="bookmark">[% item.title %]</a></h3
     6    <h2 class="entry-title"><a href="[% n.link %]" rel="bookmark">[% n.title %]</a></h2
    67    <ul class="meta"> 
    7         <li class="datetime">[% date_format(item.datetime, "date_full") %]</li> 
    8         <li>{{by}} [% user_info(item.user) %]</li> 
     8        <li class="datetime">[% date_format(n.datetime, "date_full") %]</li> 
     9        <li>{{by}} [% user_info(n.user) %]</li> 
    910    </ul> 
    1011    <div class="entry-content"> 
    11         [% item.content %] 
     12        [% texts.${loop.index} %] 
    1213    </div> 
    1314</div> 
    1415[% END %] 
     16[% ELSE %] 
     17<p>{{No news yet!}}</p> 
     18[% END %] 
    1519 
    1620[% END %]