Extract subscription_type.handlebars

(imported from commit 1a16ed0d51dae23f830043f52046c8fb50f91a48)
This commit is contained in:
Steve Howell
2014-01-03 12:06:55 -05:00
parent 2079cb995a
commit b3d307b465
3 changed files with 5 additions and 3 deletions

View File

@@ -25,9 +25,7 @@
<div id="subscription_settings_{{id}}" class="collapse subscription_settings"> <div id="subscription_settings_{{id}}" class="collapse subscription_settings">
<div class="regular_subscription_settings collapse {{#subscribed}}in{{/subscribed}}"> <div class="regular_subscription_settings collapse {{#subscribed}}in{{/subscribed}}">
<div class="subscription-type"> <div class="subscription-type">
This is {{partial "subscription_type"}}
{{#if invite_only}}an <span class="icon-vector-lock"></span> <b>invite-only stream</b>. Only people who have been invited can access its content, but&nbsp;any&nbsp;member&nbsp;of&nbsp;the&nbsp;stream can&nbsp;invite&nbsp;others.
{{else}}a <span class="icon-vector-globe"></span> <b>public stream</b>. Anybody in your organization can join.{{/if}}
</div> </div>
<div class="subscription-config"> <div class="subscription-config">
<ul> <ul>

View File

@@ -0,0 +1,3 @@
This is
{{#if invite_only}}an <span class="icon-vector-lock"></span> <b>invite-only stream</b>. Only people who have been invited can access its content, but&nbsp;any&nbsp;member&nbsp;of&nbsp;the&nbsp;stream can&nbsp;invite&nbsp;others.
{{else}}a <span class="icon-vector-globe"></span> <b>public stream</b>. Anybody in your organization can join.{{/if}}

View File

@@ -416,6 +416,7 @@ function render(template_name, args) {
}; };
global.use_template('subscription'); // partial global.use_template('subscription'); // partial
global.use_template('subscription_type'); // partial
var html = ''; var html = '';
html += '<div id="subscriptions_table">'; html += '<div id="subscriptions_table">';
html += render('subscription_table_body', args); html += render('subscription_table_body', args);