Permalink
Browse files

reorganize track table to restore some of previous look

  • Loading branch information...
1 parent 3c59cae commit 4b6f0f6c65ff235208d37e37682b08827c39c786 @lstein lstein committed May 22, 2011
Showing with 7 additions and 7 deletions.
  1. +1 −1 conf/languages/POSIX.pm
  2. +1 −1 conf/languages/en.pm
  3. +5 −5 lib/Bio/Graphics/Browser2/Render/HTML.pm
@@ -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.',
@@ -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...',
@@ -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):/;
@@ -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);
@@ -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>";
}
@@ -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;';

0 comments on commit 4b6f0f6

Please sign in to comment.