소스 검색

Fixes #616: Correct display of custom URL fields

Jeremy Stretch 9 년 전
부모
커밋
5a4ccbc066
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      netbox/templates/inc/custom_fields_panel.html

+ 1 - 1
netbox/templates/inc/custom_fields_panel.html

@@ -13,7 +13,7 @@
                         {% elif field.type == 300 and value == False %}
                             <i class="glyphicon glyphicon-remove text-danger" title="False"></i>
                         {% elif field.type == 500 and value %}
-                            {{ value|urlizetrunc:75 }}
+                            <a href="{{ value }}">{{ value|truncatechars:70 }}</a>
                         {% elif field.type == 200 or value %}
                             {{ value }}
                         {% elif field.required %}