/usr/share/koji-web/scripts/tagparent.chtml is in koji-servers 1.10.0-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 | #from kojiweb import util
#include "includes/header.chtml"
#if $inheritanceData
<h4>Edit Parent</h4>
#else
<h4>Add Parent</h4>
#end if
<form action="tagparent">
$util.authToken($self, form=True)
<input type="hidden" name="action" value="#if $inheritanceData then 'edit' else 'add'#"/>
<table>
<tr>
<th>Tag Name</th>
<td>
$tag.name
<input type="hidden" name="tagID" value="$tag.id"/>
</td>
</tr>
<tr>
<th>Parent Tag Name</th>
<td>
$parent.name
<input type="hidden" name="parentID" value="$parent.id"/>
</td>
</tr>
<tr>
<th>Priority</th>
<td>
<input type="text" name="priority" value="#if $inheritanceData then $inheritanceData.priority else $maxPriority + 1#"/>
</td>
</tr>
<tr>
<th>Max Depth</th>
<td>
<input type="text" name="maxdepth" value="#if $inheritanceData then $inheritanceData.maxdepth else ''#"/>
</td>
</tr>
<tr>
<th>Intransitive</th>
<td>
<input type="checkbox" name="intransitive" value="yes" #if $inheritanceData and $inheritanceData.intransitive then 'checked="checked"' else ''#/>
</td>
</tr>
<tr>
<th>Packages Only</th>
<td>
<input type="checkbox" name="noconfig" value="yes" #if $inheritanceData and $inheritanceData.noconfig then 'checked="checked"' else ''#/>
</td>
</tr>
<tr>
<th>Package Filter</th>
<td>
<input type="text" name="pkg_filter" value="#if $inheritanceData then $inheritanceData.pkg_filter else ''#"/>
</td>
</tr>
<tr>
<td>
#if $inheritanceData
<button type="submit" name="save" value="Save">Save</button>
#else
<button type="submit" name="add" value="Add">Add</button>
#end if
</td>
<td><button type="submit" name="cancel" value="Cancel">Cancel</button></td>
</tr>
</table>
</form>
#include "includes/footer.chtml"
|