Skip to content

Commit

Permalink
reorganize track table to restore some of previous look
Browse files Browse the repository at this point in the history
  • Loading branch information
lstein committed May 22, 2011
1 parent 3c59cae commit 4b6f0f6
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion conf/languages/POSIX.pm
Expand Up @@ -149,7 +149,7 @@ END

SUBTRACK_INSTRUCTIONS => 'Select the tracks you wish to display. Sort the tracks by clicking on the column headings, or by clicking and dragging rows into position.',

SELECT_SUBTRACKS => '%d of %d subtracks selected',
SELECT_SUBTRACKS => 'showing %d/%d subtracks',

NO_TRACK_CITATION => 'There is no additional information about this track.',

Expand Down
2 changes: 1 addition & 1 deletion conf/languages/en.pm
Expand Up @@ -145,7 +145,7 @@ END

SUBTRACK_INSTRUCTIONS => 'Select the tracks you wish to display. Sort the tracks by clicking on the column headings, or by clicking and dragging rows into position.',

SELECT_SUBTRACKS => '%d of %d subtracks selected',
SELECT_SUBTRACKS => 'showing %d/%d subtracks',

EDIT => 'Edit File...',

Expand Down
10 changes: 5 additions & 5 deletions lib/Bio/Graphics/Browser2/Render/HTML.pm
Expand Up @@ -917,7 +917,7 @@ sub render_track_table {
my $balloon = $source->setting('balloon style') || 'GBubble';
my $cellid = 'datacell';

my @classes = 'track_title';
my @classes; # = 'track_title';
push @classes,'activeTrack' if $track_on;
push @classes,'favorite' if $favorite;
push @classes,'remote' if $label =~ /^(http|ftp|file):/;
Expand Down Expand Up @@ -962,7 +962,7 @@ sub render_track_table {
: '';

$label_sort{$label} = $key;
$labels{$label} = join(' ',$checkicon,$favoriteicon,$title,$help);
$labels{$label} = join(' ',$favoriteicon,span({-class=>'track_title'},$checkicon,$title),$help);

if (my ($selected,$total) = $self->subtrack_counts($label)) {
my $escaped_label = CGI::escape($label);
Expand Down Expand Up @@ -2005,10 +2005,10 @@ sub tableize {

my $cwidth = int(100/$columns+0.5) . '%';

my $html = start_table({-border=>0,-width=>'100%',-cellpadding=>0,-cellspacing=>0});
my $html = start_table({-border=>0,-width=>'100%'});

if (@column_labels) {
$html.="<tr><td></td>";
$html.="<tr valign='top'><td></td>";
for (my $column=0;$column<$columns;$column++) {
$html .= "<td><b>$column_labels[$column]</b> </td>";
}
Expand All @@ -2017,7 +2017,7 @@ sub tableize {

for (my $row=0;$row<$rows;$row++) {
# do table headers
$html .= qq(<tr class="searchtitle";display=block>);
$html .= qq(<tr class="searchtitle" valign="top">);
$html .= "<td><b>$row_labels[$row]</b></td>" if @row_labels;
for (my $column=0;$column<$columns;$column++) {
my $label = $labelnames->[$column*$rows + $row] || '&nbsp;';
Expand Down

0 comments on commit 4b6f0f6

Please sign in to comment.