Updated clicks view

This commit is contained in:
Andris Reinman 2016-05-13 15:57:16 +03:00
parent 54ff4169d9
commit 4461b6d612
2 changed files with 35 additions and 31 deletions

View file

@ -420,7 +420,8 @@ router.post('/clicked/ajax/:id/:linkId', (req, res) => {
htmlescape(row.firstName || ''), htmlescape(row.firstName || ''),
htmlescape(row.lastName || ''), htmlescape(row.lastName || ''),
row.created && row.created.toISOString ? '<span class="datestring" data-date="' + row.created.toISOString() + '" title="' + row.created.toISOString() + '">' + row.created.toISOString() + '</span>' : 'N/A', row.created && row.created.toISOString ? '<span class="datestring" data-date="' + row.created.toISOString() + '" title="' + row.created.toISOString() + '">' + row.created.toISOString() + '</span>' : 'N/A',
row.count row.count,
'<span class="glyphicon glyphicon-wrench" aria-hidden="true"></span><a href="/lists/subscription/' + campaign.list + '/edit/' + row.cid + '">Edit</a>'
]) ])
}); });
}); });

View file

@ -33,7 +33,7 @@
</th> </th>
</thead> </thead>
<tbody> <tbody>
<tr> <tr class="success">
<td> <td>
<a href="{{link.url}}">{{link.short}}</a> <a href="{{link.url}}">{{link.short}}</a>
</td> </td>
@ -50,11 +50,12 @@
</tbody> </tbody>
</table> </table>
<h3>Subscribers that clicked on <a href="{{link.url}}">{{link.short}}</a></h3> <div class="panel panel-info">
<hr /> <!-- Default panel contents -->
<div class="panel-heading">Subscribers who clicked on this link:</div>
<div class="panel-body">
<div class="table-responsive"> <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"> <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> <thead>
<tr> <tr>
<th class="col-md-1"> <th class="col-md-1">
@ -75,9 +76,11 @@
<th> <th>
Click count Click count
</th> </th>
<th></th>
</tr> </tr>
</thead> </thead>
</table> </table>
</div> </div>
</div>
</div>
</div> </div>