2018-01-13 19:38:30 +01:00
|
|
|
<li class="bot-information-box white-box">
|
2024-03-20 21:29:40 +01:00
|
|
|
<div class="bot-card-image overflow-hidden">
|
|
|
|
<img src="{{avatar_url}}" class="bot-card-avatar" />
|
|
|
|
<div class="bot-card-details">
|
|
|
|
<div class="bot-card-name">{{name}}</div>
|
2017-02-25 20:14:47 +01:00
|
|
|
{{#if is_active}}
|
2017-04-26 04:49:57 +02:00
|
|
|
<div class="edit-bot-buttons">
|
2024-11-14 11:03:08 +01:00
|
|
|
<button type="submit" class="bootstrap-btn open_edit_bot_form tippy-zulip-delayed-tooltip" data-sidebar-form="edit-bot" data-tippy-content="{{t 'Edit bot' }}" data-email="{{email}}">
|
2018-07-04 01:03:54 +02:00
|
|
|
<i class="fa fa-pencil blue" aria-hidden="true"></i>
|
2017-04-26 04:49:57 +02:00
|
|
|
</button>
|
2024-11-14 11:03:08 +01:00
|
|
|
<a type="submit" download="{{zuliprc}}" class="bootstrap-btn download_bot_zuliprc tippy-zulip-delayed-tooltip" data-tippy-content="{{t 'Download zuliprc' }}" data-email="{{email}}">
|
2018-07-04 01:03:54 +02:00
|
|
|
<i class="fa fa-download sea-green" aria-hidden="true"></i>
|
2017-04-26 04:49:57 +02:00
|
|
|
</a>
|
2024-11-14 11:03:08 +01:00
|
|
|
<button type="submit" id="copy_zuliprc" class="bootstrap-btn copy_zuliprc tippy-zulip-delayed-tooltip" data-tippy-content="{{t 'Copy zuliprc' }}">
|
2024-09-18 21:46:37 +02:00
|
|
|
<i class="zulip-icon zulip-icon-copy" aria-hidden="true"></i>
|
2018-06-27 09:35:30 +02:00
|
|
|
</button>
|
2024-11-14 11:03:08 +01:00
|
|
|
<button type="submit" class="bootstrap-btn deactivate_bot danger-red tippy-zulip-delayed-tooltip" data-tippy-content="{{t 'Deactivate bot' }}" data-user-id="{{user_id}}">
|
2022-03-26 08:01:27 +01:00
|
|
|
<i class="fa fa-user-times" aria-hidden="true"></i>
|
2017-04-26 04:49:57 +02:00
|
|
|
</button>
|
2024-11-14 11:03:08 +01:00
|
|
|
<button type="submit" class="bootstrap-btn open_bots_subscribed_streams tippy-zulip-delayed-tooltip" data-tippy-content="{{t 'Subscribed channels' }}" data-user-id="{{user_id}}">
|
2022-08-24 10:54:02 +02:00
|
|
|
<i class="fa fa-hashtag purple" aria-hidden="true"></i>
|
|
|
|
</button>
|
2023-06-27 11:14:31 +02:00
|
|
|
{{#if is_incoming_webhook_bot}}
|
2024-11-14 11:03:08 +01:00
|
|
|
<button type="submit" class="bootstrap-btn open-generate-integration-url-modal tippy-zulip-delayed-tooltip" data-tippy-content="{{t 'Generate URL for an integration'}}" data-api-key="{{api_key}}">
|
2023-06-27 11:14:31 +02:00
|
|
|
<i class="fa fa-link steel-blue" aria-hidden="true"></i>
|
|
|
|
</button>
|
|
|
|
{{/if}}
|
2017-04-26 04:49:57 +02:00
|
|
|
</div>
|
2017-02-25 20:14:47 +01:00
|
|
|
{{/if}}
|
2017-02-23 01:58:50 +01:00
|
|
|
</div>
|
2013-10-21 01:04:25 +02:00
|
|
|
</div>
|
2024-03-20 21:29:40 +01:00
|
|
|
<div class="bot-card-info" data-user-id="{{user_id}}">
|
|
|
|
<div class="bot-card-type">
|
|
|
|
<div class="bot-card-field">{{t "Bot type" }}</div>
|
|
|
|
<div class="bot-card-value">{{type}}</div>
|
2017-06-12 19:50:03 +02:00
|
|
|
</div>
|
2024-03-20 21:29:40 +01:00
|
|
|
<div class="bot-card-email">
|
|
|
|
<div class="bot-card-field">{{t "Bot email" }}</div>
|
|
|
|
<div class="bot-card-value">{{email}}</div>
|
2018-10-07 19:25:40 +02:00
|
|
|
</div>
|
2017-02-25 20:14:47 +01:00
|
|
|
{{#if is_active}}
|
2024-03-20 21:29:40 +01:00
|
|
|
<div class="bot-card-api-key">
|
|
|
|
<span class="bot-card-field">{{t "API key" }}</span>
|
|
|
|
<div class="bot-card-api-key-value-and-button no-select">
|
2018-01-11 11:19:32 +01:00
|
|
|
<!-- have the `.text-select` in `.no-select` so that the value doesn't have trailing whitespace. -->
|
2024-03-20 21:29:40 +01:00
|
|
|
<span class="bot-card-value text-select">{{api_key}}</span>
|
2024-11-21 14:02:03 +01:00
|
|
|
<button type="submit" class="button no-style bot-card-regenerate-bot-api-key tippy-zulip-delayed-tooltip" data-tippy-content="{{t 'Generate new API key' }}" data-user-id="{{user_id}}">
|
2018-07-04 01:03:54 +02:00
|
|
|
<i class="fa fa-refresh" aria-hidden="true"></i>
|
2017-04-26 04:49:57 +02:00
|
|
|
</button>
|
2018-06-09 20:52:15 +02:00
|
|
|
</div>
|
2024-03-20 21:29:40 +01:00
|
|
|
<div class="bot-card-api-key-error text-error"></div>
|
2017-04-26 04:49:57 +02:00
|
|
|
</div>
|
2017-02-25 22:57:06 +01:00
|
|
|
{{else}}
|
2024-11-14 12:04:50 +01:00
|
|
|
<button class="button round button-warning reactivate_bot" data-user-id="{{user_id}}">{{t "Reactivate bot" }}</button>
|
2017-02-25 20:14:47 +01:00
|
|
|
{{/if}}
|
2013-10-21 01:04:25 +02:00
|
|
|
</div>
|
2013-07-22 20:09:34 +02:00
|
|
|
</li>
|