mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-22 03:17:59 +01:00
Show more information in :h plugins
This commit is contained in:
@@ -219,6 +219,48 @@
|
||||
<html:a href="{@topic}"><xsl:apply-templates select="@*|node()"/></html:a>
|
||||
</xsl:template>
|
||||
|
||||
<!-- Plugins {{1 -->
|
||||
|
||||
<xsl:template name="info">
|
||||
<xsl:param name="label"/>
|
||||
<xsl:param name="prelink" select="''"/>
|
||||
<xsl:param name="link" select="@href"/>
|
||||
<html:div liberator:highlight="HelpInfo">
|
||||
<html:div liberator:highlight="HelpInfoLabel">
|
||||
<xsl:value-of select="$label"/>:
|
||||
</html:div>
|
||||
<html:a liberator:highlight="HelpInfoValue">
|
||||
<xsl:if test="$link">
|
||||
<xsl:attribute name="href"><xsl:value-of select="concat($prelink, $link)"/></xsl:attribute>
|
||||
</xsl:if>
|
||||
<xsl:apply-templates/>
|
||||
</html:a>
|
||||
</html:div>
|
||||
</xsl:template>
|
||||
<xsl:template match="liberator:author" mode="pass-2">
|
||||
<xsl:call-template name="info">
|
||||
<xsl:with-param name="label" select="'Author'"/>
|
||||
<xsl:with-param name="prelink" select="'mailto:'"/>
|
||||
<xsl:with-param name="link" select="@email"/>
|
||||
</xsl:call-template>
|
||||
</xsl:template>
|
||||
<xsl:template match="liberator:license" mode="pass-2">
|
||||
<xsl:call-template name="info">
|
||||
<xsl:with-param name="label" select="'License'"/>
|
||||
</xsl:call-template>
|
||||
</xsl:template>
|
||||
<xsl:template match="liberator:plugin" mode="pass-2">
|
||||
<html:div liberator:highlight="HelpInfo">
|
||||
<html:div liberator:highlight="HelpInfoLabel">
|
||||
Plugin:
|
||||
</html:div>
|
||||
<html:a liberator:highlight="HelpInfoValue" href="{@href}">
|
||||
<xsl:value-of select="@name"/>
|
||||
</html:a>
|
||||
</html:div>
|
||||
<xsl:apply-templates/>
|
||||
</xsl:template>
|
||||
|
||||
<!-- Special Element Templates {{{1 -->
|
||||
|
||||
<xsl:template match="liberator:pan[liberator:handle]">
|
||||
|
||||
@@ -147,6 +147,11 @@ Highlights.prototype.CSS = <![CDATA[
|
||||
HelpExample,liberator|example display: block; margin: 1em 0;
|
||||
HelpExample::before content: "Example: "; font-weight: bold;
|
||||
HelpHead,liberator|h1 display: block; margin: 1em 0; padding-bottom: .2ex; border-bottom-width: 1px; font-size: 2em; font-weight: bold; color: #527BBD; clear: both;
|
||||
|
||||
HelpInfo display: block; width: 20em; margin-left: auto;
|
||||
HelpInfoLabel display: inline-block; width: 6em; color: magenta; font-weight: bold; vertical-align: text-top;
|
||||
HelpInfoValue display: inline-block; width: 14em; text-decoration: none; vertical-align: text-top;
|
||||
|
||||
HelpItem,liberator|item display: block; margin: 1em 1em 1em 10em; clear: both;
|
||||
|
||||
HelpKey,liberator|k color: #102663;
|
||||
|
||||
Reference in New Issue
Block a user