Files
pypistats.org/pypistats/templates/layout.html
2018-08-23 21:32:20 -04:00

81 lines
3.1 KiB
HTML

<!doctype html>
<html>
<head>
<!-- Global site tag (gtag.js) - Google Analytics -->
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-101875606-5"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'UA-101875606-5');
</script>
<!-- <script type="text/javascript"> // var host = "example.com"; // if ((host == window.location.host) && (window.location.protocol != "https:")) // window.location.protocol = "https"; </script> -->
<link rel="stylesheet" href="/static/style.css">
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="chrome=1">
<meta name="description" content="PyPI Download Stats">
<meta name="keywords" content="Python,PyPI,package,downloads,stats">
<title>
{% block title %}{% endblock %}
</title>
<meta name="viewport" content="width=device-width">
<!--[if lt IE 9]> <script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script> <![endif]-->
<script src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.1/MathJax.js?config=TeX-AMS-MML_HTMLorMML" type="text/javascript"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/anchor-js/4.0.0/anchor.min.js" type="text/javascript"></script>
<!-- Place this tag in your head or just before your close body tag. -->
{% block plot %}{% endblock %}
{% block auth %}{% endblock %}
</head>
<body>
<div class="wrapper">
<header>
<h1>PyPI Stats</h1>
<p>
<a href="{{ url_for('general.index') }}">Search</a>
<br>
<br>
<a href="{{ url_for('general.package', package='__all__') }}">All packages</a>
<br>
<a href="{{ url_for('general.top') }}">Top packages</a>
<br>
<br>
{% if user %}
<a href="{{ url_for('user.user')}}">{{ user.username }}'s packages</a>
{% else %}
<a href="{{ url_for('user.user')}}">Track packages</a>
{% endif %}
<br>
<br>
{% if user %}
<a href="{{ url_for('user.logout') }}">Logout</a>
{% endif %}
</p>
</header>
<section>
{% block body %}{% endblock %}
</section>
<footer>
<p>
<a href="{{ url_for('api.api') }}">API</a>
<br>
<a href="{{ url_for('general.about') }}">About</a>
<br>
<a href="{{ url_for('general.faqs') }}">FAQs</a>
<br>
</p>
</p>
</footer>
</div>
<script>
anchors.add();
</script>
</body>
</html>