blob: fefe753a48af41a40fae10daade2dab08b1577e8 (
plain)
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
|
#extends cobbler.webui.master
#block body
## ==== BEGIN PAGE NAVIGATION ====
#set global what="profile"
#include "/usr/share/cobbler/webui_templates/paginate.tmpl"
## ==== END PAGE NAVIGATION ====
<table class="sortable">
<thead>
<caption>Cobbler Profiles</caption>
<tr>
<th class="text">Name</th>
<th class="text">Parent</th>
<th class="text">Kickstart</th>
</tr>
</thead>
<tbody>
#set $evenodd = 1
#for $profile in $profiles
#if $evenodd % 2 == 0
#set $tr_class = "roweven"
#else
#set $tr_class = "rowodd"
#end if
#set $evenodd += 1
<tr class="$tr_class">
<td>
<a href="$base_url?mode=profile_edit&name=$profile.name">$profile.name</a>
</td>
<td>
#if $profile.distro != "<<inherit>>"
<a href="$base_url?mode=distro_edit&name=$profile.distro">$profile.distro</a>
#else
<a href="$base_url?mode=profile_edit&name=$profile.parent">$profile.parent</A>
#end if
</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>
#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>
</table>
#end block body
|