Skip to content

Commit

Permalink
Style fixes, adjustments for ftp popover table
Browse files Browse the repository at this point in the history
  • Loading branch information
guerler committed Aug 11, 2015
1 parent c7ad460 commit a8def9a
Show file tree
Hide file tree
Showing 8 changed files with 25 additions and 20 deletions.
Expand Up @@ -96,7 +96,7 @@ return Backbone.View.extend({

// add ftp file viewer
this.ftp = new Popover.View({
title : 'FTP files',
title : 'Choose FTP file:',
container : this.$('#source').find('.ui-button-menu'),
placement : 'right'
});
Expand Down
10 changes: 5 additions & 5 deletions client/galaxy/scripts/mvc/upload/upload-ftp.js
Expand Up @@ -112,7 +112,7 @@ return Backbone.View.extend({
$it.on('click', function() {
var model_index = self._find(ftp_file);
$icon.removeClass();
if (!model_index || !self.options.remove) {
if (!model_index) {
self.options.onadd(ftp_file);
$icon.addClass(self.options.class_remove);
} else {
Expand All @@ -123,7 +123,7 @@ return Backbone.View.extend({
});
} else {
// click triggers only change
$it.on('dblclick', function() {
$it.on('click', function() {
self.options.onchange(ftp_file);
});
}
Expand Down Expand Up @@ -164,9 +164,9 @@ return Backbone.View.extend({
_templateRow: function(options) {
return '<tr class="upload-ftp-row">' +
'<td class="_has_collection" style="display: none;"><div class="icon"/></td>' +
'<td class="label"><p>' + options.path + '</p></td>' +
'<td class="nonlabel">' + Utils.bytesToString(options.size) + '</td>' +
'<td class="nonlabel">' + options.ctime + '</td>' +
'<td class="ftp-name">' + options.path + '</td>' +
'<td class="ftp-size">' + Utils.bytesToString(options.size) + '</td>' +
'<td class="ftp-time">' + options.ctime + '</td>' +
'</tr>';
},

Expand Down
23 changes: 14 additions & 9 deletions client/galaxy/style/less/upload.less
Expand Up @@ -190,24 +190,29 @@
}
.upload-ftp-row {
cursor: pointer;
.label {
.ftp-name {
position: relative;
top: 3px;
width: 240px;
p {
width: inherit;
word-wrap: break-word;
}
word-wrap: break-word;
}
.nonlabel {
position: relative;
top: 3px;
.ftp-size {
width: 60px;
white-space: nowrap;
}
.ftp-time {
width: 165px;
white-space: nowrap;
}
}
.upload-ftp-row:hover {
&:extend(.grid .current);
}
th {
padding: 5px !important;
}
td {
padding: 8px 5px !important;
}
}

.upload-settings {
Expand Down
2 changes: 1 addition & 1 deletion static/maps/mvc/upload/composite/composite-row.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion static/maps/mvc/upload/upload-ftp.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit a8def9a

Please sign in to comment.