De-tabify .chtml files

This commit is contained in:
FeRD (Frank Dana) 2024-08-16 17:09:57 -04:00 committed by Tomas Kopecek
parent 0d7d34d216
commit a3bf074d0d
4 changed files with 28 additions and 23 deletions

View file

@ -20,3 +20,8 @@ indent_size = 4
indent_style = tab
tab_width = 8
# CHTML: 2-space indents
[**/*.chtml]
indent_style = space
indent_size = 2

View file

@ -17,13 +17,13 @@
<tr>
<th>Tags using this external repo</th>
<td>
#if $len($repoTags)
#for $tag in $repoTags
<a href="taginfo?tagID=$tag.tag_id">$util.escapeHTML($tag.tag_name)</a><br/>
#end for
#else
No tags
#end if
#if $len($repoTags)
#for $tag in $repoTags
<a href="taginfo?tagID=$tag.tag_id">$util.escapeHTML($tag.tag_name)</a><br/>
#end for
#else
No tags
#end if
</td>
</tr>
</table>

View file

@ -10,24 +10,24 @@
#if $tag
<tr>
<td colspan="5">
<table class="nested">
<tr><td>
<table class="nested">
<tr><td>
<strong>Inherited</strong>:
</td><td>
</td><td>
<select name="inherited" class="filterlist" onchange="javascript: window.location = 'packages?inherited=' + this.value + '$util.passthrough_except($self, 'inherited')';">
<option value="1" #if $inherited then 'selected="selected"' else ''#>yes</option>
<option value="0" #if not $inherited then 'selected="selected"' else ''#>no</option>
</select>
</td></tr>
<tr><td>
</td></tr>
<tr><td>
<strong>With blocked</strong>:
</td><td>
</td><td>
<select name="blocked" class="filterlist" onchange="javascript: window.location = 'packages?blocked=' + this.value + '$util.passthrough_except($self, 'blocked')';">
<option value="1" #if $blocked then 'selected="selected"' else ''#>yes</option>
<option value="0" #if not $blocked then 'selected="selected"' else ''#>no</option>
</select>
</td></tr>
</table>
</td></tr>
</table>
</tr>
#end if
<tr>
@ -38,7 +38,7 @@
#else
<a href="packages?prefix=$char$util.passthrough($self, 'userID', 'tagID', 'order', 'inherited', 'blocked')">$char</a>
#end if
|
|
#end for
#if $prefix
<a href="packages?${util.passthrough($self, 'userID', 'tagID', 'order', 'inherited', 'blocked')[1:]}">all</a>

View file

@ -102,13 +102,13 @@
<tr>
<th>External&nbsp;repos</th>
<td>
#for $external_repo in $external_repos
<a href="externalrepoinfo?extrepoID=$external_repo.external_repo_id">$util.escapeHTML($external_repo.external_repo_name)</a> [$external_repo.merge_mode]
#if $external_repo.tag_id != $tag.id
<span class="smaller">(inherited from <a href="taginfo?tagID=$external_repo.tag_id">$util.escapeHTML($external_repo.tag_name)</a>)</span>
#end if
<br/>
#end for
#for $external_repo in $external_repos
<a href="externalrepoinfo?extrepoID=$external_repo.external_repo_id">$util.escapeHTML($external_repo.external_repo_name)</a> [$external_repo.merge_mode]
#if $external_repo.tag_id != $tag.id
<span class="smaller">(inherited from <a href="taginfo?tagID=$external_repo.tag_id">$util.escapeHTML($external_repo.tag_name)</a>)</span>
#end if
<br/>
#end for
</td>
</tr>
#end if