Link for discussion of news articles in community forum (#801)
All checks were successful
the build was successful
All checks were successful
the build was successful
Documentation about this feature here: https://wiki.fsfe.org/TechDocs/Mainpage/Editing#Comments
This commit is contained in:
parent
3a123f36ea
commit
e0040978db
@ -39,6 +39,22 @@
|
||||
<!-- Here goes the actual content of the <body> node of the input file -->
|
||||
<xsl:apply-templates select="/buildinfo/document/event/body | /buildinfo/document/news/body | /buildinfo/document/body/* | /buildinfo/document/body/node()" />
|
||||
|
||||
<!-- Link to discussion topic on community.fsfe.org -->
|
||||
<xsl:if test = "/buildinfo/document/discussion/@href">
|
||||
<xsl:element name="p">
|
||||
<xsl:element name="a">
|
||||
<xsl:attribute name="class">learn-more</xsl:attribute>
|
||||
<xsl:attribute name="href">
|
||||
<xsl:value-of select="discussion/@href" />
|
||||
</xsl:attribute>
|
||||
<xsl:call-template name="fsfe-gettext">
|
||||
<xsl:with-param name="id" select="'discuss-article'" />
|
||||
</xsl:call-template>
|
||||
<xsl:text> </xsl:text>
|
||||
</xsl:element>
|
||||
</xsl:element>
|
||||
</xsl:if>
|
||||
|
||||
<!-- Show tags if this is a news press release or an event -->
|
||||
<xsl:if test="(/buildinfo/document/@newsdate or /buildinfo/document/event)
|
||||
and /buildinfo/document/tags/tag[not(. = 'front-page' or @key = 'front-page')]">
|
||||
|
@ -145,6 +145,7 @@
|
||||
<text id="privacy-policy">Privacy Policy</text>
|
||||
<text id="transparency-commitment">Transparency Commitment</text>
|
||||
<text id="tags">Tags</text>
|
||||
<text id="discuss-article">Discuss this article</text>
|
||||
|
||||
|
||||
<!-- Article metadata -->
|
||||
|
Loading…
Reference in New Issue
Block a user