mirror of
https://github.com/zulip/zulip.git
synced 2025-11-19 14:08:23 +00:00
linkifier-settings: Remove unnecessary div.
The div element has no classes and thus is not used to apply any CSS or anything, so this commit removes it.
This commit is contained in:
@@ -1,78 +1,75 @@
|
|||||||
<div id="linkifier-settings" class="settings-section" data-name="linkifier-settings">
|
<div id="linkifier-settings" class="settings-section" data-name="linkifier-settings">
|
||||||
<div>
|
<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. For instance, you can add a linkifier that
|
||||||
|
automatically turns #2468 into a link to the GitHub issue
|
||||||
|
in the Zulip repository with:" }}
|
||||||
|
</p>
|
||||||
|
<ul>
|
||||||
|
<li>
|
||||||
|
{{t "Pattern" }}: <span class="rendered_markdown"><code>#(?P<id>[0-9]+)</code></span>
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
{{t "URL template" }}: <span class="rendered_markdown"><code>https://github.com/zulip/zulip/issues/{id}</code></span>
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
<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>
|
||||||
|
|
||||||
<p>
|
{{#if is_admin}}
|
||||||
{{t "Configure regular expression patterns that will be used to
|
<form class="admin-linkifier-form">
|
||||||
automatically transform any matching text in Zulip messages
|
<div class="add-new-linkifier-box grey-box">
|
||||||
and topics into links." }}
|
<div class="new-linkifier-form wrapper">
|
||||||
</p>
|
<div class="settings-section-title new-linkifier-section-title">
|
||||||
<p>
|
{{t "Add a new linkifier" }}
|
||||||
{{t "Linkifiers make it easy to refer to issues or tickets in
|
{{> ../help_link_widget link="/help/add-a-custom-linkifier" }}
|
||||||
third party issue trackers, like GitHub, Salesforce, Zendesk,
|
|
||||||
and others. For instance, you can add a linkifier that
|
|
||||||
automatically turns #2468 into a link to the GitHub issue
|
|
||||||
in the Zulip repository with:" }}
|
|
||||||
</p>
|
|
||||||
<ul>
|
|
||||||
<li>
|
|
||||||
{{t "Pattern" }}: <span class="rendered_markdown"><code>#(?P<id>[0-9]+)</code></span>
|
|
||||||
</li>
|
|
||||||
<li>
|
|
||||||
{{t "URL template" }}: <span class="rendered_markdown"><code>https://github.com/zulip/zulip/issues/{id}</code></span>
|
|
||||||
</li>
|
|
||||||
</ul>
|
|
||||||
<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}}
|
|
||||||
<form class="admin-linkifier-form">
|
|
||||||
<div class="add-new-linkifier-box grey-box">
|
|
||||||
<div class="new-linkifier-form wrapper">
|
|
||||||
<div class="settings-section-title new-linkifier-section-title">
|
|
||||||
{{t "Add a new linkifier" }}
|
|
||||||
{{> ../help_link_widget link="/help/add-a-custom-linkifier" }}
|
|
||||||
</div>
|
|
||||||
<div class="alert" id="admin-linkifier-status"></div>
|
|
||||||
<div class="input-group">
|
|
||||||
<label for="linkifier_pattern">{{t "Pattern" }}</label>
|
|
||||||
<input type="text" id="linkifier_pattern" class="settings_text_input" name="pattern" placeholder="#(?P<id>[0-9]+)" />
|
|
||||||
<div class="alert" id="admin-linkifier-pattern-status"></div>
|
|
||||||
</div>
|
|
||||||
<div class="input-group">
|
|
||||||
<label for="linkifier_template">{{t "URL template" }}</label>
|
|
||||||
<input type="text" id="linkifier_template" class="settings_text_input" name="url_template" placeholder="https://github.com/zulip/zulip/issues/{id}" />
|
|
||||||
<div class="alert" id="admin-linkifier-template-status"></div>
|
|
||||||
</div>
|
|
||||||
<button type="submit" class="button rounded sea-green">
|
|
||||||
{{t 'Add linkifier' }}
|
|
||||||
</button>
|
|
||||||
</div>
|
</div>
|
||||||
|
<div class="alert" id="admin-linkifier-status"></div>
|
||||||
|
<div class="input-group">
|
||||||
|
<label for="linkifier_pattern">{{t "Pattern" }}</label>
|
||||||
|
<input type="text" id="linkifier_pattern" class="settings_text_input" name="pattern" placeholder="#(?P<id>[0-9]+)" />
|
||||||
|
<div class="alert" id="admin-linkifier-pattern-status"></div>
|
||||||
|
</div>
|
||||||
|
<div class="input-group">
|
||||||
|
<label for="linkifier_template">{{t "URL template" }}</label>
|
||||||
|
<input type="text" id="linkifier_template" class="settings_text_input" name="url_template" placeholder="https://github.com/zulip/zulip/issues/{id}" />
|
||||||
|
<div class="alert" id="admin-linkifier-template-status"></div>
|
||||||
|
</div>
|
||||||
|
<button type="submit" class="button rounded sea-green">
|
||||||
|
{{t 'Add linkifier' }}
|
||||||
|
</button>
|
||||||
</div>
|
</div>
|
||||||
</form>
|
|
||||||
{{/if}}
|
|
||||||
|
|
||||||
<div class="settings_panel_list_header">
|
|
||||||
<h3>{{t "Linkifiers"}}</h3>
|
|
||||||
<div class="alert-notification edit-linkifier-status" id="linkifier-field-status"></div>
|
|
||||||
<input type="text" class="search filter_text_input" placeholder="{{t 'Filter linkifiers' }}" aria-label="{{t 'Filter linkifiers' }}"/>
|
|
||||||
</div>
|
</div>
|
||||||
|
</form>
|
||||||
|
{{/if}}
|
||||||
|
|
||||||
<div class="progressive-table-wrapper" data-simplebar data-simplebar-tab-index="-1">
|
<div class="settings_panel_list_header">
|
||||||
<table class="table table-striped wrapped-table admin_linkifiers_table">
|
<h3>{{t "Linkifiers"}}</h3>
|
||||||
<thead class="table-sticky-headers">
|
<div class="alert-notification edit-linkifier-status" id="linkifier-field-status"></div>
|
||||||
<th>{{t "Pattern" }}</th>
|
<input type="text" class="search filter_text_input" placeholder="{{t 'Filter linkifiers' }}" aria-label="{{t 'Filter linkifiers' }}"/>
|
||||||
<th>{{t "URL template" }}</th>
|
</div>
|
||||||
{{#if is_admin}}
|
|
||||||
<th class="actions">{{t "Actions" }}</th>
|
<div class="progressive-table-wrapper" data-simplebar data-simplebar-tab-index="-1">
|
||||||
{{/if}}
|
<table class="table table-striped wrapped-table admin_linkifiers_table">
|
||||||
</thead>
|
<thead class="table-sticky-headers">
|
||||||
<tbody id="admin_linkifiers_table" data-empty="{{t 'No linkifiers configured.' }}" data-search-results-empty="{{t 'No linkifiers match your current filter.' }}"></tbody>
|
<th>{{t "Pattern" }}</th>
|
||||||
</table>
|
<th>{{t "URL template" }}</th>
|
||||||
</div>
|
{{#if is_admin}}
|
||||||
|
<th class="actions">{{t "Actions" }}</th>
|
||||||
|
{{/if}}
|
||||||
|
</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>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user