summaryrefslogtreecommitdiffstats
path: root/webui_templates
diff options
context:
space:
mode:
authorMichael DeHaan <mdehaan@redhat.com>2008-05-09 13:11:07 -0400
committerMichael DeHaan <mdehaan@redhat.com>2008-05-09 13:11:07 -0400
commit34fc9d39389ed2a949b0efbeea246f30a10c0265 (patch)
tree0f2a8226077c9c34b68e873dff984976003c52b4 /webui_templates
parentf4a1f5f2f62b5b75a0a327056ea9f34e72e7a50f (diff)
downloadthird_party-cobbler-34fc9d39389ed2a949b0efbeea246f30a10c0265.tar.gz
third_party-cobbler-34fc9d39389ed2a949b0efbeea246f30a10c0265.tar.xz
third_party-cobbler-34fc9d39389ed2a949b0efbeea246f30a10c0265.zip
Added some additional links for kickstart viewing/editing to the profile/system web pages
Diffstat (limited to 'webui_templates')
-rw-r--r--webui_templates/profile_list.tmpl19
-rw-r--r--webui_templates/system_list.tmpl24
2 files changed, 39 insertions, 4 deletions
diff --git a/webui_templates/profile_list.tmpl b/webui_templates/profile_list.tmpl
index f213775..fefe753 100644
--- a/webui_templates/profile_list.tmpl
+++ b/webui_templates/profile_list.tmpl
@@ -38,7 +38,24 @@
<a href="$base_url?mode=profile_edit&name=$profile.parent">$profile.parent</A>
#end if
</td>
- <td>$profile.kickstart</td>
+ <td>
+ #if $profile.kickstart and $profile.kickstart !=""
+ #set $kick = $profile.kickstart
+ #if $kick.startswith("http://") or $kick.startswith("ftp://") or $kick.startswith("nfs://")
+ #if not $kick.startswith("nfs://")
+ <A HREF="$kick">$kick</A>
+ #else
+ $kick
+ #end if
+ #else
+ #set $name = $profile.name
+ <A HREF="/cblr/svc/op/ks/profile/$name">(view rendered)</A>&nbsp;
+ #if $kick != "" and $kick != "<<inherit>>":
+ <A HREF="$base_url?mode=ksfile_edit&name=$kick">(edit template)</A>
+ #end if
+ #end if
+ #end if
+ </td>
</tr>
#end for
</tbody>
diff --git a/webui_templates/system_list.tmpl b/webui_templates/system_list.tmpl
index 5c70ffc..6ab5fac 100644
--- a/webui_templates/system_list.tmpl
+++ b/webui_templates/system_list.tmpl
@@ -14,9 +14,7 @@
<tr>
<th class="text">Name</th>
<th class="text">Profile</th>
- ## FIXME: how to handle for multiple interface listing? <th class="text">MAC</th>
- ## <th class="text">IP</th>
- ## <th class="text">Hostname</th>
+ <th class="text">Kickstart</th>
</tr>
</thead>
<tbody>
@@ -39,7 +37,27 @@
## <td> ${system.mac_address} </td>
## <td> ${system.ip_address} </td>
## <td> ${system.hostname} </td>
+
+ <td>
+ #set $kick = $system.kickstart
+ #if $kick.startswith("http://") or $kick.startswith("ftp://") or $kick.startswith("nfs://")
+ #if not $kick.startswith("nfs://")
+ <A HREF="$kick">$kick</A>
+ #else
+ $kick
+ #end if
+ #else
+ #set $name = $system.name
+ #set $pname = $system.profile
+ <A HREF="/cblr/svc/op/ks/system/$name">(view rendered)</A>&nbsp;
+ #if $kick != "<<inherit>>" and $kick != ""
+ <A HREF="$base_url?mode=ksfile_edit&name=$kick">(edit template)</A>
+ #end if
+ #end if
+ </td>
</tr>
+
+
#end for
</tbody>
</table>