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,34 +50,37 @@
</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="table-responsive"> <div class="panel-body">
<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"> <div class="table-responsive">
<thead> <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">
<tr> <thead>
<th class="col-md-1"> <tr>
# <th class="col-md-1">
</th> #
<th> </th>
Address <th>
</th> Address
<th> </th>
First Name <th>
</th> First Name
<th> </th>
Last Name <th>
</th> Last Name
<th> </th>
First click <th>
</th> First click
<th> </th>
Click count <th>
</th> Click count
</tr> </th>
</thead> <th></th>
</table> </tr>
</thead>
</table>
</div>
</div>
</div> </div>
</div> </div>