2012-09-18 16:18:25 +02:00
|
|
|
{{! Client-side Mustache template for rendering subscriptions.}}
|
2012-12-12 07:09:25 +01:00
|
|
|
{{#with this}}
|
2016-10-29 00:13:19 +02:00
|
|
|
<div class="stream-row" data-stream-id="{{stream_id}}" data-stream-name="{{name}}">
|
2019-03-27 06:39:25 +01:00
|
|
|
|
|
|
|
<div class="check {{#if subscribed }}checked{{/if}} sub_unsub_button {{#unless should_display_subscription_button}}disabled{{/unless}}">
|
2017-01-17 03:26:09 +01:00
|
|
|
<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" width="100%" height="100%" viewBox="0 0 512 512" style="enable-background:new 0 0 512 512;" xml:space="preserve">
|
|
|
|
<path d="M448,71.9c-17.3-13.4-41.5-9.3-54.1,9.1L214,344.2l-99.1-107.3c-14.6-16.6-39.1-17.4-54.7-1.8 c-15.6,15.5-16.4,41.6-1.7,58.1c0,0,120.4,133.6,137.7,147c17.3,13.4,41.5,9.3,54.1-9.1l206.3-301.7 C469.2,110.9,465.3,85.2,448,71.9z"/>
|
|
|
|
</svg>
|
|
|
|
</div>
|
2016-10-29 01:58:22 +02:00
|
|
|
{{ partial "subscription_setting_icon" }}
|
|
|
|
<div class="sub-info-box">
|
|
|
|
<div class="top-bar">
|
|
|
|
<div class="stream-name">{{name}}</div>
|
2018-03-15 05:24:00 +01:00
|
|
|
<div class="subscriber-count" data-toggle="tooltip" title="{{t 'Subscriber count' }}">
|
2018-02-10 07:25:05 +01:00
|
|
|
{{partial "subscription_count"}}
|
2016-10-29 01:58:22 +02:00
|
|
|
</div>
|
2018-03-13 22:01:46 +01:00
|
|
|
</div>
|
|
|
|
<div class="bottom-bar">
|
2019-05-31 13:54:27 +02:00
|
|
|
<div class="description rendered_markdown" data-no-description="{{t 'No description.'}}">{{{rendered_description}}}</div>
|
2018-03-15 05:24:00 +01:00
|
|
|
{{#if is_old_stream}}
|
2018-06-20 23:16:42 +02:00
|
|
|
<div class="stream-message-count" data-toggle="tooltip" title="{{t 'Estimated messages per week' }}">
|
2018-03-16 00:31:32 +01:00
|
|
|
<i class="fa fa-bar-chart"></i>
|
|
|
|
<span class="stream-message-count-text">{{stream_weekly_traffic}}</span>
|
2018-03-15 05:24:00 +01:00
|
|
|
</div>
|
|
|
|
{{else}}
|
|
|
|
<div class="stream-message-count" data-toggle="tooltip" title="{{t 'Stream created recently' }}">
|
2018-03-16 00:31:32 +01:00
|
|
|
<span class="stream-message-count-text">{{t "New" }}</span>
|
2017-04-03 17:13:42 +02:00
|
|
|
</div>
|
2018-03-15 05:24:00 +01:00
|
|
|
{{/if}}
|
2016-10-29 01:58:22 +02:00
|
|
|
</div>
|
|
|
|
</div>
|
2013-11-08 10:12:05 +01:00
|
|
|
</div>
|
2012-12-12 07:09:25 +01:00
|
|
|
{{/with}}
|