[LON-CAPA-cvs] cvs: loncom /interface lonaboutme.pm loncommon.pm lontemplate.pm
neumanie
neumanie@source.lon-capa.org
Tue, 14 Apr 2009 15:32:12 -0000
neumanie Tue Apr 14 15:32:12 2009 EDT
Modified files:
/loncom/interface lonaboutme.pm lontemplate.pm loncommon.pm
Log:
Add padding with css in Boxes of lonaboutme,lonsylabus,lonsimplepage. The css style is define in loncommon as LC_BoxPadding.
Index: loncom/interface/lonaboutme.pm
diff -u loncom/interface/lonaboutme.pm:1.123 loncom/interface/lonaboutme.pm:1.124
--- loncom/interface/lonaboutme.pm:1.123 Fri Apr 3 15:22:22 2009
+++ loncom/interface/lonaboutme.pm Tue Apr 14 15:32:12 2009
@@ -1,7 +1,7 @@
# The LearningOnline Network
# Personal Information Page
#
-# $Id: lonaboutme.pm,v 1.123 2009/04/03 15:22:22 amueller Exp $
+# $Id: lonaboutme.pm,v 1.124 2009/04/14 15:32:12 neumanie Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -493,7 +493,7 @@
);
if ($filecounts->{'both'} > 0) {
$output = '<div class="LC_ContentBoxSpecial"><h4 class="LC_hcell">';
- $output .= ($is_course?$lt{'vgpf'}:$lt{'vpfi'}).'</h4>';
+ $output .= ($is_course?$lt{'vgpf'}:$lt{'vpfi'}).'</h4><div class="LC_BoxPadding">';
#$output = '<h4>'.($is_course?$lt{'vgpf'}:$lt{'vpfi'}).'</h4>';
$output .= '<a href="/adm/'.$cdom.'/'.$cnum.'/aboutme/portfolio'.
@@ -520,7 +520,7 @@
}
$output .= '</ul>';
$output .='</p>';
- $output .='</div>';
+ $output .='</div></div>';
}
$r->print($output);
return;
Index: loncom/interface/lontemplate.pm
diff -u loncom/interface/lontemplate.pm:1.29 loncom/interface/lontemplate.pm:1.30
--- loncom/interface/lontemplate.pm:1.29 Fri Mar 27 15:46:38 2009
+++ loncom/interface/lontemplate.pm Tue Apr 14 15:32:12 2009
@@ -1,7 +1,7 @@
# The LearningOnline Network
# "Template" Functions to generate html output
#
-# $Id: lontemplate.pm,v 1.29 2009/03/27 15:46:38 bisitz Exp $
+# $Id: lontemplate.pm,v 1.30 2009/04/14 15:32:12 neumanie Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -121,7 +121,7 @@
my ($r,$topic,$content, $allowed,$boxclass) = @_;
$r->print('<div class="'.$boxclass.'">');
$r->print('<h4 class="LC_hcell">'.$topic.'</h4>');
- $r->print('<p>' .$content . '</p>');
+ $r->print('<div class="LC_BoxPadding">' .$content . '</div>');
$r->print('</div>');
}
sub print_start_template
@@ -129,11 +129,13 @@
my ($r,$topic,$boxclass) = @_;
$r->print('<div class="'.$boxclass.'">');
$r->print('<h4 class="LC_hcell">'.$topic.'</h4>');
+ $r->print('<div class="LC_BoxPadding">' );
}
sub print_end_template
{
my ($r) = @_;
$r->print('</div>');
+ $r->print('</div>');
}
sub print_editbox_template
{
Index: loncom/interface/loncommon.pm
diff -u loncom/interface/loncommon.pm:1.785 loncom/interface/loncommon.pm:1.786
--- loncom/interface/loncommon.pm:1.785 Wed Apr 8 10:13:08 2009
+++ loncom/interface/loncommon.pm Tue Apr 14 15:32:12 2009
@@ -1,7 +1,7 @@
# The LearningOnline Network with CAPA
# a pile of common routines
#
-# $Id: loncommon.pm,v 1.785 2009/04/08 10:13:08 tempelho Exp $
+# $Id: loncommon.pm,v 1.786 2009/04/14 15:32:12 neumanie Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -5745,6 +5745,10 @@
font-size:100%;
font-weight:bold;
}
+.LC_BoxPadding
+{
+ padding: 10px;
+}
.LC_ContentBoxSpecial
{
border: solid 1px $lg_border_color;