Skip to content

Commit baea1d6

Browse files
committed
Added the option to toggle, and made it display on the details page
1 parent 86c8ecd commit baea1d6

File tree

2 files changed

+25
-0
lines changed

2 files changed

+25
-0
lines changed

resources/themes/pterodactyl/admin/nodes/view/index.blade.php

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,17 @@
9696
</div>
9797
<div class="box-body">
9898
<div class="row">
99+
@if($node->maintenance)
100+
<div class="col-sm-12">
101+
<div class="info-box bg-orange">
102+
<span class="info-box-icon"><i class="ion ion-wrench"></i></span>
103+
<div class="info-box-content" style="padding: 23px 10px 0;">
104+
<span class="info-box-text">This node is under</span>
105+
<span class="info-box-number">Maintenance</span>
106+
</div>
107+
</div>
108+
</div>
109+
@endif
99110
<div class="col-sm-12">
100111
<div class="info-box bg-{{ $stats['disk']['css'] }}">
101112
<span class="info-box-icon"><i class="ion ion-ios-folder-outline"></i></span>

resources/themes/pterodactyl/admin/nodes/view/settings.blade.php

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,20 @@
108108
</div>
109109
<p class="text-muted small">If you are running the daemon behind a proxy such as Cloudflare, select this to have the daemon skip looking for certificates on boot.</p>
110110
</div>
111+
<div class="form-group col-xs-12">
112+
<label class="form-label"><span class="label label-warning"><i class="fa fa-wrench"></i></span> Under Maintenance</label>
113+
<div>
114+
<div class="radio radio-success radio-inline">
115+
<input type="radio" id="pMaintenanceFalse" value="0" name="maintenance" {{ (old('behind_proxy', $node->maintenance) == false) ? 'checked' : '' }}>
116+
<label for="pMaintenanceFalse"> Not Under Maintenance </label>
117+
</div>
118+
<div class="radio radio-warning radio-inline">
119+
<input type="radio" id="pMaintenanceTrue" value="1" name="maintenance" {{ (old('behind_proxy', $node->maintenance) == true) ? 'checked' : '' }}>
120+
<label for="pMaintenanceTrue"> Under Maintenance </label>
121+
</div>
122+
</div>
123+
<p class="text-muted small">If the node is marked as 'Under Maintenance' users won't be able to access servers that are on this node.</p>
124+
</div>
111125
</div>
112126
</div>
113127
</div>

0 commit comments

Comments
 (0)