Commit 02318e6b authored by Leo Iannacone's avatar Leo Iannacone

added home page

parent 1e2d650b
......@@ -18,6 +18,14 @@ config.web.title = "deb-o-matic web.ui"
config.web.description = "This is a web interface for debomatic"
config.web.footer = "Fork me on github.com"
// debomatic configuration exportable for web
config.web.debomatic = {}
config.web.debomatic.admin = {}
config.web.debomatic.admin.name = "Leo Iannacone"
config.web.debomatic.admin.email = "l3on AT ubuntu DOT com" // please use this SPAMFREE form - it will be converted client side by javascript
config.web.debomatic.incoming = config.debomatic.path
config.web.debomatic.architecture = 'amd64'
// default ui settings
config.web.preferences = {}
config.web.preferences.autoscroll = true
......@@ -52,6 +60,7 @@ config.events.client.file = _event_get_set('file')
config.events.client.file_newcontent = 'file_newcontent'
config.events.client.status = 'status'
// packages status according with debomatic.json file
config.status = {}
config.status.package = {}
config.status.package.building = 'building'
......@@ -62,6 +71,7 @@ config.status.package.successed = 'build-successed'
config.web.paths = config.routes
config.web.events = config.events
config.web.status = config.status
config.web.host = config.host
config.web.hostname = config.host + ((config.port == 80) ? '' : ':' + config.port)
module.exports = config
......@@ -11,3 +11,13 @@ if (window.location.pathname == config.paths.distribution) {
else if (window.location.pathname == config.paths.preferences) {
preferences.initPage()
}
else if (window.location.pathname == '/') {
// convert email addresses in the right format
var emails = $(".email")
$.each(emails, function (){
var real_email = $(this).html().replace('AT','@').replace('DOT','.').replace(/ /g,'')
real_email = '<a href="mailto:' + real_email + '">' + real_email + '</a>'
$(this).html(real_email)
})
}
\ No newline at end of file
......@@ -22,6 +22,20 @@
display: none;
}
.page {
max-width: 1000px;
/* margin: 0 auto;*/
padding-bottom: 40px;
}
#home .dput pre {
background: none;
font-size: 15px;
border: 0;
padding: 0;
margin: 0;
}
aside .nav-pills li {
line-height: 10px;
}
......
<article id="home" class="page row">
<header class="col-md-12">
<h1>Welcome!</h1>
<p class="text-muted lead">This is <%= web.debomatic.architecture %> Debian source package build service powered by <a class="alert-link" href="http://launchpad.net/debomatic">Deb-o-Matic</a></p>
</header>
<section>
<article id="about" class="col-md-6">
<section>
<p>Welcome to debomatic web interface. Here you can control the status of the service,
browse the packages already built and real-time check the building of a new incoming
package.
<p>Most of these actions can be taken in
<a href="<%= web.paths.distribution %>">distribution</a> page. </p>
<p>If you want a bit customization
please visit page <a href="<%= web.paths.preferences %>">preferences</a>.</p>
<p><a class="btn btn-lg btn-success">Let's start!</a></p>
</section>
</article>
<article id="account-request" class="col-md-6">
<div class="panel panel-default panel-primary">
<div class="panel-heading">
<h3 class="panel-title">Account Request</h3>
</div>
<div class="panel-body">
<p>For account requests please mail <span class="email"><%= web.debomatic.admin.email %></span>.</p>
</div>
</div>
<section>
<p class="alert alert-warning"><strong>Remember:</strong> if you do not find here what you are
looking for you are always able to browse debomatic static directory
in <a class="alert-link" href="<%= web.paths.debomatic %>">this page</a>.</p>
</section>
</article>
<article id="configuration" >
<header class="lead col-md-12">
To upload packages, you may want to add these entries to your dput configuration:
</header>
<section>
<!-- dput -->
<div class="dput col-md-6">
<div class="panel panel-info">
<div class="panel-heading">
<h3 class="panel-title">dput</h3>
</div>
<div class="panel-body">
<pre>
[debomatic-<%= web.debomatic.architecture %>]
fqdn = <%= web.host %>
incoming = <%= web.debomatic.incoming %>
login = debomatic
method = scp
allow_unsigned_uploads = 0
allow_dcut = 1
scp_compress = 1
</pre>
</div>
</div>
</div>
<!-- /dput -->
<!-- dput-ng -->
<div class="dput col-md-6">
<div class="panel panel-info">
<div class="panel-heading">
<h3 class="panel-title">dput-ng</h3>
</div>
<div class="panel-body">
<pre>
{
"allow_dcut": true,
"meta": "debomatic",
"fqdn": "<%= web.host %>",
"incoming": "<%= web.debomatic.incoming %>",
"login": "debomatic",
"method": "scp",
"check-debs": { "skip": true }
}</pre>
</div>
</div>
</div>
<!-- /dput-ng -->
</section>
</article> <!-- /#configuration -->
<article id="about-debomatic" class="col-md-6">
<header><h3>About debomatic</h3></header>
<section>
<p><strong>Deb-o-Matic</strong> is an easy to use utility to build Debian source packages, meant
to help developers to automate building of their packages with limited user interaction
and a simple startup configuration.</p>
<p>It provides some useful features such as automatic chroot update, rebuilds of
source packages, post-build checks, and much more.</p>
<p>It is also extendable using modules that are loaded and executed
during the build phases.</p>
<p><a class="btn btn-primary" href="http://launchpad.net/debomatic">Get more!</a></p>
</section>
</article>
<article id="about-debomatic-webui" class="col-md-6">
<header><h3>About this interface</h3></header>
<section>
<p><strong>debomatic-webui</strong> is a web interface for Deb-o-Matic aims to give to user a simple
way to browse logs and to know what's going on debomatic build service providing
a real-time packages status.</p>
<p>This interface is built up on <a href="//nodejs.org">node</a> platform
and uses intensely <a href="//socket.io">socket.io</a> and <a href="//jquery.com/">jquery</a> technologies.</p>
<p>Whenever you want leave a suggestion or file a bug report, please open a new <a href="https://github.com/LeoIannacone/debomatic-webui/issues">issue</a>.</p>
<p><a class="btn btn-primary" href="https://github.com/LeoIannacone/debomatic-webui">Get more!</a></p>
</section>
</article>
</section>
</article>
\ No newline at end of file
<article class="page">
<header><h2>Preferences</h2></header>
<div class="row">
......@@ -79,3 +80,4 @@
</div> <!-- /#prefernces -->
</div>
</div>
</article>
\ No newline at end of file
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