[LON-CAPA-cvs] cvs: loncom /interface loncommon.pm lonindexer.pm

droeschl droeschl@source.lon-capa.org
Tue, 17 Mar 2009 23:11:20 -0000


droeschl		Tue Mar 17 23:11:20 2009 EDT

  Modified files:              
    /loncom/interface	loncommon.pm lonindexer.pm 
  Log:
  Styles related to earlier changes of "Browse Resources" optimized.
  
  
Index: loncom/interface/loncommon.pm
diff -u loncom/interface/loncommon.pm:1.770 loncom/interface/loncommon.pm:1.771
--- loncom/interface/loncommon.pm:1.770	Tue Mar 17 21:05:06 2009
+++ loncom/interface/loncommon.pm	Tue Mar 17 23:11:20 2009
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # a pile of common routines
 #
-# $Id: loncommon.pm,v 1.770 2009/03/17 21:05:06 droeschl Exp $
+# $Id: loncommon.pm,v 1.771 2009/03/17 23:11:20 droeschl Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -4556,8 +4556,17 @@
 }
 
 .LC_icon {
-  border: 0px;
+  border: none;
+}
+
+.LC_fileicon {
+  border: none;
+  height: 1.3em;
+  vertical-align: text-bottom;
+  margin-right: 0.3em;
+  text-decoration:none;
 }
