From 05513c6fa7203aea490e104ec1a69cb799c6f081 Mon Sep 17 00:00:00 2001 From: Chris Hill-Scott Date: Sun, 15 Oct 2017 14:17:23 +0100 Subject: [PATCH] Refactor to reuse search box HTML --- app/templates/views/templates/_search-box.html | 10 ++++++++++ app/templates/views/templates/choose-reply.html | 11 +---------- app/templates/views/templates/choose.html | 11 +---------- 3 files changed, 12 insertions(+), 20 deletions(-) create mode 100644 app/templates/views/templates/_search-box.html diff --git a/app/templates/views/templates/_search-box.html b/app/templates/views/templates/_search-box.html new file mode 100644 index 000000000..d150ebebe --- /dev/null +++ b/app/templates/views/templates/_search-box.html @@ -0,0 +1,10 @@ + {% if show_search_box %} +
+ +
+ {% endif %} \ No newline at end of file diff --git a/app/templates/views/templates/choose-reply.html b/app/templates/views/templates/choose-reply.html index 11927b0c6..a356d0100 100644 --- a/app/templates/views/templates/choose-reply.html +++ b/app/templates/views/templates/choose-reply.html @@ -28,16 +28,7 @@ {% else %} - {% if show_search_box %} -
- -
- {% endif %} + {% include "views/templates/_search-box.html" %}