[PATCH 4/9] ui: Use fixed-width content
Stephen Finucane
stephen.finucane at intel.com
Thu Mar 31 08:04:29 AEDT 2016
A lot of the windows don't display correctly with a full-width
content column. Convert all windows except for the patch list
window to a fixed-width column.
Signed-off-by: Stephen Finucane <stephen.finucane at intel.com>
---
patchwork/templates/patchwork/bundle.html | 6 +++---
patchwork/templates/patchwork/list.html | 5 +++--
patchwork/templates/patchwork/todo-list.html | 5 +++--
templates/base.html | 4 +++-
4 files changed, 12 insertions(+), 8 deletions(-)
diff --git a/patchwork/templates/patchwork/bundle.html b/patchwork/templates/patchwork/bundle.html
index ebedad1..dd81c81 100644
--- a/patchwork/templates/patchwork/bundle.html
+++ b/patchwork/templates/patchwork/bundle.html
@@ -9,8 +9,8 @@
{% endblock %}
{% block title %}{{project.name}}{% endblock %}
-{% block body %}
-
+{% block container %}
+<div class="container-fluid">
<p>This bundle contains patches for the {{ bundle.project.linkname }}
project.</p>
@@ -40,5 +40,5 @@ project.</p>
{% endif %}
{% include "patchwork/patch-list.html" %}
-
+</div>
{% endblock %}
diff --git a/patchwork/templates/patchwork/list.html b/patchwork/templates/patchwork/list.html
index 9fec773..95f10b4 100644
--- a/patchwork/templates/patchwork/list.html
+++ b/patchwork/templates/patchwork/list.html
@@ -6,8 +6,8 @@
{% block title %}{{project.name}}{% endblock %}
{% block patch_active %}active{% endblock %}
-{% block body %}
-
+{% block container %}
+<div class="container-fluid">
<h1>Patches</h1>
{% if errors %}
@@ -22,4 +22,5 @@ while updating patches:</p>
{% include "patchwork/patch-list.html" %}
+</div>
{% endblock %}
diff --git a/patchwork/templates/patchwork/todo-list.html b/patchwork/templates/patchwork/todo-list.html
index 282c33c..8c3de96 100644
--- a/patchwork/templates/patchwork/todo-list.html
+++ b/patchwork/templates/patchwork/todo-list.html
@@ -4,7 +4,8 @@
{% block title %}{{ user }}'s todo list{% endblock %}
-{% block body %}
+{% block container %}
+<div class="container-fluid">
<h1>TODO</h1>
<p>A Patchwork Todo-list contains patches that are assigned to you, and
@@ -13,5 +14,5 @@ are in an "action required" state
</p>
{% include "patchwork/patch-list.html" %}
-
+</div>
{% endblock %}
diff --git a/templates/base.html b/templates/base.html
index 8521edf..d2374ad 100644
--- a/templates/base.html
+++ b/templates/base.html
@@ -107,10 +107,12 @@
{% endfor %}
</div>
{% endif %}
- <div class="container-fluid">
+{% block container %}
+ <div class="container">
{% block body %}
{% endblock %}
</div>
+{% endblock %}
<div id="footer">
<a href="http://jk.ozlabs.org/projects/patchwork/">patchwork</a>
patch tracking system | <a
--
2.0.0
More information about the Patchwork
mailing list