]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commitdiff
toaster: Base html fix to set the page title
authorRavi Chintakunta <ravi.chintakunta@timesys.com>
Wed, 15 Jan 2014 19:55:06 +0000 (14:55 -0500)
committerAlexandru DAMIAN <alexandru.damian@intel.com>
Mon, 27 Jan 2014 15:19:49 +0000 (15:19 +0000)
Set title of the page if the context includes objectname.

Signed-off-by: Ravi Chintakunta <ravi.chintakunta@timesys.com>
Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com>
lib/toaster/toastergui/templates/base.html

index 492a0f561a6e7543d52e285abc433c0a42906e92..c8c1daeb75ad7e326d9aaf026bf713148dce33c2 100644 (file)
@@ -2,7 +2,7 @@
 {% load static %}
 <html>
     <head>
-        <title>Toaster</title>
+        <title>{% if objectname %} {{objectname|title}} - {% endif %}Toaster</title>
 <link rel="stylesheet" href="{% static 'css/bootstrap.min.css' %}" type="text/css">
 <link rel="stylesheet" href="{% static 'css/bootstrap-responsive.min.css' %}" type='text/css'>
 <link rel="stylesheet" href="{% static 'css/font-awesome.min.css' %}" type='text/css'>