mirror of
https://gitlab.com/niansa/discordlistforbots.git
synced 2025-03-06 20:49:22 +01:00
70 lines
2.3 KiB
Text
70 lines
2.3 KiB
Text
<%inc#include "controllers/views.h" %>
|
|
<%c++ auto bot_id = @@.get<uint64_t>("bot_id");%>
|
|
<%c++ auto bot = @@.get<Bot>("bot");%>
|
|
<%c++ auto canVote = @@.get<bool>("canVote");%>
|
|
<%c++ auto owner = @@.get<bool>("owner");%>
|
|
<%c++ auto modView = @@.get<bool>("modView");%>
|
|
|
|
|
|
<!DOCTYPE html>
|
|
<html>
|
|
|
|
<head>
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<link rel="stylesheet" href="/global.css">
|
|
<link rel="stylesheet" href="/botdetail.css">
|
|
<title>{%bot.name%} - DFB</title>
|
|
</head>
|
|
|
|
<body>
|
|
<div class="container">
|
|
<h1 class="text text-center"></h1>
|
|
<div class="bot-flex">
|
|
|
|
<img class="bot-image" src="{%bot.avatar_url%}"></img>
|
|
<div class="bot-text text text-center title">
|
|
{%bot.name%}
|
|
</div>
|
|
<%c++ if (owner or modView) {%>
|
|
<div class="actionsWrapper actions">
|
|
<a class="special-button" href="edit" style="background-color:yellow;color:black;">Edit</a>
|
|
<a class="special-button" href="delete" style="background-color:red;color:black;">Delete</a>
|
|
</div>
|
|
<%c++ if (modView) {%>
|
|
<div class="actionsWrapper actions">
|
|
<a class="special-button" href="approve" style="background-color:green;color:white;">Approve</a>
|
|
<a class="special-button" href="decline" style="background-color:black;color:white;">Decline</a>
|
|
</div>
|
|
<%c++ }%>
|
|
<%c++ }%>
|
|
<div class="actionsWrapper actions">
|
|
<a class="special-button" href="https://discord.com/oauth2/authorize?client_id={%bot_id%}&permissions=8&scope=applications.commands%20bot">Invite</a>
|
|
<a class="special-button" {%(canVote?"href='vote'":"style='color:grey;'")%}>Vote <b>{%bot.votes%}</b></a>
|
|
</div>
|
|
</div>
|
|
<hr>
|
|
<br>
|
|
<div class="text long-description">
|
|
{%bot.long_description%}
|
|
</div>
|
|
|
|
<hr>
|
|
<div class="text overview">
|
|
<h2>Overview</h2>
|
|
<table>
|
|
<tr>
|
|
<td class="overview-key">Prefix</td>
|
|
<td class="overview-value">{%bot.prefix%}</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="overview-key">Owner</td>
|
|
<td class="overview-value">{%bot.owner%}</td>
|
|
</tr>
|
|
</table>
|
|
<br>
|
|
<a class="special-button" style="margin:0px;" href="https://discord.gg/{%bot.support_server%}">Support Server</a>
|
|
</div>
|
|
</div>
|
|
</body>
|
|
|
|
</html>
|