Skip to content

Commit fcbedab

Browse files
committed
Remove possibility to update Hestia via GUI
Make Enable / Disable translatable
1 parent 44a692d commit fcbedab

File tree

1 file changed

+3
-21
lines changed

1 file changed

+3
-21
lines changed

web/templates/pages/list_updates.html

Lines changed: 3 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -7,32 +7,14 @@
77
if($autoupdate == 'Enabled') {
88
$btn_url = '/delete/cron/autoupdate/?token='.$_SESSION['token'].'';
99
$btn_icon = 'fa-toggle-on status-icon green';
10-
$btn_label = 'disable autoupdate';
10+
$btn_label = _('Disable autoupdate');
1111
} else {
1212
$btn_url = '/add/cron/autoupdate/?token='.$_SESSION['token'].'';
1313
$btn_icon = 'fa-toggle-off status-icon red';
14-
$btn_label = 'enable autoupdate';
14+
$btn_label = _('Enable autoupdate');
1515
}
1616
?>
17-
<a class="ui-button cancel" dir="ltr" href="<?=$btn_url;?>"><i class="fas <?=$btn_icon;?>"></i><?=_($btn_label);?></a>
18-
</div>
19-
<div class="l-sort-toolbar clearfix">
20-
<table>
21-
<tr>
22-
<td>
23-
<form action="/bulk/hestia/" method="post" id="objects">
24-
<input type="hidden" name="token" value="<?=$_SESSION['token']?>" />
25-
<div class="l-select">
26-
<select name="action" id="">
27-
<option value=""><?=_('apply to selected');?></option>
28-
<option value="update"><?=_('update') ?></option>
29-
</select>
30-
</div>
31-
<button type="submit" class="l-sort-toolbar__filter-apply" value="" title="<?=_('apply to selected');?>"><i class="fas fa-arrow-right"></i></button>
32-
</form>
33-
</td>
34-
</tr>
35-
</table>
17+
<a class="ui-button cancel" dir="ltr" href="<?=$btn_url;?>"><i class="fas <?=$btn_icon;?>"></i><?=$btn_label;?></a>
3618
</div>
3719
</div>
3820
</div>

0 commit comments

Comments
 (0)