Skip to content

Commit

Permalink
added top pages template to include more information about social net…
Browse files Browse the repository at this point in the history
…works
  • Loading branch information
Karolis Rusenas committed Jul 31, 2015
1 parent ea464a3 commit 190d45d
Show file tree
Hide file tree
Showing 3 changed files with 42 additions and 1 deletion.
2 changes: 1 addition & 1 deletion templates/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ <h1>
<section class="content">
<!-- Small boxes (Stat box) -->
<div class="row">
<div style="display:table" class="col-md-4">
<div style="display:table" class="col-md-3">
<div id="peoplesources"></div>
</div>
<div style="display:table" class="col-md-2">
Expand Down
1 change: 1 addition & 0 deletions templates/webhandler/stats.html
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{{ stats }}
40 changes: 40 additions & 0 deletions templates/webhandler/top_pages.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
<div id="data-box" class="box">

<div class="box-header with-border">
<h3 class="box-title">{{ table_title }}</h3>
</div>
<!-- /.box-header -->
<div class="box-body">
<table class="table table-condensed table-bordered">
<tbody>
<tr>

<th> Path</th>
<th> Page views</th>
<th> Unique views</th>
<th> Avg. time on page</th>
<th> Bounces</th>
<th> Ent.</th>
<th> Exits</th>
<th><i class="fa fa-fw fa-facebook-official"></i></th>
<th><i class="fa fa-fw fa-twitter"></i></th>
<th><i class="fa fa-fw fa-linkedin"></i></th>
</tr>
{% for idx, row in enumerate(data) %}
<tr>

{% for value in row %}
<td>{{ value }}</td>
{% end %}
<td>
<iframe class="center" src="/stats/fb-shares?q={{ row[0] }}" frameborder="0"></iframe>
</td>
</tr>

{% end %}

</tbody>
</table>
</div>
<!-- /.box-body -->
</div>

0 comments on commit 190d45d

Please sign in to comment.