Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
if self.location and self.location.country_code:
return self.backend.location.get_country(self.location.country_code)
- # Legacy
-
- @property
- def account(self):
- return None
-
# Viewed?
def viewed(self):
{{ entry.subject or _("Paste %s") % entry.uuid }}
</h1>
<h6 class="subtitle">
- {{ _("Uploaded %s") % locale.format_date(entry.time_created) }}
-
- {% if entry.account %}
- {{ _("by") }}
- <a href="https://www.ipfire.org/users/{{ entry.account.uid }}">{{ entry.account }}</a>
- {% else %}
- {{ _("from %s") % entry.address }}
- {% end %}
+ {{ _("Uploaded %s from %s") % (locale.format_date(entry.time_created), entry.address) }}
</h6>
</div>
</div>