Commit 52e04d24 authored by Leo Iannacone's avatar Leo Iannacone

get all soruce in one click

parent c0c918ec
...@@ -19,6 +19,11 @@ var express = require('express'), ...@@ -19,6 +19,11 @@ var express = require('express'),
Broadcaster = require('./lib/broadcaster.js'); Broadcaster = require('./lib/broadcaster.js');
// serve dsc files as octet-stream
serve_static.mime.define({
'application/octet-stream': ['dsc']
});
app.set('views', __dirname + '/views'); app.set('views', __dirname + '/views');
app.set('view engine', 'ejs'); app.set('view engine', 'ejs');
app.use(serve_static(__dirname + '/public')); app.use(serve_static(__dirname + '/public'));
......
...@@ -24,7 +24,11 @@ ...@@ -24,7 +24,11 @@
</nav> </nav>
<div class="others"> <div class="others">
<nav id="sources"> <nav id="sources">
<h4>Sources</h4> <h4>Sources
<a class="btn btn-link" title="Get all sources in one click" onclick="download_all('#sources')">
<span class="glyphicon glyphicon-download-alt"></span>
</a>
</h4>
<ul></ul> <ul></ul>
</nav> </nav>
<nav id="debs"> <nav id="debs">
......
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