diff options
author | Michael DeHaan <mdehaan@mdehaan.rdu.redhat.com> | 2007-09-14 18:40:21 -0400 |
---|---|---|
committer | Michael DeHaan <mdehaan@mdehaan.rdu.redhat.com> | 2007-09-14 18:40:21 -0400 |
commit | d5295e872079daa619ffeb24c881be6655716ef1 (patch) | |
tree | ce227491bd7537b6d197afd1520a873c15aa3918 /webui_templates/ksfile_list.tmpl | |
parent | 0904cdd86e4eae3d96db0fdec8133d4bd99dc7d6 (diff) | |
download | third_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/ksfile_list.tmpl')
-rw-r--r-- | webui_templates/ksfile_list.tmpl | 18 |
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> |