mirror of
https://gitlab.com/niansa/discordlistforbots.git
synced 2025-03-06 20:49:22 +01:00
62 lines
1.7 KiB
Text
62 lines
1.7 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");%>
|
|
|
|
|
|
<!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>
|
|
<div class="actionsWrapper">
|
|
<div class="actions">
|
|
<a class="linkButton" href="https://discord.com/oauth2/authorize?client_id={%bot_id%}&permissions=8&scope=applications.commands%20bot">Invite</a>
|
|
<a class="linkButton" {%(canVote?"href='vote'":"href='#' style='color:grey;'")%}>Vote</a>
|
|
</div>
|
|
</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>
|
|
<tr>
|
|
<td class="overview-key">Votes</td>
|
|
<td class="overview-value">{%bot.votes%}</td>
|
|
</tr>
|
|
</table>
|
|
<br>
|
|
<a class="linkButton" style="margin:0px;" href="https://discord.gg/{%bot.support_server%}">Support Server</a>
|
|
</div>
|
|
</div>
|
|
</body>
|
|
|
|
</html>
|