Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
@lazy_property
def asn(self):
if self.location and self.location.asn:
- return self.backend.location.get_asn(self.location.asn)
+ return self.backend.location.get_as(self.location.asn)
# Country
<h6 class="subtitle">
{{ _("Uploaded %s by %s") % (locale.format_date(paste.time_created), paste.account or "N/A") }}
+
+ {# Show IP address of uploader to admins #}
+ {% if current_user and current_user.is_admin() %}
+ • {{ paste.address }}
+ {% if paste.country %}• {{ paste.country }}{% end %}
+ {% if paste.asn %}• {{ paste.asn }}{% end %}
+ {% end %}
</h6>
</div>
</div>