Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: 9617d79575
Fetching contributors…

Cannot retrieve contributors at this time

file 61 lines (54 sloc) 1.679 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61
{% extends "base.html" %}

{% block extra_head %}
<style>
th, td { background-color:#efefef; padding:12px 27px; }
th { text-align:left; }
td { font-size:2.5em; font-weight:bold; }
#charts div { float:left; }
</style>
{% end %}


{% block content %}
<h1>Lookups</h1>

<p>In other words, is this app being actively used?</p>


<table>
  <tr>
    <th>Total number of usernames looked up:</th>
    <td><span id="lookups-usernames">{% module Thousands(lookups_usernames) %}</span></td>
  </tr>
  <tr>
    <th>Twitter requests total:</th>
    <td><span id="lookups-total">{% module Thousands(lookups_json + lookups_jsonp) %}</span></td>
  </tr>
  <tr>
    <th>Twitter requests by JSON:</th>
    <td><span id="lookups-json">{% module Thousands(lookups_json) %}</span></td>
  </tr>
  <tr>
    <th>Twitter requests by JSONP:</th>
    <td><span id="lookups-jsonp">{% module Thousands(lookups_jsonp) %}</span></td>
  </tr>
  <tr>
    <th>Authentications:</th>
    <td><span id="auths">{% module Thousands(auths) %}</span></td>
  </tr>
</table>
<div id="charts">
<div id="chart-jsons"></div>
<div id="chart-jsonps"></div>
<div id="chart-usernames"></div>
<div id="chart-auths"></div>
</div>
<div class="clearer">&nbsp;</div>
{% end %}

{% block extra_js %}
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.min.js"></script>
<script>
var JSON_URL = '{{ reverse_url('lookups_json') }}';
</script>
<script src="{{ static_url('js/chart.js') }}"></script>
<script src="{{ static_url('js/lookups.js') }}"></script>
<script type="text/javascript" src="https://www.google.com/jsapi"></script>
<script>
google.load("visualization", "1", {packages:["corechart"]});
</script>
{% end %}
Something went wrong with that request. Please try again.