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

albertel lon-capa-cvs-allow@mail.lon-capa.org
Fri, 26 Oct 2007 20:51:44 -0000


albertel		Fri Oct 26 16:51:44 2007 EDT

  Modified files:              
    /loncom/interface	loncommon.pm lonfeedback.pm 
  Log:
  - separate post/message links to opposite sides of the screen
  
  
Index: loncom/interface/loncommon.pm
diff -u loncom/interface/loncommon.pm:1.598 loncom/interface/loncommon.pm:1.599
--- loncom/interface/loncommon.pm:1.598	Fri Oct 26 16:18:00 2007
+++ loncom/interface/loncommon.pm	Fri Oct 26 16:51:43 2007
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # a pile of common routines
 #
-# $Id: loncommon.pm,v 1.598 2007/10/26 20:18:00 albertel Exp $
+# $Id: loncommon.pm,v 1.599 2007/10/26 20:51:43 albertel Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -4812,12 +4812,19 @@
   text-align: right;
   font-weight: bold;
 }
-table.LC_feedback_link {
-    background: $feedback_link_bg;
+div.LC_feedback_link {
+  background: white;
+  width: 100%;  
 }
 span.LC_feedback_link {
-    background: $feedback_link_bg;
-    font-size: larger;
+  background: $feedback_link_bg;
+  font-size: larger;
+}
+span.LC_message_link {
+  background: $feedback_link_bg;
+  font-size: larger;
+  position: absolute;
+  right: 1em;
 }
 
 table.LC_prior_tries {
Index: loncom/interface/lonfeedback.pm
diff -u loncom/interface/lonfeedback.pm:1.250 loncom/interface/lonfeedback.pm:1.251
--- loncom/interface/lonfeedback.pm:1.250	Thu Aug  9 20:02:08 2007
+++ loncom/interface/lonfeedback.pm	Fri Oct 26 16:51:43 2007
@@ -1,7 +1,7 @@
 # The LearningOnline Network
 # Feedback
 #
-# $Id: lonfeedback.pm,v 1.250 2007/08/10 00:02:08 albertel Exp $
+# $Id: lonfeedback.pm,v 1.251 2007/10/26 20:51:43 albertel Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -732,20 +732,19 @@
             }
 	}
     } else {
-        $discussion.='<table class="LC_feedback_link"><tr><td>';
+        $discussion.='<div class="LC_feedback_link">';
         if (&discussion_open($status) &&
             &Apache::lonnet::allowed('pch',
     	        $env{'request.course.id'}.
 	        ($env{'request.course.sec'}?'/'.$env{'request.course.sec'}:''))) {
 	    if ($outputtarget ne 'tex') {
-		$discussion.= &send_feedback_link($ressymb,$target).
-                              '<br />';
+		$discussion.= &send_feedback_link($ressymb,$target);
             }
 	}
         if ($outputtarget ne 'tex') {
 	    $discussion.= &send_message_link($ressymb);
         }
-        $discussion.='</td></tr></table>';
+        $discussion.='</table>';
     }
     return $discussion;
 }
@@ -763,7 +762,7 @@
 
 sub send_message_link {
     my ($ressymb) = @_;
-    my $output = '<span class="LC_feedback_link">'.
+    my $output = '<span class="LC_message_link">'.
                  '  <a href="/adm/feedback?sendmessageonly=1&amp;symb='.
                  &escape($ressymb).'"><img alt="" src="'.
                  &Apache::loncommon::lonhttpdurl('/adm/lonMisc/feedback.gif').