diff --git a/templates/zerver/settings.html b/templates/zerver/settings.html index 61d3cfc0f3..f75d7f7a58 100644 --- a/templates/zerver/settings.html +++ b/templates/zerver/settings.html @@ -4,11 +4,13 @@
+
{% csrf_token %} +
Your Account
- -
+
@@ -143,13 +145,18 @@ - - + + + + +
+
Your Bots
+

Looking for our Integrations or API documentation?

@@ -181,7 +188,8 @@ (Optional)
-

+ +

@@ -192,7 +200,7 @@
- +
@@ -200,7 +208,8 @@

For most bots using the API, you'll want to give each bot its own name and API key using the above section. But if you want to write a bot that can access your own private - messages, you should use your personal API key.

+ messages, you should use your personal API key. +

@@ -231,7 +240,8 @@ - + +
diff --git a/tools/check-handlebar-templates b/tools/check-handlebar-templates index 3821e3642f..e5a8224919 100755 --- a/tools/check-handlebar-templates +++ b/tools/check-handlebar-templates @@ -84,7 +84,15 @@ def validate(fn): assert state.depth == 0 git_files = map(str.strip, check_output(['git', 'ls-files']).split('\n')) + +# Check all our handlebars templates. templates = [fn for fn in git_files if fn.endswith('.handlebars')] assert len(templates) >= 10 # sanity check that we are actually doing work + +# Django templates are pretty messy now, so we whitelist them for now. +templates += [ + 'templates/zerver/settings.html' +] + for fn in templates: validate(fn)