mirror of
https://github.com/AuxXxilium/docker-ddns-server.git
synced 2024-12-04 02:26:58 +07:00
d84c3352a9
- auto redirect from ./ to ./admin - enabled two auth flows (admin and update) - disabled auth for admin by skipping env variable DDNS_ADMIN_LOGIN - introduced optional env variable DDNS_TITLE for dynamic UI title (default TheBBCloudDynDNS) - set copyright date in footer dynamic on startup - moved all remote js/css packages into static in order to avoid external dependencies - added "copy to clipboard button" on host overview page - replaced all fmt.Println to log... - introduced new optional env variable DDNS_CLEAR_LOG_INTERVAL to clear logs after n days (int). (check runs daily once if update request received) - newest logs are shown from top to button on logs page
54 lines
2.2 KiB
HTML
54 lines
2.2 KiB
HTML
{{define "content"}}
|
|
<div class="container marketing">
|
|
<h3 class="text-center mb-4">DNS Host Entries</h3>
|
|
<table class="table table-striped text-center">
|
|
<thead>
|
|
<tr>
|
|
<th>Domain</th>
|
|
<th>Hostname</th>
|
|
<th>IP</th>
|
|
<th>TTL</th>
|
|
<th>LastUpdate</th>
|
|
<th>
|
|
<button class="addHost btn btn-primary">Add Host Entry</button>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
{{range .hosts}}
|
|
<tr id="host_{{.ID}}">
|
|
<td id="host-domain_{{.ID}}">{{.Domain}}</td>
|
|
<td id="host-hostname_{{.ID}}">{{.Hostname}}.{{.Domain}}</td>
|
|
<td>{{.Ip}}</td>
|
|
<td>{{.Ttl}}</td>
|
|
<td>{{.LastUpdate.Format "01/02/2006 15:04 MEZ"}}</td>
|
|
<td>
|
|
<div style="display:none">
|
|
<div id="host-username_{{.ID}}">
|
|
{{.UserName}}
|
|
</div>
|
|
<div id="host-password_{{.ID}}" >
|
|
{{.Password}}
|
|
</div>
|
|
</div>
|
|
|
|
<div class="btn-group" id="host_{{.ID}}" >
|
|
<button id="{{.ID}}" class="editHost btn btn-outline-secondary btn-sm"><img
|
|
src="/static/icons/pencil.svg" alt="" width="16" height="16" title="Edit"></button>
|
|
<button
|
|
id="{{.ID}}" class="deleteHost btn btn-outline-secondary btn-sm"><img
|
|
src="/static/icons/trash.svg"
|
|
alt="" width="16" height="16"
|
|
title="Delete"></button>
|
|
<button id="{{.ID}}" class="showHostLog btn btn-outline-secondary btn-sm"><img
|
|
src="/static/icons/table.svg" alt="" width="16" height="16" title="Logs"></button>
|
|
<button id="{{.ID}}" class="copyUrlToClipboard btn btn-outline-secondary btn-sm"><img
|
|
src="/static/icons/clipboard.svg" alt="" width="16" height="16" title="Copy URL to clipboard"></button>
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
{{end}}
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
{{end}} |