dyno-bot/Dyno-web-v4/views/layouts/main.hbs
2020-09-12 19:08:48 +01:00

97 lines
4.1 KiB
Handlebars

<!doctype html>
<html class="no-js" lang="en" dir="ltr">
<head>
<meta charset="utf-8">
<meta http-equiv="x-ua-compatible" content="ie=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="Dyno is a feature-rich and modular discord bot for your Discord server. With web configuration, moderation, anti-spam, auto roles, music, custom commands, and much more!">
{{>opengraph}}
<title>{{config.name}}</title>
<link rel="shortcut icon" type="image/png" href="/images/v3/favicon.png"/>
{{!-- <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css"> --}}
<link rel="stylesheet" href="https://pro.fontawesome.com/releases/v5.1.0/css/all.css" integrity="sha384-87DrmpqHRiY8hPLIr7ByqhPIywuSsjuQAfMXAE0sMUpY3BM7nXjf+mLIUSvhDArs" crossorigin="anonymous">
{{#each externalStylesheets}}
<link rel="stylesheet" href="{{this}}">
{{/each}}
{{#each stylesheets}}
<link rel="stylesheet" href="/css/{{this}}.css?v={{@root.config.version}}">
{{/each}}
</head>
<body>
<nav class="level top-bar">
<div class="level-left">
<h1 class="title">
<a href="/" title="{{config.name}}">
<img src="/images/v3/dyno-44.svg" alt="Dyno" style="margin-right: 10px;" />
{{config.name}}
</a>
</h1>
{{>topnav}}
</div>
<div class="level-right">
{{#if user}}
<div class="level-item">
{{>serverselect}}
</div>
<a class="level-item" href="/account">
{{#if user.avatar}}
<img class="image is-32x32" src="https://discordapp.com/api/users/{{user.id}}/avatars/{{user.avatar}}.jpg" />
{{else}}
<img class="image is-32x32" src="https://discordapp.com/assets/6debd47ed13483642cf09e832ed0bc1b.png" />
{{/if}}
</a>
<a class="level-item" href="/account">{{user.username}}</a>
<a class="level-item button is-info" href="/logout" title="Logout">Logout</a>
{{else}}
<a class="level-item button is-info" href="/auth" title="Login with Discord">Login with Discord</a>
{{/if}}
</div>
</nav>
<div class="page-wrapper">
{{{body}}}
</div>
<footer class="footer">
<div class="container-fluid">
<div class="content has-text-centered">
{{>footernav}}
</div>
</div>
</footer>
<script src="/js/vendor/jquery.js"></script>
<script defer src="https://pro.fontawesome.com/releases/v5.1.0/js/all.js" integrity="sha384-E5SpgaZcbSJx0Iabb3Jr2AfTRiFnrdOw1mhO19DzzrT9L+wCpDyHUG2q07aQdO6E" crossorigin="anonymous"></script>
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','https://www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-90456879-1', 'auto');
ga('send', 'pageview');
</script>
<script type="text/javascript">
{{#if server}}
var server = '{{server.id}}';
{{/if}}
var host = '{{config.site.host}}';
</script>
{{#each scripts}}
<script type="text/javascript" src="{{this}}"></script>
{{/each}}
<script src="/js/app.js?v={{config.version}}"></script>
{{!-- <script type="text/javascript">
window.doorbellOptions = {
appKey: '2OQ0ebpY6s99I8WiSeweOCxEFMElyXhFz9EB8rcwC63JqQuUqXI9VkeUu3QrpM2E'
};
(function(w, d, t) {
var hasLoaded = false;
function l() { if (hasLoaded) { return; } hasLoaded = true; window.doorbellOptions.windowLoaded = true; var g = d.createElement(t);g.id = 'doorbellScript';g.type = 'text/javascript';g.async = true;g.src = 'https://embed.doorbell.io/button/5948?t='+(new Date().getTime());(d.getElementsByTagName('head')[0]||d.getElementsByTagName('body')[0]).appendChild(g); }
if (w.attachEvent) { w.attachEvent('onload', l); } else if (w.addEventListener) { w.addEventListener('load', l, false); } else { l(); }
if (d.readyState == 'complete') { l(); }
}(window, document, 'script'));
</script> --}}
</body>
</html>