]> git.ipfire.org Git - ipfire.org.git/commitdiff
nopaste: Remove link to accounts
authorMichael Tremer <michael.tremer@ipfire.org>
Thu, 22 Feb 2024 19:09:49 +0000 (19:09 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Thu, 22 Feb 2024 19:09:49 +0000 (19:09 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/backend/nopaste.py
src/templates/nopaste/view.html

index a4b964e2f44f7cfd79732127c2e473857a3c982b..4d71c5070b29b47c2db27a069f1606b99006b283 100644 (file)
@@ -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):
index bebbc309234416313740fcfd627d61a215b823cf..dcc4cd5a0440a890f1cf456dc6f8ceff21b4440c 100644 (file)
                                        {{ 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>