compose: Show login and hide drafts for spectators.

This commit is contained in:
Aman Agrawal 2021-05-19 11:50:52 +00:00 committed by Tim Abbott
parent 988c6a4cbd
commit 5ffc95f6bb
1 changed files with 6 additions and 1 deletions

View File

@ -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>