Initial commit
This commit is contained in:
commit
f07b407e7a
25 changed files with 2383 additions and 0 deletions
25
templates/index.html
Normal file
25
templates/index.html
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
{% extends "base.html" %}
|
||||
|
||||
{% block title %}Index{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
<div class="container">
|
||||
<h1>Index</h1>
|
||||
<form>
|
||||
<input name="q">
|
||||
<input type="submit" value="search">
|
||||
</form>
|
||||
|
||||
<div>Username: {{ g.user }}</div>
|
||||
|
||||
<table class="table w-auto">
|
||||
{% for item in examples %}
|
||||
<tr>
|
||||
<td><a href="{{ article_url(item.title) }}">{{ item.title }}</a></td>
|
||||
<td>{{ item.total }}</td>
|
||||
<td>{{ "{:.1%}".format(item.with_links / item.total) }}</td>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
</table>
|
||||
</div>
|
||||
{% endblock %}
|
||||
Loading…
Add table
Add a link
Reference in a new issue