mirror of
https://github.com/netbox-community/netbox.git
synced 2025-07-21 03:27:21 -06:00
Remove oneline filter
This commit is contained in:
parent
02bf6bd3a6
commit
22246353e2
@ -143,7 +143,7 @@
|
|||||||
<td>
|
<td>
|
||||||
{% if site.physical_address %}
|
{% if site.physical_address %}
|
||||||
<div class="pull-right noprint">
|
<div class="pull-right noprint">
|
||||||
<a href="http://maps.google.com/?q={{ site.physical_address|oneline|urlencode }}" target="_blank" class="btn btn-primary btn-xs">
|
<a href="http://maps.google.com/?q={{ site.physical_address|urlencode }}" target="_blank" class="btn btn-primary btn-xs">
|
||||||
<i class="glyphicon glyphicon-map-marker"></i> Map it
|
<i class="glyphicon glyphicon-map-marker"></i> Map it
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
|
@ -20,15 +20,6 @@ register = template.Library()
|
|||||||
# Filters
|
# Filters
|
||||||
#
|
#
|
||||||
|
|
||||||
@register.filter()
|
|
||||||
def oneline(value):
|
|
||||||
"""
|
|
||||||
Replace each line break with a single space
|
|
||||||
"""
|
|
||||||
value = value.replace('\r', '')
|
|
||||||
return value.replace('\n', ' ')
|
|
||||||
|
|
||||||
|
|
||||||
@register.filter()
|
@register.filter()
|
||||||
def placeholder(value):
|
def placeholder(value):
|
||||||
"""
|
"""
|
||||||
|
Loading…
Reference in New Issue
Block a user