mirror of
https://gitlab.com/niansa/discordlistforbots.git
synced 2025-03-06 20:49:22 +01:00
52 lines
1.7 KiB
Text
52 lines
1.7 KiB
Text
<%inc#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>
|
|
|
|
[[]]
|
|
|
|
</body>
|
|
|
|
</html>
|