Browse Source

Wrap elements with 12-col div as per other detail pages

Edd Baldry 8 years ago
parent
commit
53fe8e8e6d
1 changed files with 33 additions and 27 deletions
  1. 33 27
      bakerydemo/templates/search/search_results.html

+ 33 - 27
bakerydemo/templates/search/search_results.html

@@ -4,32 +4,38 @@
 {% block title %}Search{% if search_results %} results{% endif %}{% endblock %}
 
 {% block content %}
-    <h1>
-        Search results
-    </h1>
+<div class="container">
+    <div class="row">
+        <div class="col-md-8">
+            <h1>
+                Search results
+            </h1>
 
-    {% if search_results %}
-    <p>You searched{% if search_query %} for “{{ search_query }}”{% endif %}</p>
-        <ul>
-            {% for result in search_results %}
-                <li>
-                    <h4>
-                        {% if result.specific.content_type.model == "blogpage" %}
-                            Blog post:
-                        {% elif result.specific.content_type.model == "locationpage" %}
-                            Location:
-                        {% else %}
-                            Bread
-                        {% endif %}
-                        <a href="{% pageurl result.specific %}">{{ result.specific }}</a>
-                    </h4>
-                        {% if result.specific.search_description %}{{ result.specific.search_description|safe }}{% endif %}
-                </li>
-            {% endfor %}
-        </ul>
-    {% elif search_query %}
-        No results found
-    {% else %}
-        You didn’t search for anything!
-    {% endif %}
+            {% if search_results %}
+                <p>You searched{% if search_query %} for “{{ search_query }}”{% endif %}</p>
+                <ul>
+                    {% for result in search_results %}
+                        <li>
+                            <h4>
+                                {% if result.specific.content_type.model == "blogpage" %}
+                                    Blog post:
+                                {% elif result.specific.content_type.model == "locationpage" %}
+                                    Location:
+                                {% else %}
+                                    Bread
+                                {% endif %}
+                                <a href="{% pageurl result.specific %}">{{ result.specific }}</a>
+                            </h4>
+                                {% if result.specific.search_description %}{{ result.specific.search_description|safe }}{% endif %}
+                        </li>
+                    {% endfor %}
+                </ul>
+            {% elif search_query %}
+                No results found
+            {% else %}
+                You didn’t search for anything!
+            {% endif %}
+        </div>
+    </div>
+</div>
 {% endblock content %}