gedankenstuecke/twitter-analyser

View on GitHub
tweet_display/templates/tweet_display/application.html

Summary

Maintainability
Test Coverage
<html lang='en'>
  <head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">

    <!-- The above 3 meta tags *must* come first in the head; any other head content must come *after* these tags -->
    <title>TwArχiv</title>
    <link href='https://fonts.googleapis.com/css?family=Open+Sans:400,300,700' rel='stylesheet' type='text/css'>
    <link href='https://fonts.googleapis.com/css?family=PT+Serif:400,700,400italic' rel='stylesheet' type='text/css'>
    <link href='https://netdna.bootstrapcdn.com/font-awesome/4.2.0/css/font-awesome.css' rel='stylesheet' type='text/css'>

    <link href='https://cdnjs.cloudflare.com/ajax/libs/metrics-graphics/2.11.0/metricsgraphics.min.css' rel='stylesheet' type='text/css'>

    <script src='https://cdnjs.cloudflare.com/ajax/libs/jquery/3.1.0/jquery.min.js'></script>


    <!-- Bootstrap -->
    <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous">
    <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap-theme.min.css" integrity="sha384-rHyoN1iRsVXV4nD0JutlnGaslCJuC7uwjduW9SVrLvRYooPp2bWYgmgJQIXwl/Sp" crossorigin="anonymous">
    <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js" integrity="sha384-Tc5IQib027qvyjSMfHjOMaLkfuWVxZxUPnCJA7l2mCWNIpG9mGCD8wGNIcPD7Txa" crossorigin="anonymous"></script>

    <script src="https://d3js.org/d3.v4.min.js"></script>
    <script src="https://cdnjs.cloudflare.com/ajax/libs/metrics-graphics/2.11.0/metricsgraphics.min.js"></script>

    {% load static %}
    <link rel="icon" type="image/png"
      href="{% static 'favicon.ico' %}">

    <link href='{% static "css/metricsgraphics.css" %}' rel='stylesheet' type='text/css'>
    <link rel="stylesheet" href="https://unpkg.com/leaflet@1.2.0/dist/leaflet.css"
       integrity="sha512-M2wvCLH6DSRazYeZRIm1JnYyh22purTM+FDB5CsyxtQJYeKq83arPe5wgbNmcFXGqiSH2XR8dT/fJISVA1r/zQ=="
       crossorigin=""/>

     <script src="https://unpkg.com/leaflet@1.2.0/dist/leaflet.js"
       integrity="sha512-lInM/apFSqyy1o6s89K4iQUKg6ppXEgsVxT35HbzUupEVRh2Eu9Wdl4tHj7dZO0s1uvplcYGmt3498TtHq+log=="
       crossorigin=""></script>

    <script src="https://cdnjs.cloudflare.com/ajax/libs/leaflet.heat/0.2.0/leaflet-heat.js"></script>
    <script src='{% static "javascripts/leaflet.timeline.js"%}'></script>
    <script src="https://cdnjs.cloudflare.com/ajax/libs/moment.js/2.17.1/moment.min.js"></script>

    <style>
      body {
        padding-top: 20px;
        padding-bottom: 20px;
      }

      .navbar {
        margin-bottom: 20px;
      }


      /* Sticky footer styles
-------------------------------------------------- */
html {
  position: relative;
  min-height: 100%;
}
body {
  /* Margin bottom by footer height */
  margin-bottom: 60px;
}
.footer {
  position: absolute;
  bottom: 0;
  width: 100%;
  /* Set the fixed height of the footer here */
  height: 60px;
  background-color: #f5f5f5;
}


.fcontainer .text-muted {
  padding: 0 15px;
  margin: 20px 0;
}
    </style>
  </head>

  <body>

        <div class="container">

          <!-- Static navbar -->
          <nav class="navbar navbar-default">
            <div class="container-fluid">
              <div class="navbar-header">
                <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false" aria-controls="navbar">
                  <span class="sr-only">Toggle navigation</span>
                  <span class="icon-bar"></span>
                  <span class="icon-bar"></span>
                  <span class="icon-bar"></span>
                </button>
                <a class="navbar-brand" href="{% url 'user_home' %}"><font color="#1DA1F2">Tw</font>Arχiv</a>
              </div>
              <div id="navbar" class="navbar-collapse collapse">
                <ul class="nav navbar-nav">
                  <li {% if section == 'home' %} class="active" {%endif%}>
                    <a href="{% url 'user_home' %}">Home</a>
                  </li>
                  <li {% if section == 'public_data' %} class="active" {%endif%}>
                    <a href="{% url 'public_data' %}">Public Visualizations</a>
                  </li>
                  {% if graph_section %}
                  <li {% if section == 'general' %} class="active" {%endif%}>
                    {% if link_target %}
                    <a href="{% url 'index_w_id' oh_id %}">General</a>
                    {% else %}
                    <a href="{% url 'index' %}">General</a>
                    {% endif %}
                  </li>
                  <li {% if section == 'interactions' %} class="active" {%endif%}>
                    {% if link_target %}
                    <a href="{% url 'interactions_w_id' oh_id %}">Interactions</a>
                    {% else %}
                    <a href="{% url 'interactions' %}">Interactions</a>
                    {% endif %}
                  </li>
                  <li {% if section == 'location' %} class="active" {%endif%}>
                    {% if link_target %}
                    <a href="{% url 'location_w_id' oh_id %}">Location</a>
                    {% else %}
                    <a href="{% url 'location' %}">Location</a>
                    {% endif %}
                  </li>
                  {%endif%}
                </ul>
                <ul class="nav navbar-nav navbar-right">
                  <li {% if section == 'about' %} class="active" {%endif%}>
                    <a href="{% url 'about' %}">About</a>
                  </li>
                </ul>
              </div><!--/.nav-collapse -->
            </div><!--/.container-fluid -->
          </nav>

          {% block content %}
          {% endblock %}

        </div> <!-- /container -->
        <footer class="footer">
          <div class="fcontainer">
            <p class="text-muted">
              <a href="https://github.com/gedankenstuecke/twitter-analyser">
                Visit the <font color="#1DA1F2">Tw</font>Arχiv on GitHub
              </a>
            </p>
          </div>
        </footer>
  </body>
</html>