temp. deactivate crypto usage
continuous-integration/drone/push Build is failing Details

This commit is contained in:
vv01f 2023-07-11 22:39:53 +02:00
parent 2e1d0c607c
commit e7fb6563af
1 changed files with 5 additions and 2 deletions

View File

@ -381,7 +381,10 @@
<xsl:template match="/page/portal/item">
<!-- 1 (not really) random character 1-9 and blank -->
<xsl:variable name="random" select="translate(substring(crypto:sha1(.),1,1),'0abcdef','')"/>
<!-- deactivated until nix package has crypto support
<xsl:variable name="diceroll" select="translate(substring(crypto:sha1(.),1,1),'0abcdef','')"/>
-->
<xsl:variable name="diceroll" select="4"/>
<article>
<xsl:if test="@class">
<xsl:attribute name="class"><xsl:value-of select="@class"/></xsl:attribute>
@ -397,7 +400,7 @@
<xsl:otherwise><!-- Fallback image -->
<xsl:choose><!-- depending on class -->
<!-- "random" image from list (filenames should be links) -->
<xsl:when test="@class = 'news'"><xsl:attribute name="style">background-image: url('images/news/rnd<xsl:value-of select="$random"/>');</xsl:attribute></xsl:when>
<xsl:when test="@class = 'news'"><xsl:attribute name="style">background-image: url('images/news/rnd<xsl:value-of select="$diceroll"/>');</xsl:attribute></xsl:when>
<!--
<xsl:when test="@class = 'news'"><xsl:attribute name="style">background-image: url('images/news/gchq-hdr.jpg');</xsl:attribute></xsl:when>
-->