Extract error sections to templates
This commit is contained in:
17
web/templates/reminder_dashboard/guild_error.html.tera
Normal file
17
web/templates/reminder_dashboard/guild_error.html.tera
Normal file
@ -0,0 +1,17 @@
|
||||
<div class="hero is-fullheight">
|
||||
<div class="hero-body">
|
||||
<div class="container has-text-centered">
|
||||
<p class="title">
|
||||
We couldn't get this server's data
|
||||
</p>
|
||||
<p class="subtitle">
|
||||
Please check Reminder Bot is in the server, and has correct permissions.
|
||||
</p>
|
||||
<a class="button is-size-4 is-rounded is-success" href="https://invite.reminder-bot.com">
|
||||
<p class="is-size-4">
|
||||
<span>Add to Server</span> <span class="icon"><i class="fas fa-chevron-right"></i></span>
|
||||
</p>
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
@ -0,0 +1,5 @@
|
||||
<div>
|
||||
|
||||
</div>
|
||||
|
||||
<script src="/static/js/reminder_errors.js"></script>
|
12
web/templates/reminder_dashboard/user_error.html.tera
Normal file
12
web/templates/reminder_dashboard/user_error.html.tera
Normal file
@ -0,0 +1,12 @@
|
||||
<div class="hero is-fullheight">
|
||||
<div class="hero-body">
|
||||
<div class="container has-text-centered">
|
||||
<p class="title">
|
||||
You do not have permissions for this server
|
||||
</p>
|
||||
<p class="subtitle">
|
||||
Ask an admin to grant you the "Manage Messages" permission.
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
Reference in New Issue
Block a user