mirror of
https://github.com/usmannasir/cyberpanel.git
synced 2026-02-01 20:29:06 +01:00
70 lines
2.3 KiB
HTML
Executable File
70 lines
2.3 KiB
HTML
Executable File
{% extends "baseTemplate/index.html" %}
|
|
{% load i18n %}
|
|
{% block title %}{% trans "CyberPanel Main Log File - CyberPanel" %}{% endblock %}
|
|
{% block content %}
|
|
|
|
|
|
{% load static %}
|
|
{% get_current_language as LANGUAGE_CODE %}
|
|
<!-- Current language: {{ LANGUAGE_CODE }} -->
|
|
|
|
<div class="container">
|
|
<div id="page-title">
|
|
<h2>{% trans "CyberPanel Main Log File" %}</h2>
|
|
<p>{% trans "This log file corresponds to errors generated by CyberPanel for your domain errors log you can look into /home/domain/logs." %}</p>
|
|
</div>
|
|
|
|
<div ng-controller="readCyberCPLogFile" class="row">
|
|
<div class="panel">
|
|
<div class="panel-body">
|
|
<h3 class="content-box-header">
|
|
{% trans "Last 50 Lines" %} <img ng-hide="logFileLoading" src="{% static 'images/loading.gif' %}">
|
|
</h3>
|
|
<div class="col-md-12">
|
|
|
|
<form class="form-horizontal bordered-row">
|
|
<div class="form-group">
|
|
<div class="col-sm-12">
|
|
<textarea ng-model="logsData" class="form-control" rows="30">{{ logs }}</textarea>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
|
|
<div class="form-group">
|
|
<label class="col-sm-3 control-label"></label>
|
|
<div class="col-sm-4">
|
|
<button type="button" ng-click="fetchLogs()" class="btn btn-primary btn-lg">{% trans "Refresh" %}</button>
|
|
|
|
</div>
|
|
</div>
|
|
|
|
|
|
<div ng-hide="logsFeteched" class="alert alert-success">
|
|
<p>{% trans "Last 50 Lines Fetched" %}</p>
|
|
</div>
|
|
|
|
|
|
<div ng-hide="couldNotFetchLogs" class="alert alert-danger">
|
|
<p>{% trans "Could not fetch logs. Use the command line to view the log file." %}</p>
|
|
</div>
|
|
|
|
|
|
|
|
</form>
|
|
|
|
|
|
|
|
|
|
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
{% endblock %}
|