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.

2.1 KB
Raw Blame
<div id="linkifier-settings" class="settings-section" data-name="linkifier-settings">
    <p>
        {{t "Configure regular expression patterns that will be used to
          automatically transform any matching text in Zulip messages
          and topics into links." }}
    </p>
    <p>
        {{t "Linkifiers make it easy to refer to issues or tickets in
          third party issue trackers, like GitHub, Salesforce, Zendesk,
          and others." }}
    </p>
    <p>
        {{#tr}}
            For more examples, see the <z-link>help center documentation</z-link>
            on adding linkifiers.
            {{#*inline "z-link"}}<a href="/help/add-a-custom-linkifier" target="_blank" rel="noopener noreferrer">{{> @partial-block}}</a>{{/inline}}
        {{/tr}}
    </p>

    {{#if is_admin}}
    {{> ../components/action_button
      id="add-linkifier-button"
      label=(t 'Add linkifier')
      variant="subtle"
      intent="brand"
      }}
    {{/if}}

    <div class="settings_panel_list_header">
        <h3 class="settings-table-title">{{t "Linkifiers"}}</h3>
        <div class="alert-notification edit-linkifier-status" id="linkifier-field-status"></div>
        {{> filter_text_input placeholder=(t 'Filter') aria_label=(t 'Filter linkifiers')}}
    </div>

    <div class="progressive-table-wrapper" data-simplebar data-simplebar-tab-index="-1">
        <table class="table table-striped wrapped-table admin_linkifiers_table">
            <thead class="table-sticky-headers">
                <tr>
                    <th>{{t "Example" }}</th>
                    <th>{{t "Pattern" }}</th>
                    <th>{{t "URL template" }}</th>
                    <th class="convert-url-heading">{{t "Convert" }}<i class="zulip-icon zulip-icon-link" aria-hidden="true"></i></th>
                    {{#if is_admin}}
                    <th class="actions">{{t "Actions" }}</th>
                    {{/if}}
                </tr>
            </thead>
            <tbody id="admin_linkifiers_table" data-empty="{{t 'No linkifiers configured.' }}" data-search-results-empty="{{t 'No linkifiers match your current filter.' }}"></tbody>
        </table>
    </div>
</div>