Center only values.

1.10.x
Julio Montoya 10 years ago
parent 06d717b956
commit 07dcafb2b0
  1. 12
      app/Resources/public/css/base.css
  2. 14
      main/gradebook/index.php

@ -136,6 +136,18 @@ ul#navigation .report a {
padding: 6px 0 8px 6px;
}
#gradebook_list .centered {
text-align:center;
vertical-align:middle;
}
#gradebook_list .centered .badge-group {
width: auto;
}
/* END CSS BASE */
.button-load{

@ -924,6 +924,20 @@ if (isset($first_time) && $first_time==1 && api_is_allowed_to_edit(null,true)) {
$exportToPdf
);
if (api_is_allowed_to_edit()) {
$gradebooktable->td_attributes = [
4 => 'class=centered'
];
} else {
$gradebooktable->td_attributes = [
3 => 'class=centered',
4 => 'class=centered',
5 => 'class=centered',
6 => 'class=centered',
7 => 'class=centered'
];
}
$table = $gradebooktable->return_table();
$graph = $gradebooktable->getGraph();

Loading…
Cancel
Save