Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

compose: Show login and hide drafts for spectators.

Aman Agrawal5ffc95f6bb03
diff --git a/static/templates/compose.hbs b/static/templates/compose.hbs
index c6c268ade8a..9cff7f3edf3 100644
--- a/static/templates/compose.hbs
+++ b/static/templates/compose.hbs
@@ -31,7 +31,12 @@
</button>
</span>
{{/unless}}
- <span class="new_message_button">
+ <span class="new_message_button hide only-visible-for-spectators">
+ <a class="no-underline button small rounded float-left" href="/login">
+ {{t 'Log in to send messages' }}
+ </a>
+ </span>
+ <span class="new_message_button hidden-for-spectators">
<a class="drafts-link no-underline button small rounded compose_drafts_button" href="#drafts" title="{{t 'Drafts' }} (d)">
{{t 'Drafts' }}
</a>