Added edit comments, user contributions and improved history page
This commit is contained in:
parent
f4d536dc47
commit
d2cef14c38
6 changed files with 80 additions and 23 deletions
30
templates/contributions.html
Normal file
30
templates/contributions.html
Normal file
|
|
@ -0,0 +1,30 @@
|
|||
{% extends "base.html" %}
|
||||
|
||||
{% block title %}Contributions of {{ u.username }} - {{ app_name }}{% endblock %}
|
||||
|
||||
{% block meta %}
|
||||
<meta name="robots" content="noindex,nofollow" />
|
||||
{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
<h1>Contributions of {{ u.username }}</div>
|
||||
|
||||
<ul>
|
||||
{% 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 %}
|
||||
</ul>
|
||||
{% endblock %}
|
||||
Loading…
Add table
Add a link
Reference in a new issue