aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaul Eggleton <paul.eggleton@linux.intel.com>2018-04-09 10:53:45 +1200
committerPaul Eggleton <paul.eggleton@linux.intel.com>2018-05-04 23:57:53 +1200
commit5ed5f748f2db2b781d34184767561cb7b796a45d (patch)
tree0471c71a7bd8a106f9ff72d228dbef5a5d6c6d7a
parentead2144d29d2a6bd299f9ad7c837966f507169fb (diff)
downloadopenembedded-core-contrib-5ed5f748f2db2b781d34184767561cb7b796a45d.tar.gz
rrs: restore full-width pages
Upon consideration, for the width of the information we want to present we do actually want full-width pages for the RRS. When this was changed earlier in the rrs branch it was changed in the base template, but we want to keep the same style elsewhere, so put a block in that will let use the "container-fluid" style (full width) in the RRS pages and "container" by default everywhere else. Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
-rw-r--r--templates/base.html2
-rw-r--r--templates/rrs/base_toplevel.html2
-rw-r--r--templates/rrs/recipedetail.html2
3 files changed, 5 insertions, 1 deletions
diff --git a/templates/base.html b/templates/base.html
index 2bd000037d..38373ab892 100644
--- a/templates/base.html
+++ b/templates/base.html
@@ -88,7 +88,7 @@
{% endautoescape %}
{% endblock %}
- <div id="content" class="container top-padded">
+{% block contenttag %}<div id="content" class="container top-padded">{% endblock %}
{% if messages %}
{% for message in messages %}
<div{% if message.tags %} class="alert {{ message.tags }}"{% endif %}>{{ message }}</div>
diff --git a/templates/rrs/base_toplevel.html b/templates/rrs/base_toplevel.html
index fcd8523c49..e22684b497 100644
--- a/templates/rrs/base_toplevel.html
+++ b/templates/rrs/base_toplevel.html
@@ -11,6 +11,8 @@
{% endcomment %}
+{% block contenttag %}<div id="content" class="container-fluid top-padded">{% endblock %}
+
{% block topfunctions %}
<ul class="nav">
<li class="divider-vertical" style="display; list-item;"/>
diff --git a/templates/rrs/recipedetail.html b/templates/rrs/recipedetail.html
index a91703d671..ac4c6463e5 100644
--- a/templates/rrs/recipedetail.html
+++ b/templates/rrs/recipedetail.html
@@ -18,6 +18,8 @@
{% block topfunctions %}
{% endblock %}
+{% block contenttag %}<div id="content" class="container-fluid top-padded">{% endblock %}
+
{% block content %}
<link rel="stylesheet" href="{% static "css/rrs-additional.css" %}" />
{% autoescape on %}