mirror of
https://gitlab.com/niansa/discordlistforbots.git
synced 2025-03-06 20:49:22 +01:00
76 lines
2.5 KiB
Text
76 lines
2.5 KiB
Text
<%inc
|
|
/*
|
|
* discordlistforbots
|
|
* Copyright (C) 2021 niansa
|
|
*
|
|
* This program is free software: you can redistribute it and/or modify
|
|
* it under the terms of the GNU General Public License as published by
|
|
* the Free Software Foundation, either version 3 of the License, or
|
|
* (at your option) any later version.
|
|
*
|
|
* This program is distributed in the hope that it will be useful,
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
* GNU General Public License for more details.
|
|
*
|
|
* You should have received a copy of the GNU General Public License
|
|
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
|
*/
|
|
|
|
|
|
#include "controllers/views.h"
|
|
#include "config.h" %>
|
|
<%c++ auto sessionData = @@.get<SessionDataPtr>("sessionData");%>
|
|
|
|
|
|
<!DOCTYPE html>
|
|
<html>
|
|
|
|
<head>
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<link rel="stylesheet" href="/global.css">
|
|
</head>
|
|
|
|
<body>
|
|
<div class="header">
|
|
<div class="content-desktop">
|
|
<div style="text-align:center;">
|
|
<a href="/"><img src="/signature.png" style="width:20%"></a>
|
|
</div>
|
|
<%c++ if (sessionData) {%>
|
|
<p style="position:fixed;top:0;left:0;margin:0;">
|
|
<a class="special-button noborder" href="/bots/@me">My bots</a>
|
|
<%c++ if (sessionData->moderator) {%>
|
|
<a class="special-button noborder" href="/bots/@unapproved">Unapproved bots</a>
|
|
<%c++ }%>
|
|
<a class="special-button noborder" href="/bots/register">Register bot</a>
|
|
</p>
|
|
<%c++ }%>
|
|
<p style="position:fixed;top:0;right:0;margin:0;">
|
|
<%c++ if (sessionData) {%>
|
|
{%sessionData->discord_username%}
|
|
<a class="special-button noborder" href="/discorddeauth">Logout</a>
|
|
<%c++ } else {%>
|
|
Anonymous
|
|
<a class="special-button noborder" href="/discordauth">Login</a>
|
|
<%c++ }%>
|
|
<a class="special-button noborder" href="{%COMMUNITY%}" style="background-color:#7289da;">Join our Discord</a>
|
|
</p>
|
|
</div>
|
|
<div class="content-mobile">
|
|
<p style="text-align:left;">
|
|
<a class="special-button noborder" href="/menu" style="font-size:40px;padding:unset;margin:unset;background-color:transparent;">☰</a>
|
|
</p>
|
|
</div>
|
|
</div>
|
|
<br><br><br><br>
|
|
|
|
[[]]
|
|
|
|
<div style="position:fixed;bottom:0;">
|
|
<a class="imprint_link" href="/imprint">Imprint</a>
|
|
</div>
|
|
|
|
</body>
|
|
|
|
</html>
|