From b6524a9ca1f50eadb13a924b2bb9171813248da1 Mon Sep 17 00:00:00 2001 From: artragis Date: Wed, 7 Oct 2015 13:55:38 +0200 Subject: [PATCH 1/2] permet de rendre les urls sans protocol avec un templatetag --- .../includes/featured_resource_item.part.html | 3 ++- templates/featured/index.html | 4 ++-- .../templatetags/remove_url_protocole.py | 20 +++++++++++++++++++ .../tests/test_remove_url_protocole.py | 16 +++++++++++++++ 4 files changed, 40 insertions(+), 3 deletions(-) create mode 100644 zds/utils/templatetags/remove_url_protocole.py create mode 100644 zds/utils/templatetags/tests/test_remove_url_protocole.py diff --git a/templates/featured/includes/featured_resource_item.part.html b/templates/featured/includes/featured_resource_item.part.html index ff64b18f7f..430ebaee85 100644 --- a/templates/featured/includes/featured_resource_item.part.html +++ b/templates/featured/includes/featured_resource_item.part.html @@ -1,8 +1,9 @@ {% load i18n %} +{% load remove_url_protocole %}