More templates!
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
kolaente 2019-09-04 19:46:35 +02:00
parent d4f0a0cd55
commit 684bb421b3
Signed by: konrad
GPG Key ID: F40E70337AB24C9B
5 changed files with 242 additions and 244 deletions

6
tpl/admin_footer.html Normal file
View File

@ -0,0 +1,6 @@
{{define "admin_footer"}}
<script src="/assets/js/admin.js"></script>
</body>
</html>
{{end}}

28
tpl/admin_header.html Normal file
View File

@ -0,0 +1,28 @@
{{define "admin_header"}}
<!DOCTYPE html>
<html lang="de">
<head>
<meta charset="UTF-8">
<title>Kasino Admin</title>
<link rel="stylesheet" type="text/css" href="/assets/semantic/semantic.min.css">
<script>if (typeof module === 'object') {
window.module = module;
module = undefined;
}</script>
<script src="/assets/js/jquery-3.1.1.min.js"></script>
<script>if (window.module) module = window.module;</script>
<script src="/assets/semantic/semantic.min.js"></script>
</head>
<body>
<div style="width: 98%; margin: 0 auto;">
<a href="/logout" class="ui right labeled icon button blue" style="float: right;">
<i class="right sign out icon"></i>
Ausloggen
</a>
<h1>Kasino Admin
<div class="ui inline loader"></div>
</h1>
{{end}}

View File

@ -1,25 +1,7 @@
{{define "admin_mode_0"}}
<!DOCTYPE html>
<html lang="de">
<head>
<meta charset="UTF-8">
<title>Kasino Admin</title>
<link rel="stylesheet" type="text/css" href="/assets/semantic/semantic.min.css">
<script>if (typeof module === 'object') {window.module = module; module = undefined;}</script>
<script src="/assets/js/jquery-3.1.1.min.js"></script>
<script>if (window.module) module = window.module;</script>
<script src="/assets/semantic/semantic.min.js"></script>
</head>
{{if .Loggedin}}
<body>
<div style="width: 98%; margin: 0 auto;">
<a href="/logout" class="ui right labeled icon button blue" style="float: right;">
<i class="right sign out icon"></i>
Ausloggen
</a>
<h1>Kasino Admin <div class="ui inline loader"></div></h1>
{{ template "admin_header" . }}
<p>
<a class="ui right labeled icon addKofi button green">
@ -50,7 +32,8 @@
</tr>
</tbody>
</table>
<p style="color: #ccc;">© 2017-2019 <a href="http://konradlangenberg.de" target="_blank" style="color:#ccc;">Konrad Langenberg</a> | Version: {{.Version}}</p>
<p style="color: #ccc;">© 2017-2019 <a href="http://konradlangenberg.de" target="_blank" style="color:#ccc;">Konrad
Langenberg</a> | Version: {{.Version}}</p>
</div>
<!-- Modals -->
@ -85,7 +68,8 @@
<div class="image content">
<div class="ui input">
<input type="text" id="name" placeholder="Name"/>
</div><br/><br/>
</div>
<br/><br/>
<div class="ui input">
<input type="text" id="gemeinde" placeholder="Gemeinde"/>
</div>
@ -121,9 +105,6 @@
</div>
</div>
-->
<script src="/assets/js/admin.js"></script>
{{template "admin_footer"}}
{{end}}
{{end}}
</body>
</html>
{{end}}include

View File

@ -1,26 +1,8 @@
{{define "admin_mode_1"}}
<!DOCTYPE html>
<html lang="de">
<head>
<meta charset="UTF-8">
<title>Kasino Admin</title>
<link rel="stylesheet" type="text/css" href="/assets/semantic/semantic.min.css">
<script>if (typeof module === 'object') {window.module = module; module = undefined;}</script>
<script src="/assets/js/jquery-3.1.1.min.js"></script>
<script>if (window.module) module = window.module;</script>
<script src="/assets/semantic/semantic.min.js"></script>
</head>
{{if .Loggedin}}
<body>
<div style="width: 98%; margin: 0 auto;">
<a href="/logout" class="ui right labeled icon button blue" style="float: right;">
<i class="right sign out icon"></i>
Ausloggen
</a>
<h1>Kasino Admin
<div class="ui inline loader"></div>
</h1>
{{ template "admin_header" . }}
<p>
<a class="ui right labeled icon addGemeinde button green">
<i class="right plus icon"></i>
@ -45,7 +27,8 @@
</tr>
</tbody>
</table>
<p style="color: #ccc;">© 2017-2019 <a href="http://konradlangenberg.de" target="_blank" style="color:#ccc;">Konrad Langenberg</a> | Version: {{.Version}}</p>
<p style="color: #ccc;">© 2017-2019 <a href="http://konradlangenberg.de" target="_blank" style="color:#ccc;">Konrad
Langenberg</a> | Version: {{.Version}}</p>
</div>
<!-- Modals -->
@ -96,9 +79,6 @@
</div>
</div>
<script src="/assets/js/admin.js?1504651531"></script>
{{template "admin_footer"}}
{{end}}
</body>
</html>
{{end}}

View File

@ -6,7 +6,10 @@
<title>Kasino Admin</title>
<link rel="stylesheet" type="text/css" href="/assets/semantic/semantic.min.css">
<script>if (typeof module === 'object') {window.module = module; module = undefined;}</script>
<script>if (typeof module === 'object') {
window.module = module;
module = undefined;
}</script>
<script src="/assets/js/jquery-3.1.1.min.js"></script>
<script>if (window.module) module = window.module;</script>
<script src="/assets/semantic/semantic.min.js"></script>