Added branch type to previous version

This commit is contained in:
bergware
2018-04-26 11:40:29 +02:00
parent 4e810dedf0
commit e1bbfc7f90
+3 -2
View File
@@ -16,7 +16,7 @@ Tag="thumbs-up"
?>
<?
$empty = "<tr><td colspan='6'><div class='spinner'></div></td><tr>";
$version = $date = 'unknown';
$version = $branch = $date = 'unknown';
$bzroot = file_exists('/boot/previous/bzroot');
$check = $notify['unraidos'] ? 0 : 1;
@@ -29,6 +29,7 @@ if (file_exists('/boot/previous/changes.txt')) {
break;
}
}
$branch = strpos($version,'rc')===false ? 'Stable' : 'Next';
}
?>
<style>input[value='Install'],input[value='Update'],input[value='Restore']{margin:0}</style>
@@ -86,6 +87,6 @@ $(function() {
<thead><tr><th></th><th>Component</th><th>Author</th><th>Version</th><th>Status</th><th>Branch</th></tr></thead>
<tbody id="os_list"><?=$empty?></tbody>
<?if ($bzroot):?>
<tbody id="previous" style="display:none"><tr><td><img src="/plugins/unRAIDServer/images/unRAIDServer.png"></td><td><b>unRAID Server OS (previous)</b></td><td>LimeTech</td><td><?=$version?></td><td><input type="button" value="Restore" onclick="downgrade()"></td><td></td></tbody>
<tbody id="previous" style="display:none"><tr><td><img src="/plugins/unRAIDServer/images/unRAIDServer.png"></td><td><b>unRAID Server OS (previous)</b></td><td>LimeTech</td><td><?=$version?></td><td><input type="button" value="Restore" onclick="downgrade()"></td><td><?=$branch?></td></tbody>
<?endif;?>
</table>