Allow other sub-projects using the XSL template without modification.
Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
'--stringparam', 'timestamp', docs_timestamp,
'--stringparam', 'link_href_base', data.get('href_base', ''),
'--stringparam', 'asset_href_base', data.get('href_base', ''),
+ '--stringparam', 'edit_href_base', 'https://gitlab.com/libvirt/libvirt/-/blob/master/',
'--nonet',
site_xsl,
'@INPUT@',
'--stringparam', 'timestamp', docs_timestamp,
'--stringparam', 'link_href_base', data.get('href_base', ''),
'--stringparam', 'asset_href_base', data.get('href_base', ''),
+ '--stringparam', 'edit_href_base', 'https://gitlab.com/libvirt/libvirt/-/blob/master/',
'--nonet',
site_xsl,
'@INPUT@',
'--stringparam', 'timestamp', docs_timestamp,
'--stringparam', 'link_href_base', data.get('href_base', ''),
'--stringparam', 'asset_href_base', data.get('href_base', ''),
+ '--stringparam', 'edit_href_base', 'https://gitlab.com/libvirt/libvirt/-/blob/master/',
'--nonet',
site_xsl,
'@INPUT@',
'--stringparam', 'timestamp', docs_timestamp,
'--stringparam', 'link_href_base', data.get('href_base', ''),
'--stringparam', 'asset_href_base', data.get('href_base', ''),
+ '--stringparam', 'edit_href_base', 'https://gitlab.com/libvirt/libvirt/-/blob/master/',
'--nonet',
site_xsl,
'@INPUT@',
'--stringparam', 'timestamp', docs_timestamp,
'--stringparam', 'link_href_base', data.get('href_base', ''),
'--stringparam', 'asset_href_base', data.get('href_base', ''),
+ '--stringparam', 'edit_href_base', 'https://gitlab.com/libvirt/libvirt/-/blob/master/',
'--nonet',
site_xsl,
'@INPUT@',
'--stringparam', 'timestamp', docs_timestamp,
'--stringparam', 'link_href_base', data.get('href_base', ''),
'--stringparam', 'asset_href_base', data.get('href_base', ''),
+ '--stringparam', 'edit_href_base', 'https://gitlab.com/libvirt/libvirt/-/blob/master/',
'--nonet',
site_xsl,
'@INPUT@',
'--stringparam', 'timestamp', docs_timestamp,
'--stringparam', 'link_href_base', data.get('href_base', ''),
'--stringparam', 'asset_href_base', data.get('href_base', ''),
+ '--stringparam', 'edit_href_base', 'https://gitlab.com/libvirt/libvirt/-/blob/master/',
'--nonet',
site_xsl,
'@INPUT@',
<xsl:param name="timestamp"/>
<xsl:param name="link_href_base"/>
<xsl:param name="asset_href_base"/>
+ <xsl:param name="edit_href_base"/>
<xsl:text disable-output-escaping="yes"><!DOCTYPE html>
</xsl:text>
<html lang="en" data-sourcedoc="{$pagesrc}">
<li><a href="https://serverfault.com/questions/tagged/libvirt">serverfault</a></li>
</ul>
</div>
- <xsl:if test="$pagesrc != ''">
+ <xsl:if test="$pagesrc != '' and $edit_href_base != ''">
<div id="contribute">
<h3>Contribute</h3>
<ul>
- <li><a href="https://gitlab.com/libvirt/libvirt/-/blob/master/{$pagesrc}">edit this page</a></li>
+ <li><a href="{$edit_href_base}{$pagesrc}">edit this page</a></li>
</ul>
</div>
</xsl:if>
<xsl:with-param name="timestamp" select="$timestamp"/>
<xsl:with-param name="link_href_base" select="$link_href_base"/>
<xsl:with-param name="asset_href_base" select="$asset_href_base"/>
+ <xsl:with-param name="edit_href_base" select="$edit_href_base"/>
</xsl:apply-templates>
</xsl:template>