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.

3.3 KB
Raw Blame
<tr class="user_row{{#if is_active}} active-user{{else}} deactivated_user{{/if}}" data-user-id="{{user_id}}">
    <td class="user_name panel_user_list">
        {{> ../user_display_only_pill display_value=full_name user_id=user_id is_bot=true img_src=img_src is_active=is_active is_current_user=false}}
    </td>
    <td class="email settings-email-column">
        <span class="email">{{display_email}}</span>
    </td>
    <td>
        <span class="user_role">{{user_role_text}}</span>
    </td>
    <td>
        <span class="owner panel_user_list">
            {{#if no_owner}}
            {{bot_owner_full_name}}
            {{else}}
            {{> ../user_display_only_pill display_value=bot_owner_full_name user_id=bot_owner_id img_src=owner_img_src is_active=is_bot_owner_active}}
            {{/if}}
        </span>
    </td>
    <td class="bot_type">
        <span class="bot type">{{bot_type}}</span>
    </td>
    <td class="actions">
        <span class="user-status-settings">
            {{#if show_download_zuliprc_button}}
            <a type="submit" download="zuliprc" data-user-id="{{user_id}}" class="hidden-zuliprc-download" hidden></a>
            <span class="tippy-zulip-delayed-tooltip" data-tippy-content="{{t 'Download zuliprc'}}">
                {{> ../components/icon_button
                  icon="download"
                  intent="neutral"
                  custom_classes="download-bot-zuliprc-button"
                  }}
            </span>
            {{/if}}
            {{#if show_generate_integration_url_button}}
            <span class="tippy-zulip-delayed-tooltip" data-tippy-content="{{t 'Generate URL for integration'}}">
                {{> ../components/icon_button
                  icon="link-2"
                  intent="neutral"
                  custom_classes="generate-integration-url-button"
                  }}
            </span>
            {{/if}}
            {{#if show_manage_buttons}}
            <span class="{{#if cannot_edit}}tippy-zulip-tooltip{{else}}tippy-zulip-delayed-tooltip{{/if}}"
              {{#if cannot_edit}}
              data-tippy-content="{{t 'This bot cannot be managed.'}}"
              {{else}}
              data-tippy-content="{{t 'Manage bot'}}"
              {{/if}}>
                {{> ../components/icon_button
                  icon="user-cog"
                  intent="neutral"
                  custom_classes="open-user-form manage-user-button"
                  disabled=cannot_edit
                  }}
            </span>
            {{#if is_active}}
            <span class="deactivate-bot-tooltip {{#if cannot_deactivate}}tippy-zulip-tooltip{{/if}}"
              {{#if cannot_deactivate}}data-tippy-content="{{t 'This bot cannot be deactivated.'}}"{{/if}}>
                {{> ../components/icon_button
                  icon="user-x"
                  intent="danger"
                  custom_classes="deactivate"
                  disabled=cannot_deactivate
                  }}
            </span>
            {{else}}
            <span class="reactivate-bot-tooltip">
                {{> ../components/icon_button
                  icon="user-plus"
                  intent="success"
                  custom_classes="reactivate"
                  }}
            </span>
            {{/if}}
            {{/if}}
        </span>
    </td>
</tr>