mirror of
https://github.com/usmannasir/cyberpanel.git
synced 2026-01-10 09:32:05 +01:00
74 lines
2.4 KiB
HTML
74 lines
2.4 KiB
HTML
{% extends "baseTemplate/index.html" %}
|
|
{% load i18n %}
|
|
{% block title %}{% trans "Error Logs - 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 "Email Logs" %}</h2>
|
|
<p>{% trans "Email Logs for main web server." %}</p>
|
|
</div>
|
|
|
|
|
|
<div ng-controller="readEmailLogs" class="row">
|
|
<div class="panel">
|
|
<div class="panel-body">
|
|
<h3 class="title-hero">
|
|
{% 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" rows="30" class="form-control">{{ logs }}</textarea>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
|
|
<div class="form-group">
|
|
<label class="col-sm-2 control-label"></label>
|
|
<div class="col-sm-4">
|
|
<button type="button" ng-click="fetchLogs()" class="btn btn-primary btn-lg btn-block">{% trans "Refresh" %}</button>
|
|
</div>
|
|
<div class="col-sm-4">
|
|
<button type="button" ng-click="clearLogs()" class="btn btn-primary btn-lg btn-block">{% trans "Clear Logs" %}</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 %} |