mirrorrr / main.html

Full commit
<!DOCTYPE html>
<html lang="en">
    <meta charset="utf-8">
    <title>Ron's Private Mirror Service</title>
    <meta name="description" content="Mirrors the content of URLs you supply">
    <meta name="author" content="Ron Huang">

    <!-- Le HTML5 shim, for IE6-8 support of HTML elements -->
    <!--[if lt IE 9]>
      <script src=""></script>

    <!-- Le styles -->
    <link rel="stylesheet" href="static/bootstrap.min.css">
    <link rel="stylesheet" href="static/base.css" type="text/css">

    <!-- Le fav and touch icons -->
    <link rel="shortcut icon" href="/favicon.ico">

    <script type="text/javascript">
      var _gaq = _gaq || [];
      _gaq.push(['_setAccount', 'UA-7044154-11']);

      (function() {
        var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
        ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '';
        var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);


    <div class="topbar">
      <div class="fill">
        <div class="container">
          <a class="brand" href="/">Mirror</a>
          <ul class="nav">
            <li class="active"><a href="/">Home</a></li>
            <li><a href="/admin">Admin</a></li>

    <div class="container">

      <div class="content">
        <div class="page-header">
          <h1>Home <small>Mirrors the content of URLs you supply</small></h1>
        <div class="row">
          <div class="span9">
            <form action="" method="get" accept-charset="utf-8">
                <div class="clearfix">
                  <label for="url">URL to mirror</label>
                  <div class="input">
                    <div class="input-prepend">
                      <span class="add-on">http://</span>
                      <input class="xlarge" id="url" name="url" size="30" type="text" placeholder="Type URL here...">
                    <span class="help-block">
                      All content belongs to the original copyright holders.
                <div class="actions">
                  <input type="submit" class="btn" value="Go">
          <div class="span5">
            <div id="recent_entries">
                {% for entry in latest_urls %}
                  <div class="url">
                    <a class="url{{forloop.counter}}" rel="nofollow" href="/{{entry.translated_address}}">{% if entry.display_address %}{{entry.display_address}}{% else %}{{entry.translated_address}}{% endif %}</a>
                  <div class="info url{{forloop.counter}}">{{entry.last_updated|timesince}} ago</div>
              {% endfor %}
            <div class="ad">
              <script type="text/javascript"><!--
                google_ad_client = "ca-pub-2284163765913634";
                /* mirror service 2 */
                google_ad_slot = "6429021466";
                google_ad_width = 250;
                google_ad_height = 250;
              <script type="text/javascript" src=""></script>

        <p>&copy; Ron Huang 2011</p>

    </div> <!-- /container -->