[LNT] r249102 - Some pages are better without a side-bar
Chris Matthews via llvm-commits
llvm-commits at lists.llvm.org
Thu Oct 1 17:02:21 PDT 2015
Author: cmatthews
Date: Thu Oct 1 19:02:21 2015
New Revision: 249102
URL: http://llvm.org/viewvc/llvm-project?rev=249102&view=rev
Log:
Some pages are better without a side-bar
Some of the LNT pages are better when more width. The side-bar is not
used on all pages. For pages that define nosidebar, change the
bootstrap layout from span9 to span12 and omit the sidebar content.
Modified:
lnt/trunk/lnt/server/ui/templates/layout.html
lnt/trunk/lnt/server/ui/templates/v4_graph.html
Modified: lnt/trunk/lnt/server/ui/templates/layout.html
URL: http://llvm.org/viewvc/llvm-project/lnt/trunk/lnt/server/ui/templates/layout.html?rev=249102&r1=249101&r2=249102&view=diff
==============================================================================
--- lnt/trunk/lnt/server/ui/templates/layout.html (original)
+++ lnt/trunk/lnt/server/ui/templates/layout.html Thu Oct 1 19:02:21 2015
@@ -53,7 +53,9 @@
#push,
#lnt-instance { margin-left:20px; }
#dbselect { margin-right : 20px; }
-
+ {% if nosidebar is defined %}
+ #page-content { margin-left:20px; width:100%}
+ {% endif %}
/* Lastly, apply responsive CSS fixes as necessary */
@media (max-width: 767px) {
#footer {
@@ -63,6 +65,7 @@
padding-right: 20px;
}
}
+
</style>
<link rel="icon" type="image/png" href="{{ url_for('.static', filename='favicon.ico') }}"/>
@@ -162,16 +165,22 @@
{# Page Content #}
<div id="content" class="container-fluid">
- <div class="row-fluid row">
+ {% if nosidebar is defined %}
+ <div class="row">
+ <div id="page-content" class="span12">
+ {% else %}
<div id ="side-bar" class="span3 bs-docs-sidebar ">
- {% block sidebar %}{% endblock %}
+ {% block sidebar %}{% endblock %}
</div>
<div id="page-content" class="span9">
+ {% endif %}
+
{% block body %}{% endblock %}
</div>
</div>
</div>
+
{# Force space for footer #}
<div id="push"></div>
</div>
Modified: lnt/trunk/lnt/server/ui/templates/v4_graph.html
URL: http://llvm.org/viewvc/llvm-project/lnt/trunk/lnt/server/ui/templates/v4_graph.html?rev=249102&r1=249101&r2=249102&view=diff
==============================================================================
--- lnt/trunk/lnt/server/ui/templates/v4_graph.html (original)
+++ lnt/trunk/lnt/server/ui/templates/v4_graph.html Thu Oct 1 19:02:21 2015
@@ -1,3 +1,4 @@
+{% set nosidebar = True %}
{% import "utils.html" as utils %}
{% extends "layout.html" %}
More information about the llvm-commits
mailing list