fixy i usprwnienia
This commit is contained in:
@ -1,14 +1,5 @@
|
||||
{% extends "base.html" %}
|
||||
{% block title %}Edytuj lokalny Hosts - /etc/hosts Manager{% endblock %}
|
||||
{% block extra_css %}
|
||||
{{ super() }}
|
||||
<style>
|
||||
.tooltip-inner {
|
||||
max-width: 300px;
|
||||
text-align: left;
|
||||
}
|
||||
</style>
|
||||
{% endblock %}
|
||||
{% block content %}
|
||||
<div class="card mb-4">
|
||||
<div class="card-header">
|
||||
@ -24,7 +15,26 @@
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{% if hostfile %}
|
||||
<div class="card mb-4">
|
||||
<div class="card-header">
|
||||
<h3>Wersje /etc/hosts File</h3>
|
||||
</div>
|
||||
<div class="card-body">
|
||||
<p>Przeglądaj historię zmian, porównuj aktualną zawartość z najnowszą wersją oraz usuwaj stare wersje.</p>
|
||||
<a href="{{ url_for('hostfile_versions', hostfile_id=hostfile.id) }}" class="btn btn-info">Historia wersji</a>
|
||||
<a href="{{ url_for('delete_old_versions', hostfile_id=hostfile.id, days=30) }}" class="btn btn-secondary" onclick="return confirm('Usuń wersje starsze niż 30 dni?');">Usuń wersje starsze niż 30 dni</a>
|
||||
{% if hostfile.versions|length > 0 %}
|
||||
<a href="{{ url_for('diff_current_hostfile', hostfile_id=hostfile.id) }}" class="btn btn-warning" onclick="return confirm('Porównaj aktualną zawartość z najnowszą wersją zapisanej historii?');">Diff aktualny vs. najnowsza</a>
|
||||
{% else %}
|
||||
<span class="text-muted">Brak zapisanych wersji do diff.</span>
|
||||
{% endif %}
|
||||
</div>
|
||||
</div>
|
||||
{% endif %}
|
||||
|
||||
<div class="mt-3 text-center">
|
||||
<a href="{{ url_for('dashboard') }}" class="btn btn-secondary">Przejdź do pulpitu</a>
|
||||
<a href="{{ url_for('dashboard') }}" class="btn btn-secondary">Przejdź do dashboardu</a>
|
||||
</div>
|
||||
{% endblock %}
|
||||
|
Reference in New Issue
Block a user