summaryrefslogtreecommitdiffstats
path: root/bitbake
diff options
context:
space:
mode:
Diffstat (limited to 'bitbake')
-rw-r--r--bitbake/lib/toaster/toastergui/static/css/default.css1
-rw-r--r--bitbake/lib/toaster/toastergui/templates/filtersnippet.html5
-rw-r--r--bitbake/lib/toaster/toastergui/templatetags/projecttags.py6
3 files changed, 12 insertions, 0 deletions
diff --git a/bitbake/lib/toaster/toastergui/static/css/default.css b/bitbake/lib/toaster/toastergui/static/css/default.css
index 53a3fee19f..d960f4bd83 100644
--- a/bitbake/lib/toaster/toastergui/static/css/default.css
+++ b/bitbake/lib/toaster/toastergui/static/css/default.css
@@ -105,6 +105,7 @@ select { width: auto; }
105.no-results { margin: 10px 0; } 105.no-results { margin: 10px 0; }
106.task-name { margin-left: 7px; } 106.task-name { margin-left: 7px; }
107.icon-hand-right {color: #ccccc; } 107.icon-hand-right {color: #ccccc; }
108.help-inline { margin: 5px; }
108 109
109 110
110 111
diff --git a/bitbake/lib/toaster/toastergui/templates/filtersnippet.html b/bitbake/lib/toaster/toastergui/templates/filtersnippet.html
index e0e1181878..a72eeaa125 100644
--- a/bitbake/lib/toaster/toastergui/templates/filtersnippet.html
+++ b/bitbake/lib/toaster/toastergui/templates/filtersnippet.html
@@ -28,6 +28,11 @@
28 </div> 28 </div>
29 <div class="modal-footer"> 29 <div class="modal-footer">
30 <button type="submit" class="btn btn-primary">Apply</button> 30 <button type="submit" class="btn btn-primary">Apply</button>
31 {% if request.GET.filter %}
32 {% if request.GET.filter|string_remove_regex:':.*' != f.options.0.1|string_remove_regex:':.*' %}
33 <span class="help-inline pull-left">You can only apply one filter to the table. This filter will override the current filter.</span>
34 {% endif %}
35 {% endif %}
31 </div> 36 </div>
32</form> 37</form>
33 38
diff --git a/bitbake/lib/toaster/toastergui/templatetags/projecttags.py b/bitbake/lib/toaster/toastergui/templatetags/projecttags.py
index e7b23cbff2..39e92ce776 100644
--- a/bitbake/lib/toaster/toastergui/templatetags/projecttags.py
+++ b/bitbake/lib/toaster/toastergui/templatetags/projecttags.py
@@ -189,6 +189,12 @@ def string_slice(strvar,slicevar):
189 return strvar[int(first):int(last)] 189 return strvar[int(first):int(last)]
190 190
191@register.filter 191@register.filter
192def string_remove_regex(value,ex):
193 """ remove sub-string of string that matches regex
194 """
195 return re.sub(ex, '', value)
196
197@register.filter
192def filtered_installedsize(size, installed_size): 198def filtered_installedsize(size, installed_size):
193 """If package.installed_size not null and not empty return it, 199 """If package.installed_size not null and not empty return it,
194 else return package.size 200 else return package.size