-
-
Notifications
You must be signed in to change notification settings - Fork 621
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Trying to add internal Upgrade of CyberPanel
- Loading branch information
1 parent
964141f
commit 30bfdda
Showing
3 changed files
with
131 additions
and
171 deletions.
There are no files selected for viewing
135 changes: 64 additions & 71 deletions
135
baseTemplate/templates/baseTemplate/versionManagment.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,87 +1,80 @@ | ||
{% extends "baseTemplate/index.html" %} | ||
{% load i18n %} | ||
{% block title %}{% trans "Version Management - CyberPanel" %}"{% endblock %} | ||
{% block title %}{% trans "Version Management - CyberPanel" %}*{% endblock %} | ||
{% block content %} | ||
|
||
{% load static %} | ||
|
||
<div class="container"> | ||
<div id="page-title"> | ||
<h2>{% trans "Version Management" %}</h2> | ||
<p>{% trans "Here you can manage versions and check for updates to CyberPanel" %}</p> | ||
</div> | ||
{% if Notecheck %} | ||
<div class="alert alert-info"> | ||
<div id="page-title"> | ||
<h2>{% trans "Version Management" %}</h2> | ||
<p>{% trans "Here you can manage versions and check for updates to CyberPanel" %}</p> | ||
</div> | ||
{% if Notecheck %} | ||
<div class="alert alert-info"> | ||
<p style="color:red; font-weight: bold ;">{% trans "Note: Latest commit does not match, please upgrade CyberPanel." %}</p> | ||
</div> | ||
{% endif %} | ||
|
||
|
||
<div class="panel"> | ||
<div class="panel-body"> | ||
<h3 class="title-hero"> | ||
CyberPanel | ||
</h3> | ||
<div ng-controller="versionManagment" class="example-box-wrapper"> | ||
|
||
|
||
<form action="/" class="form-horizontal bordered-row"> | ||
<div class="form-group"> | ||
|
||
<label class="col-sm-3 control-label " style="margin: 0px!important; padding: 0px!important;">{% trans "Current Version:" %}  </label> | ||
<div class="current-pack col-sm-9" style="margin: 0px!important; padding: 0px!important;">{{ currentVersion }} </div> | ||
|
||
</div> | ||
|
||
|
||
|
||
<div class="form-group"> | ||
<label class="col-sm-3 control-label " style="margin: 0px!important; padding: 0px!important;">{% trans "Build:" %}  </label> | ||
<div class="current-pack col-sm-9" style="margin: 0px!important; padding: 0px!important;">{{ build }} </div> | ||
<label class="col-sm-3 control-label " style="margin: 0px!important; padding: 0px!important;">{% trans "Current Commit:" %}  </label> | ||
<div class="current-pack col-sm-9" style="margin: 0px!important; padding: 0px!important;">{{ Currentcomt }} </div> | ||
|
||
</div> | ||
|
||
|
||
|
||
<div class="form-group"> | ||
<label class="col-sm-3 control-label " style="margin: 0px!important; padding: 0px!important;">{% trans "Latest Version:" %}  </label> | ||
<div class="current-pack col-sm-9" style="margin: 0px!important; padding: 0px!important;">{{ latestVersion }} </div> | ||
|
||
|
||
</div> | ||
|
||
|
||
<div class="form-group"> | ||
<label class="col-sm-3 control-label " style="margin: 0px!important; padding: 0px!important;">{% trans "Latest Build:" %}  </label> | ||
<div class="current-pack col-sm-9" style="margin: 0px!important; padding: 0px!important;">{{ latestBuild }} </div> | ||
<label class="col-sm-3 control-label " style="margin: 0px!important; padding: 0px!important;">{% trans "Latest Commit:" %}  </label> | ||
<div class="current-pack col-sm-9" style="margin: 0px!important; padding: 0px!important;">{{ latestcomit }} </div> | ||
|
||
</div> | ||
|
||
|
||
</div> | ||
{% endif %} | ||
|
||
<div class="panel"> | ||
<div class="panel-body"> | ||
<h3 class="title-hero"> | ||
CyberPanel | ||
</h3> | ||
<div ng-controller="versionManagment" class="example-box-wrapper"> | ||
<form action="{% url 'upgrade_cyberpanel' %}" method="post"> | ||
{% csrf_token %} | ||
<button type="submit">Upgrade CyberPanel</button> | ||
</form> | ||
<div ng-hide="upgradelogBox" class="form-group"> | ||
<div class="col-sm-12"> | ||
<textarea ng-model="upgradeLog" rows="30" class="form-control">{{ logs }}</textarea> | ||
</div> | ||
<div class="col-sm-12"> | ||
<textarea ng-model="upgradeLog" rows="30" class="form-control">{{ logs }}</textarea> | ||
</div> | ||
</div> | ||
|
||
|
||
|
||
</form> | ||
|
||
|
||
|
||
|
||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
|
||
|
||
|
||
<div class="panel"> | ||
<div class panel-body> | ||
<h3 class="title-hero"> | ||
CyberPanel | ||
</h3> | ||
<div ng-controller="versionManagment" class="example-box-wrapper"> | ||
<form action="/" class="form-horizontal bordered-row"> | ||
<div class="form-group"> | ||
<label class="col-sm-3 control-label " style="margin: 0px!important; padding: 0px!important;">{% trans "Current Version:" %}  </label> | ||
<div class="current-pack col-sm-9" style="margin: 0px!important; padding: 0px!important;">{{ currentVersion }} </div> | ||
</div> | ||
|
||
<div class="form-group"> | ||
<label class="col-sm-3 control-label " style="margin: 0px!important; padding: 0px!important;">{% trans "Build:" %}  </label> | ||
<div class="current-pack col-sm-9" style="margin: 0px!important; padding: 0px!important;">{{ build }} </div> | ||
<label class="col-sm-3 control-label " style="margin: 0px!important; padding: 0px!important;">{% trans "Current Commit:" %}  </label> | ||
<div class="current-pack col-sm-9" style="margin: 0px!important; padding: 0px!important;">{{ Currentcomt }} </div> | ||
</div> | ||
|
||
<div class="form-group"> | ||
<label class="col-sm-3 control-label " style="margin: 0px!important; padding: 0px!important;">{% trans "Latest Version:" %}  </label> | ||
<div class="current-pack col-sm-9" style="margin: 0px!important; padding: 0px!important;">{{ latestVersion }} </div> | ||
</div> | ||
|
||
<div class="form-group"> | ||
<label class="col-sm-3 control-label " style="margin: 0px!important; padding: 0px!important;">{% trans "Latest Build:" %}  </label> | ||
<div class="current-pack col-sm-9" style="margin: 0px!important; padding: 0px!important;">{{ latestBuild }} </div> | ||
<label class="col-sm-3 control-label " style="margin: 0px!important; padding: 0px!important;">{% trans "Latest Commit:" %}  </label> | ||
<div class="current-pack col-sm-9" style="margin: 0px!important; padding: 0px!important;">{{ latestcomit }} </div> | ||
</div> | ||
|
||
<div ng-hide="upgradelogBox" class="form-group"> | ||
<div class="col-sm-12"> | ||
<textarea ng-model="upgradeLog" rows="30" class="form-control">{{ logs }}</textarea> | ||
</div> | ||
</div> | ||
</form> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
|
||
|
||
{% endblock %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.