diff options
author | Simon Rettberg | 2019-03-07 13:29:48 +0100 |
---|---|---|
committer | Simon Rettberg | 2019-03-07 13:29:48 +0100 |
commit | 35078669abfbe296b578b3f131a30dcb38ed99f5 (patch) | |
tree | 2b1ee1010ce9605007bf0cc95e80ed9767843212 /modules-available/locationinfo/templates | |
parent | [locationinfo] Fix form<->button relation (delete, check, etc.) (diff) | |
download | slx-admin-35078669abfbe296b578b3f131a30dcb38ed99f5.tar.gz slx-admin-35078669abfbe296b578b3f131a30dcb38ed99f5.tar.xz slx-admin-35078669abfbe296b578b3f131a30dcb38ed99f5.zip |
[locationinfo] Add error log for backends
Diffstat (limited to 'modules-available/locationinfo/templates')
3 files changed, 32 insertions, 0 deletions
diff --git a/modules-available/locationinfo/templates/page-server-log.html b/modules-available/locationinfo/templates/page-server-log.html new file mode 100644 index 00000000..7fc3b997 --- /dev/null +++ b/modules-available/locationinfo/templates/page-server-log.html @@ -0,0 +1,17 @@ +<h2>{{lang_serverLogHead}}</h2> +<h3>{{servername}}</h3> + +<table class="table table-striped table-condensed"> + <thead> + <th class="text-center slx-smallcol">{{lang_when}}</th> + <th class="text-center">{{lang_event}}</th> + </thead> + <tbody> + {{#list}} + <tr> + <td class="text-center" nowrap="nowrap">{{dateline_s}}</td> + <td class="{{class}}">{{message}}</td> + </tr> + {{/list}} + </tbody> +</table>
\ No newline at end of file diff --git a/modules-available/locationinfo/templates/page-servers.html b/modules-available/locationinfo/templates/page-servers.html index 7c1cf79d..e295c4fd 100644 --- a/modules-available/locationinfo/templates/page-servers.html +++ b/modules-available/locationinfo/templates/page-servers.html @@ -9,6 +9,7 @@ <th>{{lang_locationName}}</th> <th class="text-center slx-smallcol">{{lang_edit}}</th> <th class="text-center slx-smallcol">{{lang_checkConnection}}</th> + <th class="text-center slx-smallcol">{{lang_showLog}}</th> <th class="text-center slx-smallcol">{{lang_delete}}</th> </tr> </thead> @@ -34,6 +35,11 @@ </button> </td> <td class="text-center"> + <a href="?do=locationinfo&show=backendlog&serverid={{serverid}}" class="btn btn-xs btn-default"> + <span class="glyphicon glyphicon-list-alt"></span> + </a> + </td> + <td class="text-center"> <button type="button" class="btn btn-xs btn-danger" onclick="$('#del-serverid').val({{serverid}})" data-toggle="modal" data-target="#deleteModal" {{perms.backend.edit.disabled}}> <span class="glyphicon glyphicon-trash"></span> diff --git a/modules-available/locationinfo/templates/page-tabs.html b/modules-available/locationinfo/templates/page-tabs.html index 743297e7..14730e2f 100644 --- a/modules-available/locationinfo/templates/page-tabs.html +++ b/modules-available/locationinfo/templates/page-tabs.html @@ -1,3 +1,12 @@ +<div> + {{#errors}} + <div class="alert alert-danger"> + [{{errtime}}] <a href="?do=locationinfo&show=backendlog&serverid={{serverid}}"><b>{{servername}}</b></a>: + {{error}} + </div> + {{/errors}} +</div> + <ul class="nav nav-tabs"> <li class="{{class-panels}} {{perms.panel.list.disabled}}"><a href="?do=locationinfo&show=panels">{{lang_panels}}</a></li> <li class="{{class-locations}} {{perms.location.disabled}}"><a href="?do=locationinfo&show=locations">{{lang_locationSettings}}</a></li> |