mailtrain/views/campaigns/clicked.hbs

127 lines
5.1 KiB
Handlebars
Raw Normal View History

2016-05-13 12:32:29 +00:00
<ol class="breadcrumb">
2017-03-07 14:30:56 +00:00
<li><a href="/">{{#translate}}Home{{/translate}}</a></li>
<li><a href="/campaigns">{{#translate}}Campaigns{{/translate}}</a></li>
2016-05-13 12:32:29 +00:00
{{#if parent}}
<li><a href="/campaigns/view/{{parent.id}}">{{parent.name}}</a></li>
{{/if}}
<li><a href="/campaigns/view/{{id}}">{{name}}</a></li>
2017-03-07 14:30:56 +00:00
<li class="active">{{#translate}}Link info{{/translate}}</li>
2016-05-13 12:32:29 +00:00
</ol>
2017-03-07 14:30:56 +00:00
<h2><span class="glyphicon glyphicon-inbox" aria-hidden="true"></span> {{name}} <small>{{#translate}}Link info{{/translate}}</small> <a class="btn btn-default btn-xs" href="/campaigns/view/{{id}}?tab=links" role="button"><span class="glyphicon glyphicon-arrow-left" aria-hidden="true"></span> {{#translate}}View campaign{{/translate}}</a></h2>
2016-05-13 12:32:29 +00:00
<hr>
{{#if description}}
<div class="well well-sm">{{{description}}}</div>
{{/if}}
<div class="table-responsive">
<table class="table table-bordered table-hover">
<thead>
<th>
2017-03-07 14:30:56 +00:00
{{#translate}}URL{{/translate}}
2016-05-13 12:32:29 +00:00
</th>
<th class="col-md-1">
2017-03-07 14:30:56 +00:00
{{#translate}}Clicks{{/translate}}
2016-05-13 12:32:29 +00:00
</th>
<th class="col-md-1">
2017-03-07 14:30:56 +00:00
{{#translate}}% of clicks{{/translate}}
2016-05-13 12:32:29 +00:00
</th>
<th class="col-md-1">
2017-03-07 14:30:56 +00:00
{{#translate}}% of messages{{/translate}}
2016-05-13 12:32:29 +00:00
</th>
</thead>
<tbody>
2016-05-13 12:57:16 +00:00
<tr class="success">
2016-05-13 18:08:44 +00:00
{{#if aggregated}}
<th>
2017-03-07 14:30:56 +00:00
{{#translate}}Aggregated clicks{{/translate}}
2016-05-13 18:08:44 +00:00
</th>
<th>
{{clicks}}
</th>
<th>
</th>
<th>
CTR {{clicksRate}}%
</th>
{{else}}
<td>
<a href="{{link.url}}">{{link.short}}</a>
</td>
<td>
{{link.clicks}}
</td>
<td>
{{link.relPercentage}}
</td>
<td>
{{link.totalPercentage}}
</td>
{{/if}}
2016-05-13 12:32:29 +00:00
</tr>
</tbody>
</table>
2016-05-13 12:57:16 +00:00
<div class="panel panel-info">
<!-- Default panel contents -->
2017-03-07 14:30:56 +00:00
<div class="panel-heading">{{#if aggregated}}{{#translate}}Subscribers who clicked on a link:{{/translate}}{{else}}{{#translate}}Subscribers who clicked on this link:{{/translate}}{{/if}}</div>
2016-05-13 12:57:16 +00:00
<div class="panel-body">
{{#if aggregated}}{{else}}
<div class="table-responsive">
<script type="text/javascript" src="https://www.gstatic.com/charts/loader.js"></script>
<table class="table table-bordered table-hover data-piechart-ajax display nowrap">
<thead>
<tr>
<th>
{{#translate}}Stats by country{{/translate}}
</th>
<th>
{{#translate}}Stats by device type{{/translate}}
</th>
</tr>
<tr>
<th>
<div class="data-stats-pie-chart" data-topic-url="/campaigns/clicked" data-column="country" data-topic-id="{{id}}/{{link.id}}"></div>
</th>
<th>
<div class="data-stats-pie-chart" data-topic-url="/campaigns/clicked" data-column="device_type" data-topic-id="{{id}}/{{link.id}}"></div>
</th>
</tr>
</thead>
</table>
</div>
{{/if}}
2016-05-13 12:57:16 +00:00
<div class="table-responsive">
<table data-topic-url="/campaigns/clicked" data-topic-id="{{id}}/{{link.id}}" data-sort-column="1" data-sort-order="asc" class="table table-bordered table-hover data-table-ajax display nowrap" width="100%" data-row-sort="0,1,1,1,1,1,0">
<thead>
<tr>
<th class="col-md-1">
#
</th>
<th>
2017-03-07 14:30:56 +00:00
{{#translate}}Address{{/translate}}
2016-05-13 12:57:16 +00:00
</th>
<th>
2017-03-07 14:30:56 +00:00
{{#translate}}First Name{{/translate}}
2016-05-13 12:57:16 +00:00
</th>
<th>
2017-03-07 14:30:56 +00:00
{{#translate}}Last Name{{/translate}}
2016-05-13 12:57:16 +00:00
</th>
<th>
2017-03-07 14:30:56 +00:00
{{#translate}}First click time{{/translate}}
2016-05-13 12:57:16 +00:00
</th>
<th>
2017-03-07 14:30:56 +00:00
{{#translate}}Click count{{/translate}}
2016-05-13 12:57:16 +00:00
</th>
<th></th>
</tr>
</thead>
</table>
</div>
</div>
2016-05-13 12:32:29 +00:00
</div>
</div>