2018-01-13 19:38:30 +01:00
|
|
|
<li class="bot-information-box white-box">
|
2017-02-23 01:58:50 +01:00
|
|
|
<div class="image overflow-hidden">
|
2013-10-21 01:04:25 +02:00
|
|
|
<img src="{{avatar_url}}" class="avatar" />
|
2017-02-23 01:58:50 +01:00
|
|
|
<div class="details">
|
|
|
|
<div class="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">
|
|
|
|
<button type="submit" class="btn open_edit_bot_form" data-sidebar-form="edit-bot" title="{{t 'Edit bot' }}" data-email="{{email}}">
|
|
|
|
<i class="icon-vector-pencil blue"></i>
|
|
|
|
</button>
|
2017-11-21 00:49:55 +01:00
|
|
|
<a type="submit" download="{{zuliprc}}" class="btn download_bot_zuliprc" title="{{t 'Download zuliprc' }}" data-email="{{email}}">
|
2017-04-26 04:49:57 +02:00
|
|
|
<i class="icon-vector-download-alt sea-green"></i>
|
|
|
|
</a>
|
2018-06-27 09:35:30 +02:00
|
|
|
<button type="submit" id="copy_zuliprc" class="btn copy_zuliprc" title="{{t 'Copy zuliprc' }}">
|
|
|
|
<i class="fa fa-clipboard copy-gold"></i>
|
|
|
|
</button>
|
2018-05-15 15:26:04 +02:00
|
|
|
<button type="submit" class="btn delete_bot" title="{{t 'Delete bot' }}" data-user-id="{{user_id}}">
|
2017-04-26 04:49:57 +02:00
|
|
|
<i class="icon-vector-trash danger-red"></i>
|
|
|
|
</button>
|
|
|
|
</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>
|
2018-04-28 19:23:46 +02:00
|
|
|
<div class="bot_info" data-user-id="{{user_id}}">
|
2013-10-21 01:04:25 +02:00
|
|
|
<div class="email">
|
2017-02-23 01:58:50 +01:00
|
|
|
<div class="field">{{t "Username" }}</div>
|
|
|
|
<div class="value">{{email}}</div>
|
2013-10-21 01:04:25 +02:00
|
|
|
</div>
|
2017-06-12 19:50:03 +02:00
|
|
|
<div class="type">
|
|
|
|
<div class="field">{{t "Bot type" }}</div>
|
|
|
|
<div class="value">{{type}}</div>
|
|
|
|
</div>
|
2017-02-25 20:14:47 +01:00
|
|
|
{{#if is_active}}
|
2017-04-26 04:49:57 +02:00
|
|
|
<div class="api_key">
|
|
|
|
<span class="field">{{t "API key" }}</span>
|
2018-06-09 20:52:15 +02:00
|
|
|
<div class="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. -->
|
|
|
|
<span class="value text-select">{{api_key}}</span>
|
2018-05-15 18:13:07 +02:00
|
|
|
<button type="submit" class="button no-style btn-secondary regenerate_bot_api_key" title="{{t 'Generate new API key' }}" data-user-id="{{user_id}}">
|
2017-04-26 04:49:57 +02:00
|
|
|
<i class="icon-vector-refresh"></i>
|
|
|
|
</button>
|
2018-06-09 20:52:15 +02:00
|
|
|
</div>
|
2017-04-26 04:49:57 +02:00
|
|
|
<div class="api_key_error text-error"></div>
|
|
|
|
</div>
|
2017-02-25 22:57:06 +01:00
|
|
|
{{else}}
|
2018-07-02 21:42:57 +02:00
|
|
|
<button class="button round btn-warning reactivate_bot" title="{{t 'Reactivate bot' }}" data-user-id="{{user_id}}">{{t "Reactivate bot" }}</button>
|
2017-02-25 20:14:47 +01:00
|
|
|
{{/if}}
|
2018-07-02 21:19:18 +02:00
|
|
|
<div class="bot_error alert alert-error hide"></div>
|
2013-10-21 01:04:25 +02:00
|
|
|
</div>
|
2013-07-22 20:09:34 +02:00
|
|
|
</li>
|