Updated Language Files!
This commit is contained in:
parent
c2c07bcf82
commit
0b8ff00b15
|
|
@ -1,7 +1,8 @@
|
|||
{% load i18n %}
|
||||
<!doctype html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<title>File Manager - CyberPanel</title>
|
||||
<title>{% trans "File Manager - CyberPanel" %}</title>
|
||||
<!-- Required meta tags -->
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
|
||||
|
|
@ -39,7 +40,7 @@
|
|||
<!--- navigation bar ---->
|
||||
|
||||
<nav id="navBar" class="navbar navbar-expand-lg navbar-light bg-light">
|
||||
<a class="navbar-brand" href="#"><img id="logo" src="{% static 'filemanager/images/fileManager.png' %}"> File Manager </a>
|
||||
<a class="navbar-brand" href="#"><img id="logo" src="{% static 'filemanager/images/fileManager.png' %}">{% trans " File Manager" %} </a>
|
||||
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
|
||||
<span class="navbar-toggler-icon"></span>
|
||||
</button>
|
||||
|
|
@ -59,34 +60,34 @@
|
|||
<div class="card-body">
|
||||
<ul class="nav">
|
||||
<li class="nav-item">
|
||||
<a onclick="return false;" ng-click="showUploadBox()" class="nav-link" href="#"><i class="fa fa-upload" aria-hidden="true"></i> Upload</a>
|
||||
<a onclick="return false;" ng-click="showUploadBox()" class="nav-link" href="#"><i class="fa fa-upload" aria-hidden="true"></i> {% trans "Upload" %}</a>
|
||||
</li>
|
||||
<li class="nav-item">
|
||||
<a onclick="return false;" ng-click="showCreateFileModal()" class="nav-link" href="#"><i class="fa fa-file" aria-hidden="true"></i> New File</a>
|
||||
<a onclick="return false;" ng-click="showCreateFileModal()" class="nav-link" href="#"><i class="fa fa-file" aria-hidden="true"></i> {% trans "New File" %}</a>
|
||||
</li>
|
||||
<li class="nav-item">
|
||||
<a onclick="return false;" ng-click="showCreateFolderModal()" class="nav-link" href="#"><i class="fa fa-folder" aria-hidden="true"></i> New Folder</a>
|
||||
<a onclick="return false;" ng-click="showCreateFolderModal()" class="nav-link" href="#"><i class="fa fa-folder" aria-hidden="true"></i> {% trans "New Folder" %}</a>
|
||||
</li>
|
||||
<li id="deleteFile" class="nav-item">
|
||||
<a onclick="return false;" ng-click="showDeleteModal()" class="nav-link" href="#"><i class="fa fa-trash-o" aria-hidden="true"></i> Delete</a>
|
||||
<a onclick="return false;" ng-click="showDeleteModal()" class="nav-link" href="#"><i class="fa fa-trash-o" aria-hidden="true"></i> {% trans "Delete" %}</a>
|
||||
</li>
|
||||
<li id="copyFile" class="nav-item">
|
||||
<a onclick="return false;" ng-click="showCopyModal()" class="nav-link" href="#"><i class="fa fa-files-o" aria-hidden="true"></i> Copy</a>
|
||||
<a onclick="return false;" ng-click="showCopyModal()" class="nav-link" href="#"><i class="fa fa-files-o" aria-hidden="true"></i> {% trans "Copy" %}</a>
|
||||
</li>
|
||||
<li id="moveFile" class="nav-item">
|
||||
<a onclick="return false;" ng-click="showMoveModal()" class="nav-link" href="#"><i class="fa fa-arrows-alt" aria-hidden="true"></i> Move</a>
|
||||
<a onclick="return false;" ng-click="showMoveModal()" class="nav-link" href="#"><i class="fa fa-arrows-alt" aria-hidden="true"></i> {% trans "Move" %}</a>
|
||||
</li>
|
||||
<li id="renameFile" class="nav-item">
|
||||
<a onclick="return false;" ng-click="showRenameModal()" class="nav-link" href="#"><i class="fa fa-file-text-o" aria-hidden="true"></i> Rename</a>
|
||||
<a onclick="return false;" ng-click="showRenameModal()" class="nav-link" href="#"><i class="fa fa-file-text-o" aria-hidden="true"></i> {% trans "Rename" %}</a>
|
||||
</li>
|
||||
<li id="editFile" class="nav-item">
|
||||
<a onclick="return false;" ng-click="showHTMLEditorModal()" class="nav-link" href="#"><i class="fa fa-pencil-square-o" aria-hidden="true"></i> Edit</a>
|
||||
<a onclick="return false;" ng-click="showHTMLEditorModal()" class="nav-link" href="#"><i class="fa fa-pencil-square-o" aria-hidden="true"></i> {% trans "Edit" %}</a>
|
||||
</li>
|
||||
<li id="compressFile" class="nav-item">
|
||||
<a onclick="return false;" ng-click="showCompressionModal()" class="nav-link" href="#"><i class="fa fa-compress" aria-hidden="true"></i> Compress</a>
|
||||
<a onclick="return false;" ng-click="showCompressionModal()" class="nav-link" href="#"><i class="fa fa-compress" aria-hidden="true"></i> {% trans "Compress" %}</a>
|
||||
</li>
|
||||
<li id="extractFile" class="nav-item">
|
||||
<a onclick="return false;" ng-click="showExtractionModal()" class="nav-link" href="#"><i class="fa fa-expand" aria-hidden="true"></i> Extract</a>
|
||||
<a onclick="return false;" ng-click="showExtractionModal()" class="nav-link" href="#"><i class="fa fa-expand" aria-hidden="true"></i> {% trans "Extract" %}</a>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
|
|
@ -104,7 +105,7 @@
|
|||
|
||||
|
||||
<div>
|
||||
<label>Current Path <img ng-hide="treeLoading" src="{% static 'filemanager/images/loadingSmall.gif' %}"> </label>
|
||||
<label>{% trans "Current Path" %} <img ng-hide="treeLoading" src="{% static 'filemanager/images/loadingSmall.gif' %}"> </label>
|
||||
<input type="text" class="form-control" id="currentPath" ng-model="currentPath" readonly>
|
||||
</div>
|
||||
|
||||
|
|
@ -129,22 +130,22 @@
|
|||
|
||||
<ul class="nav">
|
||||
<li class="nav-item">
|
||||
<a onclick="return false;" ng-click="fetchForTableSecondary($event,'homeFetch')" class="nav-link" href="#"><i class="fa fa-home" aria-hidden="true"></i> Home</a>
|
||||
<a onclick="return false;" ng-click="fetchForTableSecondary($event,'homeFetch')" class="nav-link" href="#"><i class="fa fa-home" aria-hidden="true"></i> {% trans "Home" %}</a>
|
||||
</li>
|
||||
<li class="nav-item">
|
||||
<a onclick="return false;" ng-click="fetchForTableSecondary($event,'goBackOnPath')" class="nav-link" href="#"><i class="fa fa-arrow-left" aria-hidden="true"></i> Back</a>
|
||||
<a onclick="return false;" ng-click="fetchForTableSecondary($event,'goBackOnPath')" class="nav-link" href="#"><i class="fa fa-arrow-left" aria-hidden="true"></i> {% trans "Back" %}</a>
|
||||
</li>
|
||||
|
||||
<li class="nav-item">
|
||||
<a onclick="return false;" ng-click="fetchForTableSecondary($event,'refresh')" class="nav-link" href="#"><i class="fa fa-refresh" aria-hidden="true"></i> Refresh</a>
|
||||
<a onclick="return false;" ng-click="fetchForTableSecondary($event,'refresh')" class="nav-link" href="#"><i class="fa fa-refresh" aria-hidden="true"></i> {% trans "Refresh" %}</a>
|
||||
</li>
|
||||
|
||||
<li class="nav-item">
|
||||
<a onclick="return false;" ng-click="selectAll()" class="nav-link" href="#"><i class="fa fa-check-square-o" aria-hidden="true"></i> Select All</a>
|
||||
<a onclick="return false;" ng-click="selectAll()" class="nav-link" href="#"><i class="fa fa-check-square-o" aria-hidden="true"></i> {% trans "Select All" %}</a>
|
||||
</li>
|
||||
|
||||
<li class="nav-item">
|
||||
<a onclick="return false;" ng-click="unSelectAll()" class="nav-link" href="#"><i class="fa fa-square-o" aria-hidden="true"></i> UnSelect All</a>
|
||||
<a onclick="return false;" ng-click="unSelectAll()" class="nav-link" href="#"><i class="fa fa-square-o" aria-hidden="true"></i> {% trans "UnSelect All" %}</a>
|
||||
</li>
|
||||
</ul>
|
||||
|
||||
|
|
@ -153,10 +154,10 @@
|
|||
<thead id="tableHead">
|
||||
<tr>
|
||||
<th scope="col"></th>
|
||||
<th scope="col">File Name</th>
|
||||
<th scope="col">Size (KB)</th>
|
||||
<th scope="col">Last Modified</th>
|
||||
<th scope="col">Permissions</th>
|
||||
<th scope="col">{% trans "File Name" %}</th>
|
||||
<th scope="col">{% trans "Size (KB)" %}</th>
|
||||
<th scope="col">{% trans "Last Modified" %}</th>
|
||||
<th scope="col">{% trans "Permissions" %}</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody id="tableBodyFiles">
|
||||
|
|
@ -176,40 +177,40 @@
|
|||
<div class="modal-dialog modal-lg">
|
||||
<div class="modal-content">
|
||||
<div id="uploadBoxLabel" class="modal-header">
|
||||
<h5 class="modal-title" >Upload File</h5>
|
||||
<h5 class="modal-title" >{% trans "Upload File" %}</h5>
|
||||
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
|
||||
<span aria-hidden="true">×</span>
|
||||
</button>
|
||||
</div>
|
||||
<div class="modal-body">
|
||||
|
||||
<h3>Upload queue</h3>
|
||||
<p>Queue length: {$ uploader.queue.length $}</p>
|
||||
<h3>{% trans "Upload queue" %}</h3>
|
||||
<p>{% trans "Queue length:" %} {$ uploader.queue.length $}</p>
|
||||
|
||||
|
||||
<div>
|
||||
|
||||
<div class="card my-drop-zone" nv-file-over="" uploader="uploader">
|
||||
<div class="card-body">
|
||||
<h4 class="card-title">Drop</h4>
|
||||
<p class="card-text">Drop Files here to upload them.</p>
|
||||
<h4 class="card-title">{% trans "Drop" %}</h4>
|
||||
<p class="card-text">{% trans "Drop Files here to upload them." %}</p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="form-group">
|
||||
<label for="uploadControlMultiple">Upload</label>
|
||||
<label for="uploadControlMultiple">{% trans "Upload" %}</label>
|
||||
<input type="file" nv-file-select="" uploader="uploader" class="form-control-file" id="uploadControlMultiple" multiple>
|
||||
</div>
|
||||
|
||||
<table class="table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th scope="col">Name</th>
|
||||
<th scope="col">Size</th>
|
||||
<th scope="col">Progress</th>
|
||||
<th scope="col">Status</th>
|
||||
<th scope="col">Actions</th>
|
||||
<th scope="col">{% trans "Name" %}</th>
|
||||
<th scope="col">{% trans "Size" %}</th>
|
||||
<th scope="col">{% trans "Progress" %}</th>
|
||||
<th scope="col">{% trans "Status" %}</th>
|
||||
<th scope="col">{% trans "Actions" %}</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
|
|
@ -229,13 +230,13 @@
|
|||
</td>
|
||||
<td nowrap>
|
||||
<button type="button" class="btn btn-success btn-sm" ng-click="item.upload()" ng-disabled="item.isReady || item.isUploading || item.isSuccess">
|
||||
<i class="fa fa-upload" aria-hidden="true"></i> Upload
|
||||
<i class="fa fa-upload" aria-hidden="true"></i> {% trans "Upload" %}
|
||||
</button>
|
||||
<button type="button" class="btn btn-warning btn-sm" ng-click="item.cancel()" ng-disabled="!item.isUploading">
|
||||
<i class="fa fa-ban" aria-hidden="true"></i> Cancel
|
||||
<i class="fa fa-ban" aria-hidden="true"></i> {% trans "Cancel" %}
|
||||
</button>
|
||||
<button type="button" class="btn btn-danger btn-sm" ng-click="item.remove()">
|
||||
<i class="fa fa-trash" aria-hidden="true"></i> Remove
|
||||
<i class="fa fa-trash" aria-hidden="true"></i> {% trans "Remove" %}
|
||||
</button>
|
||||
</td>
|
||||
</tr>
|
||||
|
|
@ -245,7 +246,7 @@
|
|||
|
||||
<div>
|
||||
<div id="queueProg">
|
||||
Queue progress:
|
||||
{% trans "Queue progress:" %}
|
||||
<div class="progress" style="">
|
||||
<div class="progress-bar" role="progressbar" ng-style="{ 'width': uploader.progress + '%' }"></div>
|
||||
</div>
|
||||
|
|
@ -254,17 +255,17 @@
|
|||
</div>
|
||||
|
||||
<div ng-hide="errorMessage" class="alert alert-danger" role="alert">
|
||||
{$ fileName $} can not be uploaded, Error message: {$ error_message $}
|
||||
{$ fileName $} {% trans "can not be uploaded, Error message:" %} {$ error_message $}
|
||||
</div>
|
||||
|
||||
<button type="button" class="btn btn-success btn-lg" ng-click="uploader.uploadAll()" ng-disabled="!uploader.getNotUploadedItems().length">
|
||||
<i class="fa fa-upload" aria-hidden="true"></i> Upload all
|
||||
<i class="fa fa-upload" aria-hidden="true"></i> {% trans "Upload all" %}
|
||||
</button>
|
||||
<button type="button" class="btn btn-warning btn-lg" ng-click="uploader.cancelAll()" ng-disabled="!uploader.isUploading">
|
||||
<i class="fa fa-ban" aria-hidden="true"></i> Cancel all
|
||||
<i class="fa fa-ban" aria-hidden="true"></i> {% trans "Cancel all" %}
|
||||
</button>
|
||||
<button type="button" class="btn btn-danger btn-lg" ng-click="uploader.clearQueue()" ng-disabled="!uploader.queue.length">
|
||||
<i class="fa fa-trash" aria-hidden="true"></i> Remove all
|
||||
<i class="fa fa-trash" aria-hidden="true"></i> {% trans "Remove all" %}
|
||||
</button>
|
||||
</div>
|
||||
|
||||
|
|
@ -300,14 +301,14 @@
|
|||
{$error_message$}
|
||||
</div>
|
||||
<div ng-hide="saveSuccess" class="alert alert-success" role="alert">
|
||||
File Successfully saved.
|
||||
{% trans "File Successfully saved." %}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<button ng-click="putFileContents()" type="button" class="btn btn-success btn-lg">
|
||||
<i class="fa" aria-hidden="true"></i> Save Changes
|
||||
<i class="fa" aria-hidden="true"></i> {% trans "Save Changes" %}
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
|
|
@ -324,7 +325,7 @@
|
|||
<div class="modal-content">
|
||||
|
||||
<div id="htmlEditorLable" class="modal-header">
|
||||
<h5 class="modal-title" >Create new folder! <img ng-hide="htmlEditorLoading" src="{% static 'filemanager/images/loadingSmall.gif' %}"></h5>
|
||||
<h5 class="modal-title" >{% trans "Create new folder!" %} <img ng-hide="htmlEditorLoading" src="{% static 'filemanager/images/loadingSmall.gif' %}"></h5>
|
||||
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
|
||||
<span aria-hidden="true">×</span>
|
||||
</button>
|
||||
|
|
@ -332,11 +333,11 @@
|
|||
<div class="modal-body">
|
||||
<form action="/">
|
||||
<div class="form-group">
|
||||
<label>New Folder Name</label>
|
||||
<label>{% trans "New Folder Name" %}</label>
|
||||
<input ng-model="newFolderName" type="text" class="form-control" >
|
||||
<small class="form-text text-muted">Folder will be created in your current directory</small>
|
||||
<small class="form-text text-muted">{% trans "Folder will be created in your current directory" %}</small>
|
||||
</div>
|
||||
<button type="button" ng-click="createNewFolder()" class="btn btn-primary">Create Folder</button>
|
||||
<button type="button" ng-click="createNewFolder()" class="btn btn-primary">{% trans "Create Folder" %}</button>
|
||||
</form>
|
||||
</div>
|
||||
|
||||
|
|
@ -349,7 +350,7 @@
|
|||
{$error_message$}
|
||||
</div>
|
||||
<div ng-hide="createSuccess" class="alert alert-success" role="alert">
|
||||
Folder Successfully created.
|
||||
{% trans "Folder Successfully created." %}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
|
@ -368,7 +369,7 @@
|
|||
<div class="modal-content">
|
||||
|
||||
<div id="htmlEditorLable" class="modal-header">
|
||||
<h5 class="modal-title" >Create new file! <img ng-hide="htmlEditorLoading" src="{% static 'filemanager/images/loadingSmall.gif' %}"></h5>
|
||||
<h5 class="modal-title" >{% trans "Create new file!" %} <img ng-hide="htmlEditorLoading" src="{% static 'filemanager/images/loadingSmall.gif' %}"></h5>
|
||||
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
|
||||
<span aria-hidden="true">×</span>
|
||||
</button>
|
||||
|
|
@ -376,11 +377,11 @@
|
|||
<div class="modal-body">
|
||||
<form action="/">
|
||||
<div class="form-group">
|
||||
<label>New File Name</label>
|
||||
<label>{% trans "New File Name" %}</label>
|
||||
<input ng-model="newFileName" type="text" class="form-control" >
|
||||
<small class="form-text text-muted">File will be created in your current directory, if it already exists it will not overwirte.</small>
|
||||
<small class="form-text text-muted">{% trans "File will be created in your current directory, if it already exists it will not overwirte." %}</small>
|
||||
</div>
|
||||
<button type="button" ng-click="createNewFile()" class="btn btn-primary">Create File</button>
|
||||
<button type="button" ng-click="createNewFile()" class="btn btn-primary">{% trans "Create File" %}</button>
|
||||
</form>
|
||||
</div>
|
||||
|
||||
|
|
@ -393,7 +394,7 @@
|
|||
{$error_message$}
|
||||
</div>
|
||||
<div ng-hide="createSuccess" class="alert alert-success" role="alert">
|
||||
File Successfully created.
|
||||
{% trans "File Successfully created." %}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
|
@ -409,7 +410,7 @@
|
|||
<div class="modal-dialog modal-lg" role="document">
|
||||
<div class="modal-content">
|
||||
<div id="htmlEditorLable" class="modal-header">
|
||||
<h5 class="modal-title" >Confirm Deletion! <img ng-hide="deleteLoading" src="{% static 'filemanager/images/loadingSmall.gif' %}"></h5>
|
||||
<h5 class="modal-title" >{% trans "Confirm Deletion!" %} <img ng-hide="deleteLoading" src="{% static 'filemanager/images/loadingSmall.gif' %}"></h5>
|
||||
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
|
||||
<span aria-hidden="true">×</span>
|
||||
</button>
|
||||
|
|
@ -418,8 +419,8 @@
|
|||
<p>Are you sure?</p>
|
||||
</div>
|
||||
<div class="modal-footer">
|
||||
<button ng-click="deleteFolderOrFile()" type="button" class="btn btn-primary">Confirm</button>
|
||||
<button type="button" class="btn btn-secondary" data-dismiss="modal">Close</button>
|
||||
<button ng-click="deleteFolderOrFile()" type="button" class="btn btn-primary">{% trans "Confirm" %}</button>
|
||||
<button type="button" class="btn btn-secondary" data-dismiss="modal">{% trans "Close" %}</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
@ -434,7 +435,7 @@
|
|||
<div class="modal-dialog modal-lg" role="document">
|
||||
<div class="modal-content">
|
||||
<div id="htmlEditorLable" class="modal-header">
|
||||
<h5 class="modal-title">Compress <img ng-hide="compressionLoading" src="{% static 'filemanager/images/loadingSmall.gif' %}"></h5>
|
||||
<h5 class="modal-title">{% trans "Compress" %} <img ng-hide="compressionLoading" src="{% static 'filemanager/images/loadingSmall.gif' %}"></h5>
|
||||
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
|
||||
<span aria-hidden="true">×</span>
|
||||
</button>
|
||||
|
|
@ -442,17 +443,17 @@
|
|||
<div class="modal-body">
|
||||
<form>
|
||||
<div class="form-group">
|
||||
<label>List of files/folder!</label>
|
||||
<label>{% trans "List of files/folder!" %}</label>
|
||||
<textarea ng-model="listOfFiles" class="form-control" rows="3"></textarea>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label>Compressed File Name</label>
|
||||
<label>{% trans "Compressed File Name" %}</label>
|
||||
<input ng-model="compressedFileName" type="text" class="form-control">
|
||||
<small class="form-text text-muted">Enter without extension name!</small>
|
||||
<small class="form-text text-muted">{% trans "Enter without extension name!" %}</small>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label>Compression Type</label>
|
||||
<label>{% trans "Compression Type" %}</label>
|
||||
<select ng-model="compressionType" class="form-control">
|
||||
<option>zip</option>
|
||||
<option>tar.gz</option>
|
||||
|
|
@ -461,8 +462,8 @@
|
|||
</form>
|
||||
</div>
|
||||
<div class="modal-footer">
|
||||
<button ng-click="startCompression()" type="button" class="btn btn-primary">Compress</button>
|
||||
<button type="button" class="btn btn-secondary" data-dismiss="modal">Close</button>
|
||||
<button ng-click="startCompression()" type="button" class="btn btn-primary">{% trans "Compress" %}</button>
|
||||
<button type="button" class="btn btn-secondary" data-dismiss="modal">{% trans "Close" %}</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
@ -477,7 +478,7 @@
|
|||
<div class="modal-content">
|
||||
|
||||
<div id="htmlEditorLable" class="modal-header">
|
||||
<h5 class="modal-title" >Extracting {$ fileToBeExtracted $} <img ng-hide="extractionLoading" src="{% static 'filemanager/images/loadingSmall.gif' %}"></h5>
|
||||
<h5 class="modal-title" >{% trans "Extracting" %} {$ fileToBeExtracted $} <img ng-hide="extractionLoading" src="{% static 'filemanager/images/loadingSmall.gif' %}"></h5>
|
||||
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
|
||||
<span aria-hidden="true">×</span>
|
||||
</button>
|
||||
|
|
@ -485,11 +486,11 @@
|
|||
<div class="modal-body">
|
||||
<form action="/">
|
||||
<div class="form-group">
|
||||
<label>Extract in</label>
|
||||
<label>{% trans "Extract in" %}</label>
|
||||
<input ng-model="extractionLocation" type="text" class="form-control" >
|
||||
<small class="form-text text-muted">You can enter . to extract in current directory!</small>
|
||||
<small class="form-text text-muted">{% trans "You can enter . to extract in current directory!" %}</small>
|
||||
</div>
|
||||
<button type="button" ng-click="startExtraction()" class="btn btn-primary">Extract</button>
|
||||
<button type="button" ng-click="startExtraction()" class="btn btn-primary">{% trans "Extract" %}</button>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
|
|
@ -505,7 +506,7 @@
|
|||
<div class="modal-dialog modal-lg" role="document">
|
||||
<div class="modal-content">
|
||||
<div id="htmlEditorLable" class="modal-header">
|
||||
<h5 class="modal-title">Move Files <img ng-hide="moveLoading" src="{% static 'filemanager/images/loadingSmall.gif' %}"></h5>
|
||||
<h5 class="modal-title">{% trans "Move Files" %} <img ng-hide="moveLoading" src="{% static 'filemanager/images/loadingSmall.gif' %}"></h5>
|
||||
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
|
||||
<span aria-hidden="true">×</span>
|
||||
</button>
|
||||
|
|
@ -513,19 +514,19 @@
|
|||
<div class="modal-body">
|
||||
<form>
|
||||
<div class="form-group">
|
||||
<label>List of files/folders!</label>
|
||||
<label>{% trans "List of files/folders!" %}</label>
|
||||
<textarea ng-model="listOfFiles" class="form-control" rows="3"></textarea>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label>Move to</label>
|
||||
<label>{% trans "Move to" %}</label>
|
||||
<input ng-model="pathToMoveTo" type="text" class="form-control">
|
||||
<small class="form-text text-muted">Enter a path to move your files!</small>
|
||||
<small class="form-text text-muted">{% trans "Enter a path to move your files!" %}</small>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
<div class="modal-footer">
|
||||
<button ng-click="startMoving()" type="button" class="btn btn-primary">Move</button>
|
||||
<button type="button" class="btn btn-secondary" data-dismiss="modal">Close</button>
|
||||
<button ng-click="startMoving()" type="button" class="btn btn-primary">{% trans "Move" %}</button>
|
||||
<button type="button" class="btn btn-secondary" data-dismiss="modal">{% trans "Close" %}</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
@ -540,7 +541,7 @@
|
|||
<div class="modal-dialog modal-lg" role="document">
|
||||
<div class="modal-content">
|
||||
<div id="htmlEditorLable" class="modal-header">
|
||||
<h5 class="modal-title">Copy Files <img ng-hide="copyLoading" src="{% static 'filemanager/images/loadingSmall.gif' %}"></h5>
|
||||
<h5 class="modal-title">{% trans "Copy Files" %} <img ng-hide="copyLoading" src="{% static 'filemanager/images/loadingSmall.gif' %}"></h5>
|
||||
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
|
||||
<span aria-hidden="true">×</span>
|
||||
</button>
|
||||
|
|
@ -548,19 +549,19 @@
|
|||
<div class="modal-body">
|
||||
<form>
|
||||
<div class="form-group">
|
||||
<label>List of files/folders!</label>
|
||||
<label>{% trans "List of files/folders!" %}</label>
|
||||
<textarea ng-model="listOfFiles" class="form-control" rows="3"></textarea>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label>Copy to</label>
|
||||
<label>{% trans "Copy to" %}</label>
|
||||
<input ng-model="pathToCopyTo" type="text" class="form-control">
|
||||
<small class="form-text text-muted">Enter a path to copy your files to!</small>
|
||||
<small class="form-text text-muted">{% trans "Enter a path to copy your files to!" %}</small>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
<div class="modal-footer">
|
||||
<button ng-click="startCopying()" type="button" class="btn btn-primary">Copy</button>
|
||||
<button type="button" class="btn btn-secondary" data-dismiss="modal">Close</button>
|
||||
<button ng-click="startCopying()" type="button" class="btn btn-primary">{% trans "Copy" %}</button>
|
||||
<button type="button" class="btn btn-secondary" data-dismiss="modal">{% trans "Close" %}</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
@ -574,7 +575,7 @@
|
|||
<div class="modal-dialog modal-lg" role="document">
|
||||
<div class="modal-content">
|
||||
<div id="htmlEditorLable" class="modal-header">
|
||||
<h5 class="modal-title">Renaming {$ fileToRename $} <img ng-hide="renameLoading" src="{% static 'filemanager/images/loadingSmall.gif' %}"></h5>
|
||||
<h5 class="modal-title">{% trans "Renaming" %} {$ fileToRename $} <img ng-hide="renameLoading" src="{% static 'filemanager/images/loadingSmall.gif' %}"></h5>
|
||||
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
|
||||
<span aria-hidden="true">×</span>
|
||||
</button>
|
||||
|
|
@ -582,15 +583,15 @@
|
|||
<div class="modal-body">
|
||||
<form>
|
||||
<div class="form-group">
|
||||
<label>New Name</label>
|
||||
<label>{% trans "New Name" %}</label>
|
||||
<input ng-model="newFileName" type="text" class="form-control">
|
||||
<small class="form-text text-muted">Enter new name of file!</small>
|
||||
<small class="form-text text-muted">{% trans "Enter new name of file!" %}</small>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
<div class="modal-footer">
|
||||
<button ng-click="renameFile()" type="button" class="btn btn-primary">Rename</button>
|
||||
<button type="button" class="btn btn-secondary" data-dismiss="modal">Close</button>
|
||||
<button ng-click="renameFile()" type="button" class="btn btn-primary">{% trans "Rename" %}</button>
|
||||
<button type="button" class="btn btn-secondary" data-dismiss="modal">{% trans "Close" %}</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
|||
|
|
@ -681,7 +681,7 @@ class preFlightsChecks:
|
|||
cmd = []
|
||||
|
||||
cmd.append("wget")
|
||||
cmd.append("http://cyberpanel.net/CyberPanelTemp.tar.gz")
|
||||
cmd.append("http://cyberpanel.net/CyberPanel.1.6.0.tar.gz")
|
||||
|
||||
res = subprocess.call(cmd)
|
||||
|
||||
|
|
@ -700,7 +700,7 @@ class preFlightsChecks:
|
|||
|
||||
cmd.append("tar")
|
||||
cmd.append("zxf")
|
||||
cmd.append("CyberPanelTemp.tar.gz")
|
||||
cmd.append("CyberPanel.1.6.0.tar.gz")
|
||||
|
||||
res = subprocess.call(cmd)
|
||||
|
||||
|
|
@ -806,6 +806,18 @@ class preFlightsChecks:
|
|||
else:
|
||||
pass
|
||||
|
||||
|
||||
## change owner
|
||||
|
||||
command = "chown -R cyberpanel:cyberpanel /usr/local/CyberCP"
|
||||
|
||||
res = subprocess.call(shlex.split(command))
|
||||
|
||||
if res == 1:
|
||||
logging.InstallLog.writeToFile("[805] Permissions fix failed!")
|
||||
else:
|
||||
pass
|
||||
|
||||
def install_unzip(self):
|
||||
try:
|
||||
|
||||
|
|
|
|||
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue