Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
if m:
return m.group(1)
+ @lazy_property
+ def author(self):
+ if self.data.author_uid:
+ return self.backend.accounts.get_by_uid(self.data.author_uid)
+
def _render(self, text):
logging.debug("Rendering %s" % self)
{% block main %}
{% module WikiNavbar(page) %}
- <div class="card">
+ <div class="card mb-3">
<div class="card-body">
<div class="user-content">
<div class="user-content-body">
</div>
</div>
</div>
+
+ <p class="small text-right">
+ {{ _("Last modified %s") % locale.format_date(page.timestamp) }}
+
+ {% if page.author %}
+ •
+
+ <a href="/users/{{ page.author.uid }}">
+ {{ page.author }}
+ </a>
+ {% end %}
+ </p>
{% end block %}