Commit df47cd53 authored by Leo Iannacone's avatar Leo Iannacone

Merge branch 'feature/new_header' into develop

parents f0db670a e1ee17f2
......@@ -35,9 +35,7 @@ Web template configuration
Title and description for the header
###
config.web.debomatic.architecture = "amd64"
config.web.title = "Deb-o-Matic web.ui"
config.web.description = "This is a web interface for debomatic over " +
config.web.debomatic.architecture
config.web.title = "Deb-o-Matic " + config.web.debomatic.architecture
###
Admin email and name to show in the home page.
......@@ -68,7 +66,6 @@ The default user preferences.
See /preferences page for more info
###
config.web.preferences.autoscroll = true
config.web.preferences.header = true
config.web.preferences.sidebar = true
config.web.preferences.glossy_theme = true
config.web.preferences.file_background = true
......
......@@ -134,15 +134,6 @@ function Page_Generic() {
};
this.preferences = function () {
if (config.preferences.header) {
$('#pageheader').show();
$('footer .info').hide();
$('.navbar .home-link').hide();
} else {
$('#pageheader').hide();
$('footer .info').show();
$('.navbar .home-link').show();
}
var bootstrap_theme_css = '/external_libs/bootstrap-3.2.0-dist/css/bootstrap-theme.min.css';
if (config.preferences.glossy_theme) {
if ($('head').find('link[href="' + bootstrap_theme_css + '"]').length === 0)
......
......@@ -11,11 +11,16 @@
margin-top: 20px;
}
.home-link {
cursor: pointer;
text-shadow: 0 1px 1px black;
}
.navbar .home-link .icon {
background: url('../images/debian-logo-small.png') right no-repeat;
width: 17px;
height: 50px;
margin-left: 10px;
margin-left: 14px;
}
.breadcrumb {
......
......@@ -4,7 +4,7 @@
<small class="copyright pull-right text-muted">
Fork me on <a href="https://github.com/LeoIannacone/debomatic-webui">github</a>
</small>
<small class="info pull-right text-muted"><%= web.debomatic.architecture %> (<%= version %>)</small>
<small class="info pull-right text-muted">v<%= version %> &bull;</small>
<div id="status" class="clearfix">
<span class="label label-default">status:</span>
<span class="debomatic idle text-muted">Idle</span>
......
......@@ -11,15 +11,10 @@
<body>
<div id="wrapper" class="container-fluid">
<header id="pageheader" onclick="window.location.href='/'">
<h1><%= web.title %> <small><%= version %></small></h1>
<p class="lead"><%= web.description %></p>
</header>
<nav class="navbar navbar-inverse" role="navigation">
<div class="navbar-header">
<span class="navbar-brand">Distributions</span>
<div onclick="window.location.href='/'" class="navbar-header home-link">
<span class="pull-left icon"></span>
<span class="navbar-brand">Deb-o-Matic <small><%= web.debomatic.architecture %></small></span>
</div>
<div class="collapse navbar-collapse">
<div id="distributions">
......@@ -33,10 +28,6 @@
<% if (web.paths.preferences) { %>
<li><a href="<%= web.paths.preferences %>">Preferences</a></li>
<% } %>
<li class="home-link">
<a class="pull-left" href="/">Home</a>
<span class="pull-right icon"></span>
</li>
</ul>
</div>
</div>
......
......@@ -16,8 +16,6 @@
</h4>
<dl class="dl-horizontal">
<dt>Show header</dt><dd>Hide header to have a minimized interface <span class="text-muted">as much as possible</span>.</dd>
<dt>Enable sidebar</dt><dd>Enable sidebar in <a href="<%= web.paths.distribution %>">distribution</a> page.</dd>
<dt>Glossy theme</dt><dd>Use a glossy theme for the interface. Not too much changes, just fancy.</dd>
......@@ -41,11 +39,6 @@
<h3 class="panel-title">Settings</h3>
</div>
<div class="panel-body">
<div class="checkbox">
<label>
<input id="header" type="checkbox"> Show header
</label>
</div>
<div class="checkbox">
<label>
<input id="sidebar" type="checkbox"> Enable sidebar
......@@ -91,4 +84,4 @@
</div>
</article>
<% include footer.ejs %>
\ No newline at end of file
<% include footer.ejs %>
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment