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.

profile_summary: Clarify "Bot" user in bot profile summary.

yogesh sirsatfcd49871eb23
diff --git a/static/templates/user_info_popover_content.hbs b/static/templates/user_info_popover_content.hbs
index 3c2ac068ee1..d187dba5d5c 100644
--- a/static/templates/user_info_popover_content.hbs
+++ b/static/templates/user_info_popover_content.hbs
@@ -24,7 +24,7 @@
</div>
{{/if}}
{{else}}
- <li class="user_popover_email half-opacity italic">{{#tr}}This user has been deactivated.{{/tr}}</li>
+ <li class="user_popover_email half-opacity italic">{{#if is_bot}}{{#tr}}This bot has been deactivated.{{/tr}}{{else}}{{#tr}}This user has been deactivated.{{/tr}}{{/if}}</li>
{{/if}}
@@ -125,7 +125,7 @@
{{#if has_message_context}}
<a tabindex="0" class="mention_user">
<i class="fa fa-at" aria-hidden="true"></i>
- {{#tr}}Reply mentioning user{{/tr}}
+ {{#if is_bot}}{{#tr}}Reply mentioning bot{{/tr}}{{else}}{{#tr}}Reply mentioning user{{/tr}}{{/if}}
{{#if is_sender_popover}}<span class="hotkey-hint">(@)</span>{{/if}}
</a>
{{else}}
@@ -181,13 +181,13 @@
{{#if is_active}}
<li>
<a tabindex="0" class="sidebar-popover-manage-user">
- <i class="fa fa-edit" aria-hidden="true"></i> {{#tr}}Manage this user{{/tr}}
+ <i class="fa fa-edit" aria-hidden="true"></i> {{#if is_bot}}{{#tr}}Manage this bot{{/tr}}{{else}}{{#tr}}Manage this user{{/tr}}{{/if}}
</a>
</li>
{{else}}
<li>
<a tabindex="0" class="sidebar-popover-reactivate-user">
- <i class="fa fa-user-plus" aria-hidden="true"></i> {{#tr}}Reactivate this user{{/tr}}
+ <i class="fa fa-user-plus" aria-hidden="true"></i> {{#if is_bot}}{{#tr}}Reactivate this bot{{/tr}}{{else}}{{#tr}}Reactivate this user{{/tr}}{{/if}}
</a>
</li>
{{/if}}