diff --git a/files/templates/comments.html b/files/templates/comments.html index d2d5d1e8b..52b95e25a 100644 --- a/files/templates/comments.html +++ b/files/templates/comments.html @@ -259,7 +259,9 @@
- {{macros.file_input('file-edit-reply-' ~ c.id, 'comment-edit-body-' ~ c.id)}} + {{macros.emoji_btn('comment-edit-reply-' ~ c.id)}} + {{macros.gif_btn('comment-edit-reply-' ~ c.id)}} + {{macros.file_btn('file-edit-reply-' ~ c.id)}} Formatting help @@ -552,7 +554,9 @@ - {{macros.file_input('file-upload-reply-' ~ c.fullname, 'reply-form-body-' ~ c.id, not get_setting('dm_media'))}} + {{macros.emoji_btn('reply-form-body-' ~ c.id)}} + {{macros.gif_btn('reply-form-body-' ~ c.id)}} + {{macros.file_btn('file-upload-reply-' ~ c.fullname, not get_setting('dm_media'))}}
diff --git a/files/templates/contact.html b/files/templates/contact.html index d25e55768..0524b1cb7 100644 --- a/files/templates/contact.html +++ b/files/templates/contact.html @@ -9,8 +9,9 @@
- {{macros.file_input('file-upload', 'input-message')}} - + {{macros.emoji_btn('input-message')}} + {{macros.gif_btn('input-message')}} + {{macros.file_btn('file-upload')}}
diff --git a/files/templates/post.html b/files/templates/post.html index 848c0dba6..91b427ebd 100644 --- a/files/templates/post.html +++ b/files/templates/post.html @@ -193,7 +193,9 @@
- {{macros.file_input('file-upload-edit-' ~ p.id, 'post-edit-box-' ~ p.id)}} + {{macros.emoji_btn('post-edit-box-' ~ p.id)}} + {{macros.gif_btn('post-edit-box-' ~ p.id)}} + {{macros.file_btn('file-upload-edit-' ~ p.id)}} Formatting help diff --git a/files/templates/settings/common.html b/files/templates/settings/common.html index 4dd3abc8c..99274c91c 100644 --- a/files/templates/settings/common.html +++ b/files/templates/settings/common.html @@ -80,7 +80,9 @@ {% if show_extras %} - {{macros.file_input('file-upload-common-' ~ id, id ~'-text')}} + {{macros.emoji_btn(id ~ '-text')}} + {{macros.gif_btn(id ~ '-text')}} + {{macros.file_btn('file-upload-common-' ~ id)}} {% endif %}
diff --git a/files/templates/submit.html b/files/templates/submit.html index 1fa38688d..ec4fb0565 100644 --- a/files/templates/submit.html +++ b/files/templates/submit.html @@ -54,7 +54,9 @@
- {{macros.file_input('file-upload-submit', 'post-text')}} + {{macros.emoji_btn('post-text')}} + {{macros.gif_btn('post-text')}} + {{macros.file_btn('file-upload-submit')}}
diff --git a/files/templates/userpage/banner.html b/files/templates/userpage/banner.html index eb3c82221..bd4e636ff 100644 --- a/files/templates/userpage/banner.html +++ b/files/templates/userpage/banner.html @@ -193,7 +193,9 @@ - {{macros.file_input('file-upload-macro', 'input-message', not get_setting('dm_media'))}} + {{macros.emoji_btn('input-message')}} + {{macros.gif_btn('input-message')}} + {{macros.file_btn('file-upload-macro', not get_setting('dm_media'))}}
@@ -494,7 +496,9 @@ - {{macros.file_input('file-upload-mobile', 'input-message-mobile')}} + {{macros.emoji_btn('input-message-mobile')}} + {{macros.gif_btn('input-message-mobile')}} + {{macros.file_btn('file-upload-mobile')}}
diff --git a/files/templates/util/macros.html b/files/templates/util/macros.html index d19f1c492..01ffb2058 100644 --- a/files/templates/util/macros.html +++ b/files/templates/util/macros.html @@ -107,17 +107,20 @@ {% endmacro %} -{% macro file_input(input_id, textarea_id, disabled) %} -
- - +{% macro emoji_btn(textarea_id) %} + +{% endmacro %} - -
+{% macro gif_btn(textarea_id) %} + +{% endmacro %} + +{% macro file_btn(input_id, disabled) %} + {% endmacro %} {% macro comment_reply_box(target_fullname, html_id, wrapper_css_classes="", subwrapper_css_classes="", hide="", enable_cancel_button=true) %} @@ -130,7 +133,9 @@
- {{file_input('file-upload-reply-' ~ target_fullname, 'reply-form-body-' ~ target_fullname, False)}} + {{emoji_btn('reply-form-body-' ~ target_fullname)}} + {{gif_btn('reply-form-body-' ~ target_fullname)}} + {{file_btn('file-upload-reply-' ~ target_fullname)}}