10k-viewer/templates/company.html

50 lines
1.8 KiB
HTML

<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>{{ ticker }} Filings</title>
<style>
body{font-family:Georgia,serif;font-size:18px;max-width:600px;margin:0 auto;padding:20px}
h1{font-size:1.4em}
ul{list-style:none;padding:0}
li{padding:8px 0;border-bottom:1px solid #ccc}
a{color:#000}
small{color:#555}
.back{font-size:0.85em}
.filter{margin:10px 0}
.filter a{margin-right:15px;font-size:0.9em}
.filter a.active{font-weight:bold;text-decoration:underline}
.ftag{display:inline-block;padding:1px 5px;font-size:0.75em;margin-left:5px}
.f10k{background:#000;color:#fff}
.f10q{background:#666;color:#fff}
.pg{margin:15px 0;font-size:0.9em}
.pg a{margin-right:10px}
</style>
</head>
<body>
<p class="back"><a href="/">← All companies</a></p>
<h1>{{ ticker }} — {{ company.name }}</h1>
<div class="filter">
<a href="/{{ ticker }}" class="{% if not form_filter %}active{% endif %}">All</a>
<a href="/{{ ticker }}?form=10-K" class="{% if form_filter == '10-K' %}active{% endif %}">10-K Annual</a>
<a href="/{{ ticker }}?form=10-Q" class="{% if form_filter == '10-Q' %}active{% endif %}">10-Q Quarterly</a>
</div>
<p>Total: {{ total }} filings · Page {{ page }} of {{ total_pages }}</p>
<ul>
{% for f in filings %}
<li>
<a href="/{{ ticker }}/view/{{ f.file }}?reader=1">{{ f.date }}</a>
<span class="ftag {% if f.form == '10-K' %}f10k{% else %}f10q{% endif %}">{{ f.form }}</span>
<small> · <a href="/{{ ticker }}/view/{{ f.file }}">raw</a></small>
</li>
{% else %}
<li>No filings found.</li>
{% endfor %}
</ul>
<div class="pg">
{% if page > 1 %}<a href="/{{ ticker }}?form={{ form_filter }}&page={{ page - 1 }}">← Prev</a>{% endif %}
{% if page < total_pages %}<a href="/{{ ticker }}?form={{ form_filter }}&page={{ page + 1 }}">Next →</a>{% endif %}
</div>
</body>
</html>