bitbake: toastergui: spacing and top nav style change
PATCH 1/6 bitbake: toastergui: spacing and top nav style change
From: Belen Barros Pena <[email protected]>
Remove the margin for the .section class and the
.row-fluid class in the page header div to
reduce the vertical white space a little
bit in the project pages.
Also, change the style of the Toaster manual
link to make it look like the main navigation.
--- lib/toaster/toastergui/static/css/default.css | 1 - lib/toaster/toastergui/templates/base.html | 16 +++++++++++----- lib/toaster/toastergui/templates/projecttopbar.html | 2 +- 3 files changed, 12 insertions(+), 7 deletions(-)
lib/toaster/toastergui/static/css/default.css +0 -1
@@ -10,7 +10,6 @@ /* Style the breadcrumb */ .breadcrumb { display: inline-block; background-color: transparent; } -.section { margin: 20px 0; } /* Styles for the help information */ .get-help { color: #CCCCCC; }
lib/toaster/toastergui/templates/base.html +11 -5
@@ -102,11 +102,17 @@ <i class="icon-folder-open"></i> All projects </a> - </li> </ul> - <a class="pull-right manual" target="_blank" href="http://www.yoctoproject.org/docs/latest/toaster-manual/toaster-manual.html"> - <i class="icon-book"></i> - Toaster manual - </a> + </li> + </ul> + <ul class="nav pull-right"> + <li> + <a target="_blank" href="http://www.yoctoproject.org/docs/latest/toaster-manual/toaster-manual.html"> + <i class="icon-book"></i> + Manual + </a> + </li> + </ul> + <span class="pull-right divider-vertical"></span> <div class="btn-group pull-right"> <a class="btn" id="new-project-button" href="{% url 'newproject' %}">New project</a> </div>
lib/toaster/toastergui/templates/projecttopbar.html +1 -1
@@ -4,7 +4,7 @@ </div> <!-- project name --> -<div class="row-fluid page-header"> +<div class="page-header"> <h1><span id="project-name">{{project.name}}</span> <i class="icon-pencil" data-original-title="" id="project-change-form-toggle" title=""></i> </h1>
Signature · 1 line
2.1.4
PATCH 2/6 bitbake: toastergui: breadcrumb fixes
From: Belen Barros Pena <[email protected]>
Make sure that we use the correct html entity
for the breadcrumb dividers, and remove the
'all builds' item from the history pages: all
breadcrumbs should now have the project name as
their first element, since the 'all builds' page
can be reached using the global naviation in the
top bar.
--- lib/toaster/toastergui/templates/basebuilddetailpage.html | 3 +-- lib/toaster/toastergui/templates/basebuildpage.html | 3 +-- lib/toaster/toastergui/templates/layerdetails.html | 4 ++-- 3 files changed, 4 insertions(+), 6 deletions(-)
lib/toaster/toastergui/templates/basebuilddetailpage.html +1 -2
@@ -6,14 +6,13 @@ <!-- Breadcrumbs --> <div class="section"> <ul class="breadcrumb" id="breadcrumb"> - <li><a href="{% url 'all-builds' %}">All builds</a></li> <li><a href="{% url 'project' build.project.id %}">{{build.project.name}}</a></li> <li><a href="{%url 'builddashboard' build.pk%}">{{build.target_set.all.0.target}} {%if build.target_set.all.count > 1%}(+ {{build.target_set.all.count|add:"-1"}}){%endif%} ({{build.completed_on|date:"d/m/y H:i"}})</a></li> {% block localbreadcrumb %}{% endblock %} </ul> <script> $( function () { - $('#breadcrumb > li').append("<span class=\"divider\">→</span>"); + $('#breadcrumb > li').append('<span class="divider">→</span>'); $('#breadcrumb > li:last').addClass("active"); $('#breadcrumb > li:last > span').remove(); });
lib/toaster/toastergui/templates/basebuildpage.html +1 -2
@@ -8,7 +8,6 @@ <!-- Breadcrumbs --> <div class="section"> <ul class="breadcrumb" id="breadcrumb"> - <li><a href="{% url 'all-builds' %}">All builds</a></li> <li><a href="{% url 'project' build.project.id %}">{{build.project.name}}</a></li> <li> {% block parentbreadcrumb %}
@@ -21,7 +20,7 @@ </ul> <script> $( function () { - $('#breadcrumb > li').append("<span class=\"divider\">→</span>"); + $('#breadcrumb > li').append('<span class="divider">→</span>'); $('#breadcrumb > li:last').addClass("active"); $('#breadcrumb > li:last > span').remove(); console.log("done");
lib/toaster/toastergui/templates/layerdetails.html +2 -2
@@ -9,10 +9,10 @@ <ul class="breadcrumb"> <li> <a href="{% url 'project' project.id %}">{{project.name}}</a> - <span class="divider">→</span> + <span class="divider">→</span> </li> <li><a href="{% url 'projectlayers' project.id %}">Compatible layers</a> - <span class="divider">→</span> + <span class="divider">→</span> </li> <li> {{layerversion.layer.name}} ({{layerversion.get_vcs_reference|truncatechars:13}})
Signature · 1 line
2.1.4
PATCH 3/6 bitbake: toastergui: change link styles in alert-info
In reply to Michael WoodFrom: Belen Barros Pena <[email protected]>
Make them a bit less bold: it was a bit in your face before.
--- lib/toaster/toastergui/static/css/default.css | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
lib/toaster/toastergui/static/css/default.css +1 -1
@@ -35,7 +35,7 @@ dd code, .alert code { white-space: pre-wrap; word-break: break-all; word-wrap: .alert-error code { background-color: transparent; border: none; color: #B94A48; margin-bottom:0px; } .alert-error pre { background-color: transparent; border: none; color: #B94A48; word-break: normal; margin-bottom: 0px; } .alert-warning pre { word-break: normal; } -.alert-info a { font-weight: bold; } +.alert-info a { font-weight: 300; } .alert-info code { color: #3A87AD; } .tooltip code { background-color: transparent; color: #FFFFFF; font-weight: normal; border: none; font-size: 1em; }
Signature · 1 line
2.1.4
PATCH 4/6 bitbake: toastergui: remove project name from layer change notification
In reply to Michael WoodFrom: Belen Barros Pena <[email protected]>
The project name is always a link to the basic
configuration page, which looks quite silly when
you change layers from that page.
Since I guess the idea is reusing those notifications everywhere, I've replaced the project name with a generic 'to your project' / 'from your project', so that they read right no matter where you see them.
--- lib/toaster/toastergui/static/js/libtoaster.js | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-)
lib/toaster/toastergui/static/js/libtoaster.js +3 -5
@@ -280,7 +280,7 @@ var libtoaster = (function (){ var alertMsg; if (layerDepsList.length > 0 && add === true) { - alertMsg = $("<span>You have added <strong>"+(layerDepsList.length+1)+"</strong> layers to <a id=\"project-affected-name\"></a>: <a id=\"layer-affected-name\"></a> and its dependencies </span>"); + alertMsg = $("<span>You have added <strong>"+(layerDepsList.length+1)+"</strong> layers to your project: <a id=\"layer-affected-name\"></a> and its dependencies </span>"); /* Build the layer deps list */ layerDepsList.map(function(layer, i){
@@ -296,15 +296,13 @@ var libtoaster = (function (){ alertMsg.append(link); }); } else if (layerDepsList.length === 0 && add === true) { - alertMsg = $("<span>You have added <strong>1</strong> layer to <a id=\"project-affected-name\"></a>: <a id=\"layer-affected-name\"></a></span></span>"); + alertMsg = $("<span>You have added <strong>1</strong> layer to your project: <a id=\"layer-affected-name\"></a></span></span>"); } else if (add === false) { - alertMsg = $("<span>You have deleted <strong>1</strong> layer from <a id=\"project-affected-name\"></a>: <a id=\"layer-affected-name\"></a></span>"); + alertMsg = $("<span>You have deleted <strong>1</strong> layer from your project: <a id=\"layer-affected-name\"></a></span>"); } alertMsg.children("#layer-affected-name").text(layer.name); alertMsg.children("#layer-affected-name").attr("href", layer.layerdetailurl); - alertMsg.children("#project-affected-name").text(libtoaster.ctx.projectName); - alertMsg.children("#project-affected-name").attr("href", libtoaster.ctx.projectPageUrl); return alertMsg.html(); }
Signature · 1 line
2.1.4
PATCH 5/6 bitbake: toastergui: fix spacing in the import layers page
In reply to Michael WoodFrom: Belen Barros Pena <[email protected]>
Adjust the space between the first fieldset and the tabs, and the help text and the first form field.
--- lib/toaster/toastergui/templates/importlayer.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
lib/toaster/toastergui/templates/importlayer.html +2 -2
@@ -26,7 +26,7 @@ </script> <form class="span11"> - <fieldset class="air"> + <fieldset> <legend>Layer repository information</legend> <span class="help-block">The layer you are importing must be compatible with <strong>{{project.release.description}}</strong>, which is the release you are using in this project.</span> <div class="alert alert-error" id="import-error" style="display:none">
@@ -37,7 +37,7 @@ </div> <div class="control-group" id="layer-name-ctrl"> - <label class="control-label" for="import-layer-name"> + <label class="control-label air" for="import-layer-name"> Layer name <span class="icon-question-sign get-help" title="Something like 'meta-mylayer'. Your layer name must be unique and can only include letters, numbers and dashes"></span> </label>
Signature · 1 line
2.1.4
PATCH 6/6 bitbake: toastergui: add action to empty "most built" recipes
In reply to Michael WoodFrom: Belen Barros Pena <[email protected]>
It is not very good to just tell people: "this is empty because you haven't done anything". We should politely invite them to do something about it. Thus adding a "Choose a recipe to build" link to the all compatible recipes page whenever the 'most built recipes' section is empty.
--- lib/toaster/toastergui/templates/project.html | 1 + 1 file changed, 1 insertion(+)
lib/toaster/toastergui/templates/project.html +1 -0
@@ -68,6 +68,7 @@ <div class="alert alert-info" style="display:none" id="no-most-built"> <span class="lead">You haven't built any recipes yet</span> + <p style="margin-top: 10px;"><a href="{% url 'projecttargets' project.id %}">Choose a recipe to build</a></p> </div> <ul class="unstyled configuration-list" id="freq-build-list">
Signature · 1 line
2.1.4