2012-09-18 16:18:25 +02:00
{{! Client-side Mustache template for rendering subscriptions.}}
2012-12-12 07:09:25 +01:00
{{#each subscriptions}}
{{#with this}}
2013-01-04 20:42:39 +01:00
< tr class = "subscription_row" id = "subscription_{{id}}" >
2012-11-09 22:40:34 +01:00
< td >
2013-01-23 19:10:51 +01:00
< div class = "subscription_table_elem subscription_header" data-toggle = "collapse" data-target = "#subscription_settings_{{id}}" >
2013-01-26 00:04:18 +01:00
< span class = "color_swatch fade {{#subscribed}}in{{/subscribed}}" style = "background-color: {{color}}" > < / span >
2013-01-04 21:05:18 +01:00
< span class = "subscription_name" > {{name}}< / span >
2013-02-05 21:15:16 +01:00
{{#if invite_only}}< i class = "icon-lock" > < / i > {{/if}}
2013-01-23 18:28:25 +01:00
< button class = "btn sub_unsub_button {{^subscribed}}btn-primary{{/subscribed}}"
2013-01-23 17:41:04 +01:00
type="button" name="subscription">
{{#subscribed}}
Unsubscribe
{{/subscribed}}
{{^subscribed}}
Subscribe
{{/subscribed}}
< / button >
2013-01-04 21:05:18 +01:00
< / div >
< div id = "subscription_settings_{{id}}" class = "collapse subscription_settings" >
2013-01-26 00:04:18 +01:00
< div class = "regular_subscription_settings collapse {{#subscribed}}in{{/subscribed}}" >
2013-03-11 20:30:37 +01:00
< p > This is a
{{#if invite_only}}< span class = "icon-lock" > < / span > < b > invite-only stream< / b > . Only people who have been invited can access its content, but any member of the stream can invite others.
2013-03-13 18:50:45 +01:00
{{else}}< span class = "icon-globe" > < / span > < b > public stream< / b > . Anybody in your organization can join.{{/if}}
2013-03-11 20:30:37 +01:00
< / p >
2013-01-23 22:08:34 +01:00
< span class = "sub_settings_title" > Settings< / span >
< ul >
2013-02-12 22:32:14 +01:00
< li > < div class = "sub_setting_show_in_home" >
< input class = "sub_setting_show_in_home_cb" type = "checkbox" name = "Include in home" value = "in_home_view" { { # if in_home_view } } checked { { / if } } / >
< span class = "sub_setting_show_in_home_label" > Include in home view< / span > < / div >
< / li >
2013-01-23 22:08:34 +01:00
< li > < span class = "sub_setting_control" > < input class = "colorpicker" type = "text" value = "{{color}}" / > < / span >
Stream color
2013-02-12 22:32:14 +01:00
< / li >
2013-01-23 22:08:34 +01:00
< / ul >
< / div >
2013-01-07 22:18:47 +01:00
{{#render_subscribers}}
2013-01-23 22:08:34 +01:00
< div class = "subscriber_list_settings" >
2013-01-14 22:21:58 +01:00
< span class = "sub_settings_title" > Members< / span >
2013-01-10 19:33:56 +01:00
< div class = "subscriber_list_add" >
< form class = "form-inline" >
2013-03-05 16:45:21 +01:00
< input type = "text" name = "principal" placeholder = "Email address" value = "" class = "input-block" / >
2013-01-10 19:33:56 +01:00
< input type = "submit" name = "add_subscriber" value = "Add" class = "btn btn-primary" / >
< / form >
< / div >
< / div >
2013-01-07 22:09:33 +01:00
< div class = "subscriber_list_container" >
2013-01-16 22:02:49 +01:00
< div class = "subscriber_list_loading_indicator" > < / div >
2013-01-07 22:09:33 +01:00
< div class = "alert alert-error hide" > < / div >
2013-01-10 19:33:56 +01:00
< div class = "alert alert-warning hide" > < / div >
2013-01-07 22:09:33 +01:00
< ul >
< / ul >
< / div >
2013-01-07 22:18:47 +01:00
{{/render_subscribers}}
2013-01-04 21:05:18 +01:00
< / div >
2012-09-21 20:34:00 +02:00
< / td >
2012-09-18 16:18:25 +02:00
< / tr >
2012-12-12 07:09:25 +01:00
{{/with}}
{{/each}}