Commit 269c80c5 authored by Leo Iannacone's avatar Leo Iannacone

always show datestamp in file view

parent cf499155
......@@ -281,6 +281,26 @@ function Page_Distrubion(socket) {
query_data.package = view.package;
debug_socket('emit', _e.package_files_list, query_data);
socket.emit(_e.package_files_list, query_data);
files.get_datestamp();
}
},
get_datestamp: function (socket_data) {
if (Utils.check_view_package(view)) {
if (socket_data && socket_data.package != view.package.orig_name)
return;
var url = config.paths.debomatic + '/' +
view.distribution.name + '/pool/' +
view.package.orig_name + '/' +
view.package.orig_name + '.datestamp';
debug(2, 'getting datestamp');
$.get(url, function (data) {
data = data.replace('Build finished', 'finished');
data = data.replace('Elapsed', 'elapsed');
data = data.replace(/\n$/g, '');
data = data.replace(/\n/g, ' - ');
data = data.replace(/at /g, '');
$("#file .datestamp").html(data);
});
}
},
select: function () {
......@@ -621,6 +641,7 @@ function Page_Distrubion(socket) {
socket.on(config.events.broadcast.status_update, function (socket_data) {
packages.set_status(socket_data);
sticky.set_status(socket_data);
files.get_datestamp(socket_data);
});
socket.on(_e.package_files_list, function (socket_data) {
......
......@@ -65,6 +65,7 @@
</header>
<div id="welcome"></div>
<div id="file">
<h5><span class="label label-default datestamp"></span></h5>
<pre></pre>
<div id="fileOffset"></div>
</div>
......
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