[LNT] r176928 - Added wrench page header widget image for global status page.
Michael Gottesman
mgottesman at apple.com
Tue Mar 12 22:44:29 PDT 2013
Author: mgottesman
Date: Wed Mar 13 00:44:29 2013
New Revision: 176928
URL: http://llvm.org/viewvc/llvm-project?rev=176928&view=rev
Log:
Added wrench page header widget image for global status page.
Added:
lnt/trunk/lnt/server/ui/static/cog.svg
Modified:
lnt/trunk/lnt/server/ui/static/v4_global_status.css
lnt/trunk/lnt/server/ui/templates/v4_global_status.html
lnt/trunk/setup.py
Added: lnt/trunk/lnt/server/ui/static/cog.svg
URL: http://llvm.org/viewvc/llvm-project/lnt/trunk/lnt/server/ui/static/cog.svg?rev=176928&view=auto
==============================================================================
--- lnt/trunk/lnt/server/ui/static/cog.svg (added)
+++ lnt/trunk/lnt/server/ui/static/cog.svg Wed Mar 13 00:44:29 2013
@@ -0,0 +1,67 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<!-- Created with Inkscape (http://www.inkscape.org/) -->
+
+<svg
+ xmlns:dc="http://purl.org/dc/elements/1.1/"
+ xmlns:cc="http://creativecommons.org/ns#"
+ xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
+ xmlns:svg="http://www.w3.org/2000/svg"
+ xmlns="http://www.w3.org/2000/svg"
+ xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
+ xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
+ width="24"
+ height="24"
+ id="svg2"
+ version="1.1"
+ inkscape:version="0.48.4 r9939"
+ sodipodi:docname="cog.svg">
+ <defs
+ id="defs4" />
+ <sodipodi:namedview
+ id="base"
+ pagecolor="#ffffff"
+ bordercolor="#666666"
+ borderopacity="1.0"
+ inkscape:pageopacity="0.0"
+ inkscape:pageshadow="2"
+ inkscape:zoom="11.313708"
+ inkscape:cx="14.288933"
+ inkscape:cy="12.584818"
+ inkscape:document-units="px"
+ inkscape:current-layer="layer2"
+ showgrid="false"
+ inkscape:window-width="1440"
+ inkscape:window-height="802"
+ inkscape:window-x="0"
+ inkscape:window-y="0"
+ inkscape:window-maximized="0"
+ width="24px" />
+ <metadata
+ id="metadata7">
+ <rdf:RDF>
+ <cc:Work
+ rdf:about="">
+ <dc:format>image/svg+xml</dc:format>
+ <dc:type
+ rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
+ </cc:Work>
+ </rdf:RDF>
+ </metadata>
+ <g
+ inkscape:label="Layer 1"
+ inkscape:groupmode="layer"
+ id="layer1"
+ transform="translate(0,-1028.3622)" />
+ <g
+ inkscape:groupmode="layer"
+ id="layer2"
+ inkscape:label="Layer"
+ transform="translate(0,-1028.3622)">
+ <path
+ style="fill:#4d4d4d;fill-opacity:1"
+ d="m 10.025886,21.990145 -0.02379,-1.958507 -0.5755412,-0.19409 C 9.1100098,19.730799 8.5951857,19.516528 8.2825042,19.36139 L 7.7139923,19.079322 6.3379569,20.453342 4.9619213,21.827361 3.5711524,20.434551 2.1803835,19.041742 3.5542794,17.667846 4.9281754,16.29395 4.6438909,15.723979 C 4.4875344,15.410496 4.2686871,14.895474 4.1575634,14.579485 l -0.202043,-0.574524 -1.9485556,-0.02379 -1.94855553,-0.02379 0,-1.941162 0,-1.941162 L 2.0077846,10.051273 3.95716,10.027485 4.1801316,9.3645727 C 4.3027659,8.9999708 4.5262642,8.4703854 4.6767944,8.1877163 L 4.9504856,7.6737725 3.5650754,6.2863294 2.1796653,4.8988864 3.5497335,3.5309571 4.9198019,2.163028 6.3119016,3.5476853 7.7040014,4.9323426 8.2785256,4.6408478 C 8.594514,4.4805256 9.1215295,4.2592796 9.4496712,4.1491898 l 0.5966218,-0.2001632 0,-1.9326152 0,-1.9326152 1.944543,0 1.944544,0 0,1.9382718 0,1.9382717 0.464039,0.1358259 c 0.255221,0.074704 0.782237,0.2921079 1.171145,0.4831191 l 0.707107,0.3472932 1.39246,-!
1.3821341
1.392459,-1.3821341 1.39108,1.3910799 1.391079,1.3910799 -1.382134,1.3924594 -1.382133,1.3924594 0.347292,0.7071068 c 0.191012,0.3889087 0.408416,0.9159242 0.48312,1.1711456 l 0.135826,0.4640393 1.938272,0 1.938271,0 0,1.944543 0,1.944544 -1.937285,0 -1.937285,0 -0.229872,0.685009 c -0.12643,0.376756 -0.349566,0.90221 -0.495858,1.167674 l -0.265985,0.482665 1.393526,1.395571 1.393528,1.395571 -1.367929,1.370068 -1.36793,1.370069 -1.381164,-1.37914 -1.381164,-1.37914 -0.652805,0.311855 c -0.359044,0.171521 -0.891454,0.391531 -1.183136,0.488912 l -0.53033,0.177055 -0.02379,1.950857 -0.02379,1.950857 -1.941162,0 -1.941162,0 -0.02379,-1.958505 z m 3.906181,-3.554444 c 2.093591,-0.60639 3.916021,-2.464061 4.524016,-4.6115 0.162061,-0.572398 0.199015,-0.924972 0.198765,-1.896366 -2.65e-4,-1.060667 -0.02673,-1.271807 -0.238098,-1.90035 C 17.751706,8.0498736 16.361082,6.5537842 14.447429,5.7571287 13.565156,5.3898374 12.701429,5.2636026 11.523404,5.329779 8.6532409,5.4910123 6.182!
7652,7.57
64523 5.4871746,10.425233 c -0.2353363,0.963816 -0.219345,2.479979 0.035704,3.385201 0.5827047,2.068138 1.9768269,3.581108 4.1231195,4.474612 1.1450975,0.476705 2.9422655,0.539875 4.2860685,0.150655 z"
+ id="path4006"
+ inkscape:connector-curvature="0"
+ transform="translate(0,1028.3622)" />
+ </g>
+</svg>
Modified: lnt/trunk/lnt/server/ui/static/v4_global_status.css
URL: http://llvm.org/viewvc/llvm-project/lnt/trunk/lnt/server/ui/static/v4_global_status.css?rev=176928&r1=176927&r2=176928&view=diff
==============================================================================
--- lnt/trunk/lnt/server/ui/static/v4_global_status.css (original)
+++ lnt/trunk/lnt/server/ui/static/v4_global_status.css Wed Mar 13 00:44:29 2013
@@ -1,4 +1,23 @@
+/* Page Header Styles */
+
+#settings-wrench {
+ float: right;
+ border-right: 1px solid #DFE0E3;
+ box-shadow: 1px 0 0 #BFC3C3;
+ line-height: 20px;
+ padding: 4.5px 10px 3px 10px;
+ margin-right: -10px;
+}
+
+#settings-wrench li {
+ margin: 0px;
+}
+
+#nav-dbselector {
+ padding-left: 0px;
+}
+
/* Table Styles */
table#data-table tr {
width: 100%;
Modified: lnt/trunk/lnt/server/ui/templates/v4_global_status.html
URL: http://llvm.org/viewvc/llvm-project/lnt/trunk/lnt/server/ui/templates/v4_global_status.html?rev=176928&r1=176927&r2=176928&view=diff
==============================================================================
--- lnt/trunk/lnt/server/ui/templates/v4_global_status.html (original)
+++ lnt/trunk/lnt/server/ui/templates/v4_global_status.html Wed Mar 13 00:44:29 2013
@@ -46,6 +46,41 @@
{% block title %}Global Status - {{ selected_field.title }}{% endblock %}
+{% block page_header %}
+ {# LNT Instance Title #}
+ <a href="{{url_for('index')}}" class="header-title">
+ <h2>{{old_config.name}}</h2>
+ </a>
+
+ {# Navigation Breadcrumbs #}
+ <span id="nav-breadcrumbs">
+ <ul id="navlist" class="nav">
+ {% for short_name,path in components %}
+ <li><a href="{{ path }}">{{short_name}}</a></li>
+ <li>|</li>
+ {% endfor %}
+ <li>{{ self.title() }}</li>
+ </ul>
+ </span>
+
+ {# Database Selector #}
+ <span id="nav-dbselector">
+ <form method="get" action="{{ url_for('select_db') }}" class="nav">
+ <input type="hidden" name="path" value="{{ request.path }}"/>
+ <label>Database:</label>
+ <select name="db" onchange="submit()">
+ {% for name in old_config.databases.keys()|sort %}
+ <option{{" selected" if name == g.db_name else ""}}>{{ name }}</option>
+ {% endfor %}
+ </select>
+ <input type="submit" value="Go"/>
+ </form>
+ </span>
+
+ {# Settings Wrench #}
+ <img id="settings-wrench" src="{{ url_for('.static', filename='cog.svg') }}"></img>
+{% endblock %}
+
{% block body %}
<div id="emperor-control">
Modified: lnt/trunk/setup.py
URL: http://llvm.org/viewvc/llvm-project/lnt/trunk/setup.py?rev=176928&r1=176927&r2=176928&view=diff
==============================================================================
--- lnt/trunk/setup.py (original)
+++ lnt/trunk/setup.py Wed Mar 13 00:44:29 2013
@@ -70,6 +70,7 @@ http://llvm.org/svn/llvm-project/lnt/tru
package_data = {'lnt.server.ui': ['static/*.ico',
'static/*.js',
'static/*.css',
+ 'static/*.svg',
'static/flot/*.min.js',
'static/jquery/**/*.min.js',
'templates/*.html',
More information about the llvm-commits
mailing list