summaryrefslogtreecommitdiffstats
path: root/webui_templates
diff options
context:
space:
mode:
authorMichael DeHaan <mdehaan@mdehaan.rdu.redhat.com>2007-09-14 18:40:21 -0400
committerMichael DeHaan <mdehaan@mdehaan.rdu.redhat.com>2007-09-14 18:40:21 -0400
commitd5295e872079daa619ffeb24c881be6655716ef1 (patch)
treece227491bd7537b6d197afd1520a873c15aa3918 /webui_templates
parent0904cdd86e4eae3d96db0fdec8133d4bd99dc7d6 (diff)
downloadthird_party-cobbler-d5295e872079daa619ffeb24c881be6655716ef1.tar.gz
third_party-cobbler-d5295e872079daa619ffeb24c881be6655716ef1.tar.xz
third_party-cobbler-d5295e872079daa619ffeb24c881be6655716ef1.zip
Kickstart listing is back in the WUI, with a backend method to get the exhaustive list.
Edits to come. Also added a "make devinstall" which is like "make install" but doesn't overwrite your settings file with the default values.
Diffstat (limited to 'webui_templates')
-rw-r--r--webui_templates/ksfile_list.tmpl18
1 files changed, 11 insertions, 7 deletions
diff --git a/webui_templates/ksfile_list.tmpl b/webui_templates/ksfile_list.tmpl
index af196ec..2675d71 100644
--- a/webui_templates/ksfile_list.tmpl
+++ b/webui_templates/ksfile_list.tmpl
@@ -5,8 +5,8 @@
<thead>
<caption>Cobbler Kickstart Files</caption>
<tr>
- <th class="text">Name</th>
- <th> </th>
+ <th class="text">File</th>
+ <th class="text">Edit/View</th>
</tr>
</thead>
<tbody>
@@ -21,11 +21,15 @@
<tr class="$tr_class">
<td>$ksfile</td>
- <td><!--
- <a href="/ksfile_edit?ksfile=$ksfile">edit</a>
- <a href="/ksfile_view?ksfile=$ksfile">view</a>
- -->
- </td>
+ #if $ksfile.startswith("/var/lib/cobbler/kickstarts")
+ <td><a href="/ksfile_edit?name=$ksfile">edit</a></td>
+ #else if $ksfile.startswith("/etc/cobbler")
+ <td><a href="/ksfile_edit?name=$ksfile">edit</a></td>
+ #else if $ksfile.startswith("http://")
+ <td><a href="$ksfile">view</A></td>
+ #else
+ <td>N/A</td>
+ #end if
</tr>
#end for
</tbody>