diff --git a/reddash/app/dashboard/templates/guild.html b/reddash/app/dashboard/templates/guild.html index d17052ac..c1f1e4f2 100755 --- a/reddash/app/dashboard/templates/guild.html +++ b/reddash/app/dashboard/templates/guild.html @@ -39,7 +39,9 @@

- {{ _('{members} Members | {humans} Humans | {bots} Bots').format(members=data['data']['members'], humans=data['data']['humans'], bots=data['data']['bots']) }}
+ {{ _('{members} Members | {humans} Humans | {bots} + Bots').format(members=data['data']['members'], humans=data['data']['humans'], + bots=data['data']['bots']) }}
{{ data['data']['online'] }}
@@ -62,7 +64,9 @@

{{ _('Your permissions') }}: {{ data['data']['perms'] }}

{% if data['data']['roleswarn'] %}
- {{ _("Warning - You haven't registered any roles with the dashboard. Please use {command} to allow other people to use it.").format(command="[p]dashboard roles create") }} + {{ _("Warning - You haven't registered any roles with the dashboard. + Please use {command} to allow other people to use + it.").format(command="[p]dashboard roles create") }}
{% endif %}
@@ -86,8 +90,8 @@
{{ _('Guild-specific bot settings') }}

{{ _('Set server prefix') }}

-

{{ _("Sets {botname}'s server prefix(es)").format(botname=botname) }} +

{{ _("Sets {botname}'s server + prefix(es)").format(botname=botname) }}

{{ _('Syntax') }}: {{ data['data']['prefixes'][0] }}set serverprefix @@ -124,7 +129,8 @@

{{ _('Set server prefix') }}

aria-labelledby="prefixdrop"> {% for p in data['data']['prefixes'] %}
{{ p }} + class="dropdown-item clickable prefix-option {% if loop.index == 1 %} active {% endif %}">{{ + p }} {% endfor %}
@@ -153,10 +159,10 @@

{{ _('Set server prefix') }}

{% endfor %} - - + +
@@ -177,7 +183,9 @@

{{ _('Set server prefix') }}

{{ _('Set admin roles') }}

-

{{ _("Sets {botname}'s admin roles in {guild}").format(botname=botname, guild=data['data']['name']) }} +

{{ _("Sets {botname}'s admin roles in + {guild}").format(botname=botname, + guild=data['data']['name']) }}

{{ _('Syntax') }}: {{ data['data']['prefixes'][0] }}set addadminrole <role> @@ -198,7 +206,8 @@

{{ _('Set admin roles') }}

aria-labelledby="prefixdrop"> {% for p in data['data']['prefixes'] %} {{ p }} + class="dropdown-item clickable prefix-option {% if loop.index == 1 %} active {% endif %}">{{ + p }} {% endfor %}
@@ -229,13 +238,14 @@

{{ _('Set admin roles') }}

{% endfor %}
- + + style="height: 40px; margin-top: 5px;">{{ _('Add + Admin Role') }}
- +
@@ -526,7 +543,8 @@

{{ _('Add Rule') }}

aria-labelledby="prefixdrop"> {% for p in data['data']['prefixes'] %} {{ p }} + class="dropdown-item clickable prefix-option {% if loop.index == 1 %} active {% endif %}">{{ + p }} {% endfor %} @@ -602,7 +620,8 @@

{{ _('Remove Default Rule') }}

aria-labelledby="prefixdrop"> {% for p in data['data']['prefixes'] %} {{ p }} + class="dropdown-item clickable prefix-option {% if loop.index == 1 %} active {% endif %}">{{ + p }} {% endfor %} @@ -620,8 +639,8 @@

{{ _('Select the cog/command') }}

data-size="5"> - +
@@ -656,7 +675,8 @@

{{ _('Remove Rule') }}

aria-labelledby="prefixdrop"> {% for p in data['data']['prefixes'] %} {{ p }} + class="dropdown-item clickable prefix-option {% if loop.index == 1 %} active {% endif %}">{{ + p }} {% endfor %} @@ -683,8 +703,8 @@

{{ _('Step #2: Select cog/command') }}

data-size="5"> - +
@@ -755,7 +775,8 @@
{{ _('Guild-specific custom commands and ali

{{ _('View server aliases') }}

-

{{ _("See {botname}'s registered server aliases").format(botname=botname) }} +

{{ _("See {botname}'s registered server + aliases").format(botname=botname) }}

{{ _('Syntax') }}:
{{ data['data']['prefixes'][0] }}alias list
@@ -775,7 +796,8 @@

{{ _('View server aliases') }}

aria-labelledby="prefixdrop"> {% for p in data['data']['prefixes'] %} {{ p }} + class="dropdown-item clickable prefix-option {% if loop.index == 1 %} active {% endif %}">{{ + p }} {% endfor %}
@@ -787,7 +809,8 @@

{{ _('View server aliases') }}

- {{ _('Aliases have not been loaded. Please re-click Aliases on the left') }} + {{ _('Aliases have not been loaded. Please re-click Aliases + on the left') }}


@@ -810,7 +833,8 @@

{{ _('View server aliases') }}

{{ _('View server customcommands') }}

-

{{ _("See {botname}'s registered server custom commands").format(botname=botname) }} +

{{ _("See {botname}'s registered server custom + commands").format(botname=botname) }}

{{ _('Syntax') }}:
{{ data['data']['prefixes'][0] }}customcom list
@@ -830,7 +854,8 @@

{{ _('View server customcommands') }} aria-labelledby="prefixdrop"> {% for p in data['data']['prefixes'] %} {{ p }} + class="dropdown-item clickable prefix-option {% if loop.index == 1 %} active {% endif %}">{{ + p }} {% endfor %}

@@ -876,7 +901,9 @@
{{ _("The specified guild wasn't found. Did you enter the URL correctly?") } @@ -1050,6 +1077,10 @@
{{ data['message'] }}
ad: allow_or_deny, cc: cog_or_command } + if (data.id == undefined || data.cc == undefined) { + $("#adddefaultrulestatus").html(`{{ _('Failed to change rule: You must fill out every field.') }}`); + return + } try { xhr.send(JSON.stringify(data)) } catch (error) { @@ -1087,6 +1118,10 @@
{{ data['message'] }}
ww: who_or_what, cc: cog_or_command } + if (data.id == undefined || data.cc == undefined || data.ww == undefined) { + $("#addrulestatus").html(`{{ _('Failed to change rule: You must fill out every field.') }}`); + return + } try { xhr.send(JSON.stringify(data)) } catch (error) { @@ -1120,6 +1155,10 @@
{{ data['message'] }}
var data = { cc: cog_or_command } + if (data.cc == undefined) { + $("#removedefaultrulestatus").html(`{{ _('Failed to change rule: You must fill out every field.') }}`); + return + } try { xhr.send(JSON.stringify(data)) } catch (error) { @@ -1155,6 +1194,10 @@
{{ data['message'] }}
ww: who_or_what, cc: cog_or_command } + if (data.cc == undefined || data.ww == undefined) { + $("#removerulestatus").html(`{{ _('Failed to change rule: You must fill out every field.') }}`); + return + } try { xhr.send(JSON.stringify(data)) } catch (error) {