+
 .LC_indexer_icon {
   border: 0px;
   height: 22px;
@@ -4565,7 +4574,7 @@
 .LC_docs_spacer {
   width: 25px;
   height: 1px;
-  border: 0px;
+  border: none;
 }
 
 .LC_internal_info {
@@ -5910,7 +5919,7 @@
 	font-weight: bold;
 	font-style: normal;
 }
-
+table.LC_tableBrowseRes, 
 table.LC_tableOfContent{
         border:none;
 	border-spacing: 1;
@@ -5918,11 +5927,13 @@
 	background-color: #FFFFFF;
 	font-size: 90%;
 }
+table.LC_tableBrowseRes a,
 table.LC_tableOfContent a {
-        background-color:transparent;
+        background-color: transparent;
 	text-decoration: none;
 }
 
+table.LC_tableBrowseRes tr.LC_trOdd,
 table.LC_tableOfContent tr.LC_trOdd{
 	background-color: #EEEEEE;
 }
Index: loncom/interface/lonindexer.pm
diff -u loncom/interface/lonindexer.pm:1.191 loncom/interface/lonindexer.pm:1.192
--- loncom/interface/lonindexer.pm:1.191	Tue Mar 17 22:27:44 2009
+++ loncom/interface/lonindexer.pm	Tue Mar 17 23:11:20 2009
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # Directory Indexer
 #
-# $Id: lonindexer.pm,v 1.191 2009/03/17 22:27:44 schulted Exp $
+# $Id: lonindexer.pm,v 1.192 2009/03/17 23:11:20 droeschl Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -527,7 +527,7 @@
 # -------------------------------------------------------- Resource Home Button
 	my $reshome=$env{'course.'.$env{'request.course.id'}.'.reshome'};
 	if ($reshome) {
-	    $r->print("<span class=\"LC_fontsize_small\"><a href='");
+	    $r->print("<span class=\"LC_fontsize_large\"><a href='");
 	    if ($env{'form.catalogmode'} eq 'import') {
 		$r->print('javascript:document.forms.fileattr.action="'.&Apache::loncommon::inhibit_menu_check($reshome).'";document.forms.fileattr.submit();');
 	    } else {
@@ -549,7 +549,7 @@
         #$r->print(&writedebug("Omit:@Omit")) if (@Omit);
         #$r->print(&writedebug("Only:@Only")) if (@Only);
         $r->print('<br /><br />');
-        $r->print(&Apache::loncommon::start_data_table("LC_tableOfContent")
+        $r->print(&Apache::loncommon::start_data_table("LC_tableBrowseRes")
                  .&Apache::loncommon::start_data_table_header_row());
 	$r->print("<th $colspan>".&mt('Name')."</th>\n");
 	$r->print("<th>".&mt('Title')."</th>\n") 
@@ -880,7 +880,7 @@
 		   $startdir.'" />'."\n");
         $r->print ('<input type="hidden" name="acts" value="" />'."\n");
 	$r->print ('<a href="#" onClick="document.dirpathUP.submit()"><img src="'.$iconpath.'arrow.up.gif"');
-	$r->print (' name="'.$msg.'" type="image" class="LC_icon" />'.
+	$r->print (' name="'.$msg.'" type="image" class="LC_fileicon" />'.
 		   "\n");
 	$r->print(&mt("Up")."</a></form>$tabtag");
         $r->print(&Apache::loncommon::end_data_table_row());
@@ -907,15 +907,15 @@
 	$r->print ('<a name="'.$anchor.'"></a>');
 $r->print ('<input type="hidden" name="acts" value="" />');
 	$r->print ('<a href="#" onClick="document.dirpath'.($dnum-1).'.submit()"><img src="'.$iconpath.'arrow.'.($nowOpen ? "open" : "closed" ).'.gif"'); 
-	$r->print (' name="'.$msg.'" type="image" class="LC_icon" /></a>'.
+	$r->print (' name="'.$msg.'" type="image" class="LC_fileicon" /></a>'.
 		   "\n");
 	my $quotable_filecom = &Apache::loncommon::escape_single($filecom[0]);
 	$r->print ('<a href="javascript:gothere(\''.$quotable_filecom.
 		   '\')"><img alt="" src="'.$iconpath.'server.gif"');
-	$r->print (' class="LC_icon" />'."\n");
+	$r->print (' class="LC_fileicon" />'."\n");
 	$r->print (&mt("Domain")." - $listname </a>");
 	if (&Apache::lonnet::domain($listname,'description')) {
-	    $r->print("(".&Apache::lonnet::domain($listname,'description').
+	    $r->print("<br />(".&Apache::lonnet::domain($listname,'description').
 		      ")");
 	}
 	$r->print("</form>$tabtag");
@@ -938,13 +938,13 @@
 	$r->print ('<input type="hidden" name="acts" value="" />');
 	$r->print ('<a href="#" onClick="document.dirpath'.($dnum-1).'.submit()">');
         $r->print ('<img src="'.$iconpath.'arrow.'.($nowOpen ? "open" : "closed" ).
-		   '.gif" class="LC_icon"'); 
-	$r->print (' name="'.$msg.'" type="image" class="LC_indexer_icon" /></a>'.
+		   '.gif" class="LC_fileicon"'); 
+	$r->print (' name="'.$msg.'"/></a>'.
 		   "\n");
 	my $quotable_curdir = &Apache::loncommon::escape_single($curdir);
 	$r->print ('<a href="javascript:gothere(\''.$quotable_curdir
 		   .'\')"><img alt="'.$msg.'" src="'.
-		   $iconpath.'quill.gif" class="LC_indexer_icon" />');
+		   $iconpath.'quill.gif" class="LC_fileicon" />');
 	my $domain=(split(m|/|,$startdir))[2];
 	my $plainname=&Apache::loncommon::plainname($listname,$domain);
         $r->print ($listname.'</a>');
@@ -1024,12 +1024,12 @@
 	    $r->print ('<a name="'.$anchor.'"></a>');
             $r->print ('<a href="#" onClick="document.dirpath'.($dnum-1).'.submit()">');
             $r->print ('<img src="'.$iconpath.'arrow.'.($nowOpen ? "open" : "closed" ).
-                       '.gif" class="LC_icon"');
-	    $r->print (' name="'.$msg.'" type="image" class="LC_icon" /></a>'.
+                       '.gif" class="LC_fileicon"');
+	    $r->print (' name="'.$msg.'" type="image" class="LC_fileicon" /></a>'.
 		       "\n");
 	}
 # Filetype icons
-	$r->print("<img alt=\"\" src='$iconname' class='LC_icon' />\n");
+	$r->print("<img alt=\"\" src='$iconname' class='LC_fileicon' />\n");
 	my $quotable_filelink = &Apache::loncommon::escape_single($filelink);
 
 	$r->print (" <a href=\"javascript:openWindow('".$quotable_filelink.
@@ -1175,7 +1175,7 @@
 	$r->print ('<a name="'.$anchor.'"></a>');
         $r->print ('<a href="#" onClick="document.dirpath'.($dnum-1).'.submit()"><img src="'.$iconpath.
 		   'arrow.'.($nowOpen ? "open" : "closed" ).'.gif"');
-	$r->print (' name="'.$msg.'" class="LC_icon" /></a>'.
+	$r->print (' name="'.$msg.'" class="LC_fileicon" /></a>'.
 		   "\n");
 	my $quotable_curdir = &Apache::loncommon::escape_single($curdir);
         
@@ -1183,7 +1183,7 @@
 	my $icon = "navmap.folder.".($nowOpen ? "open":"closed").'.gif';
         $r->print ('<a href="javascript:gothere(\''
 		   .$quotable_curdir.'\')"">'
-		   .'<img alt="'.&mt('Open Folder').'" src="'.
+		   .'<img class="LC_fileicon" alt="'.&mt('Open Folder').'" src="'.
                    $location."/".$icon.'" />'.
                    "\n");
 	$r->print ("$listname</a></form></td>\n");