blob: e3631389af94e0d5ddc8408b6da462e4322f9c7b (
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
64
|
#extends cobbler.webui.master
#attr $title = "Cobbler: List of Repositories"
#block body
## ==== BEGIN PAGE NAVIGATION ====
#set what="repo"
Page:
#if $page != 0
#set $previous_page = $page - 1
<A HREF="${base_url}/${what}_list?page=${previous_page}&limit=${results_per_page}"><</A>
#else
[
#end if
#for $this_page in range(0,$pages+1)
#if $this_page != $page
<A HREF="${base_url}/${what}_list?page=${this_page}&limit=${results_per_page}">${this_page}</A>
#else
${this_page}
#end if
#end for
#if $page != $pages
#set $next_page = $page + 1
<A HREF="${base_url}/${what}_list?page=${next_page}&limit=${results_per_page}">></A>
#else
]
#end if
<br/>
<br/>
## ==== END PAGE NAVIGATION ====
<table class="sortable">
<thead>
<caption>Cobbler Repos</caption>
<tr>
<th class="text">Name</th>
<th class="text">Mirror</th>
</tr>
</thead>
<tbody>
#set $evenodd = 1
#for $repo in $repos
#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/repo_edit?name=$repo.name">$repo.name</a>
</td>
<td>$repo.mirror</td>
</tr>
#end for
</tbody>
</table>
#end block body
|