From: Michael Tremer Date: Thu, 22 Feb 2024 19:09:49 +0000 (+0000) Subject: nopaste: Remove link to accounts X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=66b4e99271725c0cafbd25bbdb3a9032720a1259;p=ipfire.org.git nopaste: Remove link to accounts Signed-off-by: Michael Tremer --- diff --git a/src/backend/nopaste.py b/src/backend/nopaste.py index a4b964e2..4d71c507 100644 --- a/src/backend/nopaste.py +++ b/src/backend/nopaste.py @@ -235,12 +235,6 @@ class Paste(Object): 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): diff --git a/src/templates/nopaste/view.html b/src/templates/nopaste/view.html index bebbc309..dcc4cd5a 100644 --- a/src/templates/nopaste/view.html +++ b/src/templates/nopaste/view.html @@ -20,14 +20,7 @@ {{ entry.subject or _("Paste %s") % entry.uuid }}
- {{ _("Uploaded %s") % locale.format_date(entry.time_created) }} - - {% if entry.account %} - {{ _("by") }} - {{ entry.account }} - {% else %} - {{ _("from %s") % entry.address }} - {% end %} + {{ _("Uploaded %s from %s") % (locale.format_date(entry.time_created), entry.address) }}