mirror of https://github.com/zulip/zulip.git
Clean realm-filter-settings-admin.handlebars to use 4 space indents.
This commit is contained in:
parent
d5bb128f56
commit
73cd6948de
|
@ -1,64 +1,64 @@
|
|||
<div id="filter-settings" class="settings-section" data-name="filter-settings">
|
||||
<div class="settings-section-title"><i class="icon-vector-filter settings-section-icon"></i>{{t "Custom linkification filters" }}</div>
|
||||
<div class="admin-table-wrapper">
|
||||
<div class="settings-section-title"><i class="icon-vector-filter settings-section-icon"></i>{{t "Custom linkification filters" }}</div>
|
||||
<div class="admin-table-wrapper">
|
||||
|
||||
<p>
|
||||
{{#tr this}}
|
||||
Configure regular expression patterns that will be
|
||||
automatically linkified when used in Zulip message bodies or
|
||||
topics. For example to automatically linkify commit IDs and
|
||||
issue numbers (e.g. #123) to the corresponding items in a GitHub
|
||||
project, you could use the following:
|
||||
{{/tr}}
|
||||
</p>
|
||||
<ul>
|
||||
<li>
|
||||
<code>#(?P<id>[0-9]+)</code>
|
||||
{{t "and" }}
|
||||
<code>https://github.com/zulip/zulip/issues/%(id)s</code>
|
||||
</li>
|
||||
<li>
|
||||
<code>(?P<id>[0-9a-f]{40})</code>
|
||||
{{t "and" }}
|
||||
<code>https://github.com/zulip/zulip/commit/%(id)s</code>
|
||||
</li>
|
||||
</ul>
|
||||
<p>
|
||||
{{#tr this}}
|
||||
Configure regular expression patterns that will be
|
||||
automatically linkified when used in Zulip message bodies or
|
||||
topics. For example to automatically linkify commit IDs and
|
||||
issue numbers (e.g. #123) to the corresponding items in a GitHub
|
||||
project, you could use the following:
|
||||
{{/tr}}
|
||||
</p>
|
||||
<ul>
|
||||
<li>
|
||||
<code>#(?P<id>[0-9]+)</code>
|
||||
{{t "and" }}
|
||||
<code>https://github.com/zulip/zulip/issues/%(id)s</code>
|
||||
</li>
|
||||
<li>
|
||||
<code>(?P<id>[0-9a-f]{40})</code>
|
||||
{{t "and" }}
|
||||
<code>https://github.com/zulip/zulip/commit/%(id)s</code>
|
||||
</li>
|
||||
</ul>
|
||||
|
||||
<table class="table table-condensed table-striped admin_filters_table">
|
||||
<tbody id="admin_filters_table">
|
||||
<th>{{t "Pattern" }}</th>
|
||||
<th>{{t "URL format string" }}</th>
|
||||
{{#if is_admin}}
|
||||
<th>{{t "Actions" }}</th>
|
||||
{{/if}}
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
{{#if is_admin}}
|
||||
<table class="table table-condensed table-striped admin_filters_table">
|
||||
<tbody id="admin_filters_table">
|
||||
<th>{{t "Pattern" }}</th>
|
||||
<th>{{t "URL format string" }}</th>
|
||||
{{#if is_admin}}
|
||||
<th>{{t "Actions" }}</th>
|
||||
{{/if}}
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
{{#if is_admin}}
|
||||
<form class="form-horizontal admin-filter-form">
|
||||
<div class="add-new-filter-box grey-bg green-bg">
|
||||
<div class="new-filter-form">
|
||||
<div class="settings-section-title new-filter-section-title">{{t "Add a new filter" }}</div>
|
||||
<div class="alert" id="admin-filter-status"></div>
|
||||
<div class="control-group">
|
||||
<label for="filter_pattern" class="control-label">{{t "Regular expression" }}</label>
|
||||
<input type="text" id="filter_pattern" name="pattern" placeholder="#(?P<id>[0-9]+)" />
|
||||
<div class="alert" id="admin-filter-pattern-status"></div>
|
||||
</div>
|
||||
<div class="control-group">
|
||||
<label for="filter_format_string" class="control-label">{{t "URL format string" }}</label>
|
||||
<input type="text" id="filter_format_string" name="url_format_string" placeholder="https://github.com/zulip/zulip/issues/%(id)s" />
|
||||
<div class="alert" id="admin-filter-format-status"></div>
|
||||
</div>
|
||||
<div class="control-group">
|
||||
<div class="controls">
|
||||
<button type="submit" class="button white rounded sea-green">
|
||||
{{t 'Add filter' }}
|
||||
</button>
|
||||
<div class="add-new-filter-box grey-bg green-bg">
|
||||
<div class="new-filter-form">
|
||||
<div class="settings-section-title new-filter-section-title">{{t "Add a new filter" }}</div>
|
||||
<div class="alert" id="admin-filter-status"></div>
|
||||
<div class="control-group">
|
||||
<label for="filter_pattern" class="control-label">{{t "Regular expression" }}</label>
|
||||
<input type="text" id="filter_pattern" name="pattern" placeholder="#(?P<id>[0-9]+)" />
|
||||
<div class="alert" id="admin-filter-pattern-status"></div>
|
||||
</div>
|
||||
<div class="control-group">
|
||||
<label for="filter_format_string" class="control-label">{{t "URL format string" }}</label>
|
||||
<input type="text" id="filter_format_string" name="url_format_string" placeholder="https://github.com/zulip/zulip/issues/%(id)s" />
|
||||
<div class="alert" id="admin-filter-format-status"></div>
|
||||
</div>
|
||||
<div class="control-group">
|
||||
<div class="controls">
|
||||
<button type="submit" class="button white rounded sea-green">
|
||||
{{t 'Add filter' }}
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
{{/if}}
|
||||
{{/if}}
|
||||
</div>
|
||||
|
|
|
@ -223,7 +223,6 @@ def check_handlebar_templates(templates):
|
|||
'static/templates/settings/bot-list-admin.handlebars',
|
||||
'static/templates/settings/default-streams-list-admin.handlebars',
|
||||
'static/templates/settings/organization-settings-admin.handlebars',
|
||||
'static/templates/settings/realm-filter-settings-admin.handlebars',
|
||||
'static/templates/settings/ui-settings.handlebars',
|
||||
'static/templates/settings/user-list-admin.handlebars',
|
||||
]
|
||||
|
|
Loading…
Reference in New Issue