summaryrefslogtreecommitdiffstats
path: root/modules-available/minilinux/templates/versionlist.html
blob: e66960b2154afbd47c4aa17a456a66a6e7239a9c (plain) (blame)
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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
<table class="table table-striped">
<tr>
	<th class="slx-smallcol">{{lang_version}}</th>
	<th class="slx-smallcol">{{lang_releaseDate}}</th>
	<th>{{lang_title}}</th>
	<th class="slx-smallcol">{{lang_usedBy}}</th>
	<th class="slx-smallcol"></th>
	<th class="slx-smallcol" style="width:100px">{{lang_default}}</th>
	<th class="slx-smallcol" style="width:150px">{{lang_download}}</th>
</tr>
{{#versions}}
<tr>
	<td class="text-nowrap">
		<a href="#" class="version-link" data-version="{{versionid}}" {{#downloading}}data-autoclick="true"{{/downloading}}>
			{{versionid}}
			<b class="caret"></b>
		</a>
	</td>
	<td class="text-nowrap">
		{{#desclen}}
			<div style="float:right;margin-right:-6px">
			<span class="glyphicon glyphicon-list-alt"></span>
			</div>
		{{/desclen}}
		{{dateline_s}}
	</td>
	<td>{{title}}</td>
	<td class="text-nowrap">
		{{#usage.entryids.0}}
		<div class="dropdown">
			<button class="btn btn-default btn-xs dropdown-toggle" type="button" data-toggle="dropdown">
				{{usage.entryCount}} / {{usage.menuCount}} / {{usage.locationCount}}
				<span class="caret"></span>
			</button>
			<ul class="dropdown-menu">
				<li role="separator" class="dropdown-header slx-bold">{{lang_menuEntries}}</li>
				{{#usage.entryids}}
				<li><a href="?do=serversetup&amp;show=editbootentry&amp;id={{.}}">{{.}}</a></li>
				{{/usage.entryids}}
				{{#usage.menus.0}}
				<li role="separator" class="dropdown-header slx-bold">{{lang_menus}}</li>
				{{/usage.menus.0}}
				{{#usage.menus}}
				<li><a href="?do=serversetup&amp;show=editmenu&amp;id={{menuid}}">{{menuname}}</a></li>
				{{/usage.menus}}
				{{#usage.locations.0}}
				<li role="separator" class="dropdown-header slx-bold">{{lang_locations}}</li>
				{{/usage.locations.0}}
				{{#usage.locations}}
				<li class="disabled"><a href="#">{{locationname}}</a></li>
				{{/usage.locations}}
			</ul>
		</div>
		{{/usage.entryids.0}}
	</td>
	<td class="text-nowrap">
		{{#orphan}}
		<span class="label label-danger" title="{{lang_orphanedVersionToolTip}}">{{lang_orphanedVersion}}</span>
		{{/orphan}}
	</td>
	<td class="text-nowrap text-center {{default_class}}">
		{{#showsetdefault}}
		<form method="post" action="?do=minilinux" style="margin:0;padding:0;display:inline">
			<input type="hidden" name="token" value="{{token}}">
			<input type="hidden" name="version" value="{{versionid}}">
			<button type="submit" name="show" value="setdefault" class="btn btn-xs btn-info" title="{{lang_setGlobalDefault}}">
				<span class="glyphicon glyphicon-flag"></span>
			</button>
		</form>
		{{/showsetdefault}}
		{{#isdefault}}
		<span class="glyphicon glyphicon-ok" title="{{lang_isGlobalDefault}}"></span>
		{{/isdefault}}
	</td>
	<td class="text-nowrap text-right">
		{{#installed}}
		<span class="label label-info">{{lang_installed}}</span>
		{{/installed}}
		{{^installed}}
		{{^orphan}}
		{{^downloading}}
		<button type="button" class="btn btn-xs btn-success btn-download" data-version="{{versionid}}">
			<span class="glyphicon glyphicon-download"></span>
			{{lang_download}}
		</button>
		{{/downloading}}
		{{/orphan}}
		{{/installed}}
	</td>
</tr>
<tr>
	<td colspan="7" class="version-container collapse" data-version="{{versionid}}"></td>
</tr>
{{/versions}}
</table>