added a 'more…' link under news and events

svn path=/trunk/; revision=19843
This commit is contained in:
nicoulas 2011-02-24 14:01:31 +00:00
parent 0083a2fe09
commit c32edcfff7
2 changed files with 81 additions and 38 deletions

View File

@ -7,15 +7,16 @@
<body>
<div id="campaigns-boxes">
<div id="campaign-box-1">
<a href="http://documentfreedom.org">
<h3>Freedom to Read, Freedom to Write</h3>
</a>
<h3>Freedom to Read, Freedom to Write</h3>
</a>
</div>
<div id="campaign-box-2">
<a href="donate/donate.html" class="donate-box">
<p><donate-label /></p>
<p><donate-label /></p>
</a>
<a href="http://fellowship.fsfe.org/join" class="fellowship-box">
<p><join-label /></p>
@ -23,7 +24,7 @@
</div>
<div id="campaign-box-3">
<campaign-box-3/>
<campaign-box-3/>
</div>
</div>
@ -31,49 +32,49 @@
<div id="feeds">
<div id="news" class="section">
<h2>
<a class="rss-feed" href="/news/news.rss"><img src="/graphics/rss.png" alt="News RSS" title="news RSS feed" /></a>
<a class="ical" href="http://identi.ca/fsfe"><img src="/graphics/identica.png" alt="identica" title="follow FSFE on identi.ca"/></a>
<a href="/news/news.html"><news-label /></a>
</h2>
<all-news />
<h2>
<a class="rss-feed" href="/news/news.rss"><img src="/graphics/rss.png" alt="News RSS" title="news RSS feed" /></a>
<a class="ical" href="http://identi.ca/fsfe"><img src="/graphics/identica.png" alt="identica" title="follow FSFE on identi.ca"/></a>
<a href="/news/news.html"><news-label /></a>
</h2>
<all-news />
</div><!--end #news-->
<div id="newsletter" class="section">
<h2><a href="/news/newsletter.html"><newsletter-label /></a></h2>
<div class="entry">
<p>
<strong><receive-newsletter />:</strong>
</p>
<h2><a href="/news/newsletter.html"><newsletter-label /></a></h2>
<div class="entry">
<p>
<strong><receive-newsletter />:</strong>
</p>
<subscribe-nl/>
<subscribe-nl/>
<ul>
<all-newsletters />
<li><a href="news/newsletter.html"><more-label />...</a></li>
</ul>
<ul>
<all-newsletters />
<li><a href="news/newsletter.html"><more-label />...</a></li>
</ul>
</div><!-- /.entry -->
</div><!-- /.entry -->
</div> <!-- /#newsletter -->
<div id="events" class="section">
<h2>
<a class="rss-feed" href="/events/events.rss"><img src="/graphics/rss.png" alt="Events RSS" title="events RSS feed" /></a>
<a class="ical" href="webcal://fsfe.org/events/events.ics"><img src="/graphics/ical.png" alt="iCal" title="FSFE events as iCal feed" /></a>
<a href="/events/events.html"><events-label /></a>
</h2>
<all-events />
<h2>
<a class="rss-feed" href="/events/events.rss"><img src="/graphics/rss.png" alt="Events RSS" title="events RSS feed" /></a>
<a class="ical" href="webcal://fsfe.org/events/events.ics"><img src="/graphics/ical.png" alt="iCal" title="FSFE events as iCal feed" /></a>
<a href="/events/events.html"><events-label /></a>
</h2>
<all-events />
</div><!--end #events-->

View File

@ -25,6 +25,13 @@
<xsl:call-template name="news" />
</xsl:if>
</xsl:for-each>
<xsl:element name="p">
<xsl:element name="a">
<xsl:attribute name="href">/news/news.html</xsl:attribute>
<xsl:call-template name="more-label" /><xsl:text></xsl:text>
<xsl:element>
</xsl:element>
</xsl:template>
@ -110,6 +117,13 @@
</xsl:otherwise>
</xsl:choose>
<xsl:element name="p">
<xsl:element name="a">
<xsl:attribute name="href">/events/events.html</xsl:attribute>
<xsl:call-template name="more-label" /><xsl:text></xsl:text>
<xsl:element>
</xsl:element>
</xsl:template>
@ -161,4 +175,32 @@
</xsl:template>
<xsl:template name="fetch-links">
<xsl:element name="ul">
<xsl:for-each select="/html/set/link">
<xsl:element name="li">
<xsl:element name="a">
<xsl:attribute name="href">
<xsl:value-of select="href" />
</xsl:attribute>
<xsl:value-of select="title"/>
</xsl:element>
<xsl:if test="description">
<xsl:element name="p">
<xsl:value-of select="description"/>
</xsl:element>
</xsl:if>
</xsl:element>
</xsl:for-each>
</xsl:element>
</xsl:template>
</xsl:stylesheet>