summaryrefslogtreecommitdiffstats
path: root/bitbake
diff options
context:
space:
mode:
authorMarius Avram <marius.avram@intel.com>2014-08-29 15:51:26 +0300
committerRichard Purdie <richard.purdie@linuxfoundation.org>2014-09-05 10:14:25 +0100
commitdfbb54649276cf621e383a9939e7286e876c0ac8 (patch)
treef80d6b2d03cdd5163e8389723e4aa16f4d9d4ca0 /bitbake
parent69e5cbdac50418738d72987b6ee943933f6bfd51 (diff)
downloadpoky-dfbb54649276cf621e383a9939e7286e876c0ac8.tar.gz
bitbake: toaster: fix some code spacing issues
Code is related to the basetable templates files. It had mixed tabs and spaces and was miss aligned in various places, making it hard to read. (Bitbake rev: cdaea8951df6b707afd1fefbf22295088256dd6f) Signed-off-by: Marius Avram <marius.avram@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake')
-rw-r--r--bitbake/lib/toaster/toastergui/templates/basetable_bottom.html39
-rw-r--r--bitbake/lib/toaster/toastergui/templates/basetable_top.html9
2 files changed, 25 insertions, 23 deletions
diff --git a/bitbake/lib/toaster/toastergui/templates/basetable_bottom.html b/bitbake/lib/toaster/toastergui/templates/basetable_bottom.html
index cbdc164273..e6b9506281 100644
--- a/bitbake/lib/toaster/toastergui/templates/basetable_bottom.html
+++ b/bitbake/lib/toaster/toastergui/templates/basetable_bottom.html
@@ -23,13 +23,14 @@
23{%endif%} 23{%endif%}
24 </ul> 24 </ul>
25 <div class="pull-right"> 25 <div class="pull-right">
26 <span class="help-inline" style="padding-top:5px;">Show rows:</span> 26 <span class="help-inline" style="padding-top:5px;">Show rows:</span>
27 <select style="margin-top:5px;margin-bottom:0px;" class="pagesize"> 27 <select style="margin-top:5px;margin-bottom:0px;" class="pagesize">
28 {% with "2 5 10 25 50 100" as list%} 28 {% with "2 5 10 25 50 100" as list%}
29 {% for i in list.split %}<option value="{{i}}">{{i}}</option> 29 {% for i in list.split %}
30 {% endfor %} 30 <option value="{{i}}">{{i}}</option>
31 {% endwith %} 31 {% endfor %}
32 </select> 32 {% endwith %}
33 </select>
33 </div> 34 </div>
34</div> 35</div>
35 36
@@ -40,21 +41,21 @@
40 41
41 // we load cookies for the column display 42 // we load cookies for the column display
42 save = $.cookie('_displaycols_{{objectname}}'); 43 save = $.cookie('_displaycols_{{objectname}}');
43 if (save != undefined) { 44 if (save != undefined) {
44 setting = save.split(';'); 45 setting = save.split(';');
45 for ( i = 0; i < setting.length; i++) { 46 for ( i = 0; i < setting.length; i++) {
46 if (setting[i].length > 0) { 47 if (setting[i].length > 0) {
47 splitlist = setting[i].split(':'); 48 splitlist = setting[i].split(':');
48 id = splitlist[0], v = splitlist[1]; 49 id = splitlist[0], v = splitlist[1];
49 if (v == 'true') { 50 if (v == 'true') {
50 $('.chbxtoggle#'+id).prop('checked', true); 51 $('.chbxtoggle#'+id).prop('checked', true);
51 } 52 }
52 else { 53 else {
53 $('.chbxtoggle#'+id).prop('checked', false); 54 $('.chbxtoggle#'+id).prop('checked', false);
55 }
54 } 56 }
55 } 57 }
56 } 58 }
57 }
58 59
59 // load cookie for number of entries to be displayed on page 60 // load cookie for number of entries to be displayed on page
60 pagesize = $.cookie('count'); 61 pagesize = $.cookie('count');
diff --git a/bitbake/lib/toaster/toastergui/templates/basetable_top.html b/bitbake/lib/toaster/toastergui/templates/basetable_top.html
index 037554b627..e43eb2ce12 100644
--- a/bitbake/lib/toaster/toastergui/templates/basetable_top.html
+++ b/bitbake/lib/toaster/toastergui/templates/basetable_top.html
@@ -211,10 +211,11 @@
211 <span class="divider-vertical"></span> 211 <span class="divider-vertical"></span>
212 <span class="help-inline" style="padding-top:5px;">Show rows:</span> 212 <span class="help-inline" style="padding-top:5px;">Show rows:</span>
213 <select style="margin-top:5px;margin-bottom:0px;" class="pagesize"> 213 <select style="margin-top:5px;margin-bottom:0px;" class="pagesize">
214 {% with "2 5 10 25 50 100" as list%} 214 {% with "2 5 10 25 50 100" as list%}
215{% for i in list.split %} <option value="{{i}}">{{i}}</option> 215 {% for i in list.split %}
216 {% endfor %} 216 <option value="{{i}}">{{i}}</option>
217 {% endwith %} 217 {% endfor %}
218 {% endwith %}
218 </select> 219 </select>
219 </div> 220 </div>
220 </div> 221 </div>