summaryrefslogtreecommitdiffstats
path: root/templates/activities/_menu.html
diff options
context:
space:
mode:
authorTAKAHASHI Shuuji2022-12-12 01:25:48 +0900
committerGitHub2022-12-11 09:25:48 -0700
commit6d473a83cc791daaaf8ecadb06315be8594e2990 (patch)
tree51c3f1ff0606816bbbb997b189197d7dda48bc34 /templates/activities/_menu.html
parent9405698e3c7817b353b31fb7c2c3b4fea2d56783 (diff)
downloadtakahe-6d473a83cc791daaaf8ecadb06315be8594e2990.tar.gz
takahe-6d473a83cc791daaaf8ecadb06315be8594e2990.tar.bz2
takahe-6d473a83cc791daaaf8ecadb06315be8594e2990.zip
Add the character counter next to the Post button (#152)
Diffstat (limited to 'templates/activities/_menu.html')
-rw-r--r--templates/activities/_menu.html3
1 files changed, 2 insertions, 1 deletions
diff --git a/templates/activities/_menu.html b/templates/activities/_menu.html
index 4676831..b5c4faf 100644
--- a/templates/activities/_menu.html
+++ b/templates/activities/_menu.html
@@ -60,8 +60,9 @@
{{ form.content_warning }}
<input type="hidden" name="visibility" value="{{ config_identity.default_post_visibility }}">
<div class="buttons">
+ <span id="character-counter">{{ config.post_length }}</span>
<span class="button toggle" _="on click toggle .enabled then toggle .hidden on #id_content_warning">CW</span>
- <button>{% if config_identity.toot_mode %}Toot!{% else %}Post{% endif %}</button>
+ <button id="post-button">{% if config_identity.toot_mode %}Toot!{% else %}Post{% endif %}</button>
</div>
</form>
{% endif %}