]> git.mjollnir.org Git - moodle.git/commitdiff
MDL-13736 Wrapped the link in a div and fixed the style. Merging from MOODLE_19_STABLE
authornicolasconnault <nicolasconnault>
Fri, 29 Feb 2008 21:46:14 +0000 (21:46 +0000)
committernicolasconnault <nicolasconnault>
Fri, 29 Feb 2008 21:46:14 +0000 (21:46 +0000)
mod/assignment/lib.php
mod/hotpot/report.php
mod/lesson/report.php
mod/quiz/report/default.php
theme/standard/styles_layout.css

index e4b7fb55f19277fffb29e95cbe71822791f977d8..99abc9c3975ebe34c3a7b046e4971fef4e50cc3e 100644 (file)
@@ -1046,8 +1046,8 @@ class assignment_base {
         
         $course_context = get_context_instance(CONTEXT_COURSE, $course->id);
         if (has_capability('gradereport/grader:view', $course_context) && has_capability('moodle/grade:viewall', $course_context)) {
-            echo '<a class="allcoursegrades" href="' . $CFG->wwwroot . '/grade/report/grader/index.php?id=' . $course->id . '">' 
-                . get_string('seeallcoursegrades', 'grades') . '</a>';
+            echo '<div class="allcoursegrades"><a href="' . $CFG->wwwroot . '/grade/report/grader/index.php?id=' . $course->id . '">' 
+                . get_string('seeallcoursegrades', 'grades') . '</a></div>';
         }
 
         if (!empty($message)) {
index 728c7667d3e54fc988be17c13944c726f5cd3e2a..bc233a3e7da0f357566913d166b43cc34ae67766 100644 (file)
@@ -431,8 +431,8 @@ function hotpot_print_report_heading(&$course, &$cm, &$hotpot, &$mode) {
     print_header($title, $heading, $navigation, "", "", true, $button, navmenu($course, $cm));
     $course_context = get_context_instance(CONTEXT_COURSE, $course->id);
     if (has_capability('gradereport/grader:view', $course_context) && has_capability('moodle/grade:viewall', $course_context)) {
-        echo '<a class="allcoursegrades" href="' . $CFG->wwwroot . '/grade/report/grader/index.php?id=' . $course->id . '">' 
-            . get_string('seeallcoursegrades', 'grades') . '</a>';
+        echo '<div class="allcoursegrades"><a href="' . $CFG->wwwroot . '/grade/report/grader/index.php?id=' . $course->id . '">' 
+            . get_string('seeallcoursegrades', 'grades') . '</a></div>';
     }
     print_heading($hotpot->name);
 }
index df4c1fcdc6bbe279623c09020616b9b333236657..a0f0803cfbf17cf3f7c01d22243d81319e9f60df 100644 (file)
     
     $course_context = get_context_instance(CONTEXT_COURSE, $course->id);
     if (has_capability('gradereport/grader:view', $course_context) && has_capability('moodle/grade:viewall', $course_context)) {
-        echo '<a class="allcoursegrades" href="' . $CFG->wwwroot . '/grade/report/grader/index.php?id=' . $course->id . '">' 
-            . get_string('seeallcoursegrades', 'grades') . '</a>';
+        echo '<div class="allcoursegrades"><a href="' . $CFG->wwwroot . '/grade/report/grader/index.php?id=' . $course->id . '">' 
+            . get_string('seeallcoursegrades', 'grades') . '</a></div>';
     }
 
     if ($nothingtodisplay) {
index 6a41aa100c0e0f79578fe3edccc1316bc984359b..c08a734c2b1174a1f7a506ec7f9348542469dd42 100644 (file)
@@ -37,8 +37,8 @@ class quiz_default_report {
         require($CFG->dirroot . '/mod/quiz/tabs.php');
         $course_context = get_context_instance(CONTEXT_COURSE, $course->id);
         if (has_capability('gradereport/grader:view', $course_context) && has_capability('moodle/grade:viewall', $course_context)) {
-            echo '<a class="allcoursegrades" href="' . $CFG->wwwroot . '/grade/report/grader/index.php?id=' . $course->id . '">' 
-                . get_string('seeallcoursegrades', 'grades') . '</a>';
+            echo '<div class="allcoursegrades"><a href="' . $CFG->wwwroot . '/grade/report/grader/index.php?id=' . $course->id . '">' 
+                . get_string('seeallcoursegrades', 'grades') . '</a></div>';
         }
 
     }
index 8b7405822039f81218720e217a92429600d467e9..d3eb49e1e5a63c578af5d5c1e557b292a9bc519d 100644 (file)
@@ -2181,8 +2181,10 @@ body#doc-contents ul {
   padding: 5px;
 }
 
-.allcoursegrades {
-    float: right;
+div.allcoursegrades {
+    width: 100%;
+    text-align: right;
+    padding: 4px 0px 5px 0px;
 }
 /* gradebook edit tree */