Skip to content

Commit

Permalink
fix(developer): show relative path in Distribution tab
Browse files Browse the repository at this point in the history
For the Project view, the Distribution tab now shows file relative
paths, which helps with organization. Have opted _not_ to show the
relative paths in the other tabs, because that information is visible
when the file details are expanded, and because those files should
always be in SourcePath anyway.
  • Loading branch information
mcdurdin committed Nov 16, 2023
1 parent 55c0c6f commit 38f9b29
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
1 change: 1 addition & 0 deletions developer/src/tike/xml/project/distribution.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@
<xsl:call-template name="file">
<xsl:with-param name="file_description"></xsl:with-param>
<xsl:with-param name="file_has_details">false</xsl:with-param>
<xsl:with-param name="file_relative_path">true</xsl:with-param>
</xsl:call-template>
</xsl:for-each>
</div>
Expand Down
6 changes: 5 additions & 1 deletion developer/src/tike/xml/project/elements.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@
<xsl:param name="file_description" />
<xsl:param name="file_has_details" />
<xsl:param name="file_has_no_options" />
<xsl:param name="file_relative_path" />

<span tabindex="1" class="file" onmousedown="javascript:this.focus();">
<xsl:attribute name="id">file<xsl:value-of select="ID"/></xsl:attribute>
Expand Down Expand Up @@ -103,7 +104,10 @@
<div class="filename">
<a tabindex="-1">
<xsl:attribute name="href">keyman:editfile?id=<xsl:value-of select="ID"/></xsl:attribute>
<xsl:value-of select="Filename" />
<xsl:choose>
<xsl:when test="$file_relative_path = 'true'"><xsl:value-of select="Filepath" /></xsl:when>
<xsl:otherwise><xsl:value-of select="Filename" /></xsl:otherwise>
</xsl:choose>
</a>
</div>
<div class="filedescription"><xsl:value-of select="$file_description"/></div>
Expand Down

0 comments on commit 38f9b29

Please sign in to comment.