Commit 638e0b7a authored by Leo Iannacone's avatar Leo Iannacone

removed useless label from file data - removed home link in breadcrumb

parent 7934dcc4
...@@ -14,10 +14,8 @@ function __get_files_list_from_package(data, callback) { ...@@ -14,10 +14,8 @@ function __get_files_list_from_package(data, callback) {
file.path = path.join(package_path, f).replace(config.debomatic.path, config.routes.debomatic) file.path = path.join(package_path, f).replace(config.debomatic.path, config.routes.debomatic)
file.orig_name = f file.orig_name = f
file.name = f.split('_')[0] file.name = f.split('_')[0]
file.label = f.replace(file.name + '_', '')
file.extension = f.split('.').pop(); file.extension = f.split('.').pop();
if (file.extension == "deb" || file.extension == "ddeb") { if (file.extension == "deb" || file.extension == "ddeb") {
file.label = file.extension
data.package.debs.push(file); data.package.debs.push(file);
} }
else if (f.indexOf('.tar') >= 0 || file.extension == "changes" || file.extension == "dsc") { else if (f.indexOf('.tar') >= 0 || file.extension == "changes" || file.extension == "dsc") {
...@@ -102,11 +100,6 @@ function __send_distribution_packages (event_name, socket, data) { ...@@ -102,11 +100,6 @@ function __send_distribution_packages (event_name, socket, data) {
pack.name = info[0] pack.name = info[0]
pack.version = info[1] pack.version = info[1]
pack.orig_name = p pack.orig_name = p
if( data.package &&
pack.name == data.package.name &&
pack.version == data.package.version ) {
pack.selected = true;
}
data.distribution.packages.push(pack) data.distribution.packages.push(pack)
__send_package_status(socket, data, pack) __send_package_status(socket, data, pack)
}); });
......
...@@ -98,7 +98,7 @@ function Page_Distrubion(socket) ...@@ -98,7 +98,7 @@ function Page_Distrubion(socket)
if (socket_data.package.debs && socket_data.package.debs.length > 0) { if (socket_data.package.debs && socket_data.package.debs.length > 0) {
socket_data.package.debs.forEach(function(f){ socket_data.package.debs.forEach(function(f){
$('#debs ul').append('<li><a title="'+ f.orig_name +'" href="' + f.path + '">' + f.name +'</a> <span>.' + f.label + '</span></li>') $('#debs ul').append('<li><a title="'+ f.orig_name +'" href="' + f.path + '">' + f.name +'</a> <span>.' + f.extension + '</span></li>')
}) })
$('#debs').show() $('#debs').show()
} }
...@@ -179,7 +179,7 @@ function Page_Distrubion(socket) ...@@ -179,7 +179,7 @@ function Page_Distrubion(socket)
if (! hash ) if (! hash )
hash = window.location.hash hash = window.location.hash
hash = hash.replace('#', '') hash = hash.replace('#', '')
var new_html = '<li><a href="/">home</a></li>' var new_html = ''
var new_hash = '#' var new_hash = '#'
var info = hash.split('/') var info = hash.split('/')
for (var i = 0; i < info.length ; i++) { for (var i = 0; i < info.length ; i++) {
......
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