diff --git a/bitbake/lib/toaster/toastergui/static/css/default.css b/bitbake/lib/toaster/toastergui/static/css/default.css index 86cf67ad53..f97e6c4b76 100644 --- a/bitbake/lib/toaster/toastergui/static/css/default.css +++ b/bitbake/lib/toaster/toastergui/static/css/default.css @@ -5,7 +5,8 @@ /* style the version information */ .brand > a { color: #777; } .brand > a:hover { color: #999; text-decoration: none; } -.icon-info-sign.get-help { color: #777; font-size: 16px; margin-left: 5px;} +.icon-info-sign { color: #777; font-size: 16px; margin-left: 5px;} +.icon-info-sign:hover { color: #999; cursor: pointer; } /* Style the breadcrumb */ .breadcrumb { display: inline-block; background-color: transparent; } diff --git a/bitbake/lib/toaster/toastergui/static/js/libtoaster.js b/bitbake/lib/toaster/toastergui/static/js/libtoaster.js index 2dc5b0a0a1..ea1522f471 100644 --- a/bitbake/lib/toaster/toastergui/static/js/libtoaster.js +++ b/bitbake/lib/toaster/toastergui/static/js/libtoaster.js @@ -317,6 +317,9 @@ $(document).ready(function() { // initialise the tooltips for the download icons $(".icon-download-alt").tooltip({ container: 'body', html: true, delay: { show: 200 } }); + // initialise popover for debug information + $(".icon-info-sign").popover( { placement: 'bottom', html: true, container: 'body' }); + // linking directly to tabs $(function(){ var hash = window.location.hash; diff --git a/bitbake/lib/toaster/toastergui/templates/base.html b/bitbake/lib/toaster/toastergui/templates/base.html index 695ca5d2ca..62cc7ad94c 100644 --- a/bitbake/lib/toaster/toastergui/templates/base.html +++ b/bitbake/lib/toaster/toastergui/templates/base.html @@ -61,7 +61,7 @@ Toaster {% if DEBUG %} - + {% endif %} diff --git a/bitbake/lib/toaster/toastergui/views.py b/bitbake/lib/toaster/toastergui/views.py index 0284b1abcd..4960ba0e40 100755 --- a/bitbake/lib/toaster/toastergui/views.py +++ b/bitbake/lib/toaster/toastergui/views.py @@ -1731,7 +1731,8 @@ if toastermain.settings.MANAGED: "projects": Project.objects.all(), "MANAGED" : toastermain.settings.MANAGED, "DEBUG" : toastermain.settings.DEBUG, - "TOASTER_VERSION": toastermain.settings.TOASTER_VERSION, + "TOASTER_BRANCH": toastermain.settings.TOASTER_BRANCH, + "TOASTER_REVISION" : toastermain.settings.TOASTER_REVISION, } if 'project_id' in request.session: try: @@ -3104,8 +3105,8 @@ else: "projects": [], "MANAGED" : toastermain.settings.MANAGED, "DEBUG" : toastermain.settings.DEBUG, - "TOASTER_VERSION": toastermain.settings.TOASTER_VERSION, - + "TOASTER_BRANCH": toastermain.settings.TOASTER_BRANCH, + "TOASTER_REVISION" : toastermain.settings.TOASTER_REVISION, } diff --git a/bitbake/lib/toaster/toastermain/settings.py b/bitbake/lib/toaster/toastermain/settings.py index a7304fa167..80f26e0ce6 100644 --- a/bitbake/lib/toaster/toastermain/settings.py +++ b/bitbake/lib/toaster/toastermain/settings.py @@ -232,8 +232,8 @@ from os.path import dirname as DN SITE_ROOT=DN(DN(os.path.abspath(__file__))) import subprocess -TOASTER_VERSION = subprocess.Popen('git branch | grep "^* " | tr -d "* "', cwd = SITE_ROOT, shell=True, stdout=subprocess.PIPE, stderr=subprocess.PIPE).communicate()[0] -TOASTER_VERSION += " " + subprocess.Popen('git rev-parse HEAD ', cwd = SITE_ROOT, shell=True, stdout=subprocess.PIPE, stderr=subprocess.PIPE).communicate()[0] +TOASTER_BRANCH = subprocess.Popen('git branch | grep "^* " | tr -d "* "', cwd = SITE_ROOT, shell=True, stdout=subprocess.PIPE, stderr=subprocess.PIPE).communicate()[0] +TOASTER_REVISION = subprocess.Popen('git rev-parse HEAD ', cwd = SITE_ROOT, shell=True, stdout=subprocess.PIPE, stderr=subprocess.PIPE).communicate()[0] ROOT_URLCONF = 'toastermain.urls'