portal wiki style

This commit is contained in:
Astro 2013-10-30 01:36:31 +01:00
parent 1d95b2d810
commit eb99da42d7
3 changed files with 16 additions and 2 deletions

View File

@ -506,6 +506,16 @@ abbr.dtstart, abbr.dtend {
#portal a:hover h4 {
color: black;
}
#portal .wiki h4:before, #portal .wiki h4:after {
color: #999;
font-size: 120%;
}
#portal .wiki h4:before {
content: '[[';
}
#portal .wiki h4:after {
content: ']]';
}
/* -- Calendar -- */
table.calendar {

View File

@ -55,10 +55,10 @@
</xsl:template>
<xsl:template match="atom:entry" mode="wiki">
<item date="{atom:updated}">
<item date="{atom:updated}" class="wiki">
<header>C3D2 Wiki</header>
<footer>by <xsl:value-of select="atom:author/atom:name"/></footer>
<content-text>[[<xsl:value-of select="atom:title"/>]]</content-text>
<content-text><xsl:value-of select="atom:title"/></content-text>
<link><xsl:value-of select="atom:link[@rel='alternate'][1]/@href"/></link>
</item>
</xsl:template>

View File

@ -321,6 +321,10 @@
<xsl:template match="/page/portal/item">
<article>
<xsl:if test="@class">
<xsl:attribute name="class"><xsl:value-of select="@class"/></xsl:attribute>
</xsl:if>
<a href="{link}">
<xsl:if test="content-image">
<xsl:attribute name="style">