diff --git a/cloudbot/web/main.py b/cloudbot/web/main.py index 3d153f95e..d06c57f10 100644 --- a/cloudbot/web/main.py +++ b/cloudbot/web/main.py @@ -64,9 +64,11 @@ def get(self): doc = "Command has no documentation.".format(command) if plugin.permissions: - doc += " (Permission required: {})\n\n".format(", ".join(plugin.permissions)) + perm = ", ".join(plugin.permissions) + else: + perm = None - commands.append((cmd, doc)) + commands.append((cmd, doc, perm)) args = { 'bot_name': wi.config.get('bot_name', 'CloudBot'), diff --git a/cloudbot/web/templates/commands.html b/cloudbot/web/templates/commands.html index c7422a34c..fa40387d5 100644 --- a/cloudbot/web/templates/commands.html +++ b/cloudbot/web/templates/commands.html @@ -5,23 +5,32 @@
Command | +Command | Description | +|
---|---|---|---|
{{ cmd | e }} | {{ doc | e }} | + {% if perm %} ++ + | + {% else %} ++ {% endif %} |