mirror of https://github.com/zulip/zulip.git
Extract subscription_setting_icon.handlebars
(imported from commit 574f43d8479e066687312a7a232f243347bd1d7f)
This commit is contained in:
parent
b3d307b465
commit
34af2b0828
|
@ -2,11 +2,9 @@
|
|||
{{#with this}}
|
||||
<div class="subscription_row" id="subscription_{{id}}">
|
||||
<div class="subscription_table_elem subscription_header collapsed" data-toggle="collapse" data-target="#subscription_settings_{{id}}">
|
||||
{{#if invite_only}}
|
||||
<span class="subscription_lock"><i class="icon-vector-lock" style="color: {{color}}"></i></span>
|
||||
{{else}}
|
||||
<span class="color_swatch fade {{#subscribed}}in{{/subscribed}}" style="background-color: {{color}}"></span>
|
||||
{{/if}}
|
||||
<span class="subscription-setting-icon">
|
||||
{{partial "subscription_setting_icon"}}
|
||||
</span>
|
||||
<span class="subscription_block">
|
||||
<span class="subscription_name subscription-name-row">{{name}}</span>
|
||||
</span>
|
||||
|
|
|
@ -0,0 +1,5 @@
|
|||
{{#if invite_only}}
|
||||
<span class="subscription_lock"><i class="icon-vector-lock" style="color: {{color}}"></i></span>
|
||||
{{else}}
|
||||
<span class="color_swatch fade {{#subscribed}}in{{/subscribed}}" style="background-color: {{color}}"></span>
|
||||
{{/if}}
|
|
@ -417,6 +417,7 @@ function render(template_name, args) {
|
|||
|
||||
global.use_template('subscription'); // partial
|
||||
global.use_template('subscription_type'); // partial
|
||||
global.use_template('subscription_setting_icon'); // partial
|
||||
var html = '';
|
||||
html += '<div id="subscriptions_table">';
|
||||
html += render('subscription_table_body', args);
|
||||
|
|
Loading…
Reference in New Issue