Skip to content
This repository
  • 4 commits
  • 3 files changed
  • 0 comments
  • 1 contributor
4  conf/languages/POSIX.pm
@@ -108,6 +108,8 @@ END
108 108
     
109 109
    CLEAR_FAV     => 'Clear All Favorites',
110 110
 
  111
+   ADDED_TO     => 'Add track to favorites',
  112
+
111 113
 #############
112 114
 
113 115
 
@@ -149,7 +151,7 @@ END
149 151
 
150 152
    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.',
151 153
 
152  
-   SELECT_SUBTRACKS   => '%d of %d subtracks selected',
  154
+   SELECT_SUBTRACKS   => 'showing %d/%d subtracks',
153 155
 
154 156
    NO_TRACK_CITATION => 'There is no additional information about this track.',
155 157
 
4  conf/languages/en.pm
@@ -104,6 +104,8 @@ END
104 104
     
105 105
    CLEAR_FAV     => 'Clear All Favorites',
106 106
 
  107
+   ADDED_TO      => 'Add track to favorites',
  108
+
107 109
 #############
108 110
 
109 111
 
@@ -145,7 +147,7 @@ END
145 147
 
146 148
    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.',
147 149
 
148  
-   SELECT_SUBTRACKS   => '%d of %d subtracks selected',
  150
+   SELECT_SUBTRACKS   => 'showing %d/%d subtracks',
149 151
 
150 152
    EDIT       => 'Edit File...',
151 153
 
12  lib/Bio/Graphics/Browser2/Render/HTML.pm
@@ -917,7 +917,7 @@ sub render_track_table {
917 917
 	my $balloon = $source->setting('balloon style') || 'GBubble';
918 918
 	my $cellid = 'datacell';
919 919
 
920  
-	my @classes = 'track_title';
  920
+	my @classes; # = 'track_title';
921 921
 	push @classes,'activeTrack' if $track_on;
922 922
 	push @classes,'favorite'    if $favorite;
923 923
 	push @classes,'remote'      if $label =~ /^(http|ftp|file):/;
@@ -933,9 +933,11 @@ sub render_track_table {
933 933
 	#if the track has already been favorited, the image source is made into the yellow star
934 934
 	my $star      = $favorite ? 'ficon_2.png' : 'ficon.png';
935 935
 	my $class     = $favorite ? 'star favorite' : 'star';
  936
+	my $show_fav  = $self->translate('ADDED_TO');
936 937
 	my $favoriteicon  = img({-class =>  $class,
937 938
 				-id      => "star_$label",
938 939
 				-onClick => "togglestars('$label')",
  940
+				-onMouseOver => "GBubble.showTooltip(event,'$show_fav')",
939 941
 				-style => 'cursor:pointer;',
940 942
 				-src   => "$button_url/$star"}
941 943
 	    );
@@ -962,7 +964,7 @@ sub render_track_table {
962 964
 	    : '';
963 965
 	
964 966
 	$label_sort{$label}  = $key;
965  
-	$labels{$label}      = join(' ',$checkicon,$favoriteicon,$title,$help);
  967
+	$labels{$label}      = join(' ',$favoriteicon,span({-class=>'track_title'},$checkicon,$title),$help);
966 968
 	
967 969
 	if (my ($selected,$total) = $self->subtrack_counts($label)) {
968 970
 	    my $escaped_label = CGI::escape($label);
@@ -2005,10 +2007,10 @@ sub tableize {
2005 2007
 
2006 2008
   my $cwidth = int(100/$columns+0.5) . '%';
2007 2009
  
2008  
-  my $html = start_table({-border=>0,-width=>'100%',-cellpadding=>0,-cellspacing=>0});
  2010
+  my $html = start_table({-border=>0,-width=>'100%'});
2009 2011
 
2010 2012
   if (@column_labels) {
2011  
-      $html.="<tr><td></td>";
  2013
+      $html.="<tr valign='top'><td></td>";
2012 2014
       for (my $column=0;$column<$columns;$column++) {
2013 2015
 	  $html .= "<td><b>$column_labels[$column]</b> </td>";
2014 2016
       }
@@ -2017,7 +2019,7 @@ sub tableize {
2017 2019
 
2018 2020
   for (my $row=0;$row<$rows;$row++) {
2019 2021
     # do table headers
2020  
-    $html .= qq(<tr class="searchtitle";display=block>);
  2022
+    $html .= qq(<tr class="searchtitle" valign="top">);
2021 2023
     $html .= "<td><b>$row_labels[$row]</b></td>" if @row_labels;
2022 2024
     for (my $column=0;$column<$columns;$column++) {
2023 2025
 	my $label    = $labelnames->[$column*$rows + $row] || '&nbsp;';

No commit comments for this range

Something went wrong with that request. Please try again.