mirror of
https://github.com/ohwgiles/laminar.git
synced 2024-10-27 20:34:20 +00:00
add favicon, nav logo
This commit is contained in:
parent
78a0ef9ed8
commit
cf9bee07db
@ -57,7 +57,8 @@ add_custom_command(OUTPUT laminar.capnp.c++ laminar.capnp.h
|
||||
|
||||
# Zip and compile statically served resources
|
||||
generate_compressed_bins(${CMAKE_SOURCE_DIR}/src/resources index.html js/app.js
|
||||
tpl/home.html tpl/job.html tpl/run.html tpl/log.html tpl/browse.html)
|
||||
tpl/home.html tpl/job.html tpl/run.html tpl/log.html tpl/browse.html
|
||||
favicon.ico favicon-152.png icon.png)
|
||||
# Download 3rd-party frontend JS libs...
|
||||
file(DOWNLOAD https://ajax.googleapis.com/ajax/libs/angularjs/1.3.14/angular.min.js
|
||||
js/angular.min.js EXPECTED_MD5 b1137641dbb512a60e83d673f7e2d98f)
|
||||
|
@ -28,6 +28,9 @@ Resources::Resources()
|
||||
{
|
||||
// TODO: Content-type
|
||||
INIT_RESOURCE("/", index_html);
|
||||
INIT_RESOURCE("/favicon.ico", favicon_ico);
|
||||
INIT_RESOURCE("/favicon-152.png", favicon_152_png);
|
||||
INIT_RESOURCE("/icon.png", icon_png);
|
||||
INIT_RESOURCE("/js/app.js", js_app_js);
|
||||
INIT_RESOURCE("/js/Chart.HorizontalBar.js", js_Chart_HorizontalBar_js);
|
||||
INIT_RESOURCE("/js/ansi_up.js", js_ansi_up_js);
|
||||
|
BIN
src/resources/favicon-152.png
Normal file
BIN
src/resources/favicon-152.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 7.7 KiB |
BIN
src/resources/favicon.ico
Normal file
BIN
src/resources/favicon.ico
Normal file
Binary file not shown.
After Width: | Height: | Size: 5.3 KiB |
BIN
src/resources/icon.png
Normal file
BIN
src/resources/icon.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 1.1 KiB |
@ -5,6 +5,7 @@
|
||||
<meta charset="utf-8">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<link rel="apple-touch-icon-precomposed" href="/favicon-152.png">
|
||||
<title>Laminar</title>
|
||||
<script src="/js/angular.min.js"></script>
|
||||
<script src="/js/angular-route.min.js"></script>
|
||||
@ -16,9 +17,11 @@
|
||||
<script src="/js/app.js"></script>
|
||||
<style>
|
||||
body, html { height: 100%; }
|
||||
.navbar { margin-bottom: 0; }
|
||||
.navbar-brand { padding: 13px 15px; font-family: 'Cantarell';}
|
||||
.navbar-inverse { border: 0; }
|
||||
.navbar-brand { margin: 0 -15px; padding: 7px 15px }
|
||||
a.navbar-btn { color: #9d9d9d; }
|
||||
a.navbar-btn.active { color: #fff; }
|
||||
a.navbar-btn:hover { color: #fff; text-decoration: none; }
|
||||
a.navbar-btn:focus { color: #fff; }
|
||||
canvas {
|
||||
width: 100% !important;
|
||||
max-width: 800px;
|
||||
@ -33,10 +36,10 @@
|
||||
<body>
|
||||
<nav class="navbar navbar-inverse">
|
||||
<div class="container-fluid">
|
||||
<a class="navbar-brand" href="/">laminar</a>
|
||||
<ul class="nav navbar-nav">
|
||||
<li ng-class="{active:active('/')}"><a href="/jobs">Jobs</a></li>
|
||||
</ul>
|
||||
<div>
|
||||
<a class="navbar-brand" href="/"><img src="/icon.png"></a>
|
||||
<a class="btn navbar-btn" href="/jobs">Jobs</a>
|
||||
</div>
|
||||
</div>
|
||||
</nav>
|
||||
<div ng-view></div>
|
||||
|
@ -146,9 +146,6 @@ angular.module('laminar',['ngRoute','ngSanitize'])
|
||||
}
|
||||
}
|
||||
});
|
||||
$scope.active = function(url) {
|
||||
return false;
|
||||
}
|
||||
$scope.runIcon = Laminar.runIcon;
|
||||
timeUpdater = $interval(function() {
|
||||
$scope.jobsRunning.forEach(function(o){
|
||||
|
Loading…
Reference in New Issue
Block a user