CSS + HTML change
This commit is contained in:
parent
acf918f656
commit
14e69ac291
20 changed files with 292 additions and 248 deletions
|
|
@ -7,37 +7,40 @@
|
|||
{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
<h1>Contributions of {{ u.username }}</h1>
|
||||
<main>
|
||||
<h1 id="firstHeading">{{ u.username }}</h1>
|
||||
<p class="preview-subtitle">Contributions</p>
|
||||
|
||||
<div class="inner-content">
|
||||
<p class="nl-pagination">Showing results <strong>{{ page_n * 20 - 19 }}</strong> to <strong>{{ min(page_n * 20, total_count) }}</strong> of <strong>{{ total_count }}</strong> total.</p>
|
||||
<div class="inner-content">
|
||||
<p class="nl-pagination">Showing results <strong>{{ page_n * 20 - 19 }}</strong> to <strong>{{ min(page_n * 20, total_count) }}</strong> of <strong>{{ total_count }}</strong> total.</p>
|
||||
|
||||
<ul>
|
||||
{% if page_n > 1 %}
|
||||
<li class="nl-prev"><a href="?page={{ page_n - 1 }}">« Previous page</a></li>
|
||||
{% endif %}
|
||||
|
||||
<ul>
|
||||
{% if page_n > 1 %}
|
||||
<li class="nl-prev"><a href="?page={{ page_n - 1 }}">« Previous page</a></li>
|
||||
{% endif %}
|
||||
|
||||
|
||||
{% for rev in contributions %}
|
||||
<li>
|
||||
<a href="/history/revision/{{ rev.id }}/">
|
||||
#{{ rev.id }}
|
||||
·
|
||||
{{ rev.pub_date.strftime("%B %-d, %Y %H:%M:%S") }}
|
||||
{% if rev.comment %}
|
||||
“{{ rev.comment }}”
|
||||
{% endif %}
|
||||
</a>
|
||||
on
|
||||
<a href="{{ rev.page.get_url() }}">
|
||||
{{ rev.page.title }}
|
||||
</a>
|
||||
</li>
|
||||
{% endfor %}
|
||||
{% for rev in contributions %}
|
||||
<li>
|
||||
<a href="/history/revision/{{ rev.id }}/">
|
||||
#{{ rev.id }}
|
||||
·
|
||||
{{ rev.pub_date.strftime("%B %-d, %Y %H:%M:%S") }}
|
||||
{% if rev.comment %}
|
||||
“{{ rev.comment }}”
|
||||
{% endif %}
|
||||
</a>
|
||||
on
|
||||
<a href="{{ rev.page.get_url() }}">
|
||||
{{ rev.page.title }}
|
||||
</a>
|
||||
</li>
|
||||
{% endfor %}
|
||||
|
||||
{% if page_n < total_count // 20 %}
|
||||
<li class="nl-next"><a href="?page={{ page_n + 1 }}">Next page »</a></li>
|
||||
{% endif %}
|
||||
</ul>
|
||||
</div>
|
||||
{% if page_n < total_count // 20 %}
|
||||
<li class="nl-next"><a href="?page={{ page_n + 1 }}">Next page »</a></li>
|
||||
{% endif %}
|
||||
</ul>
|
||||
</div>
|
||||
</main>
|
||||
{% endblock %}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue