Browse Source

Changing UI

robbosch 10 years ago
parent
commit
eb9b9fc3f5

+ 5 - 7
main/gradebook/lib/be/category.class.php

@@ -1631,14 +1631,12 @@ class Category implements GradebookItem
                 if (!empty($fileWasGenerated)) {
                     $url = api_get_path(WEB_PATH) . 'certificates/index.php?id=' . $my_certificate['id'];
                     $certificates = Display::url(
-                        Display::return_icon(
-                            'certificate_download.png',
-                            get_lang('DownloadCertificate'),
-                            array(),
-                            ICON_SIZE_MEDIUM
-                        ).' '.get_lang('DownloadCertificate'),
+                        ' '.get_lang('DownloadCertificate'),
                         $url,
-                        array('target' => '_blank')
+                        array(
+                            'target' => '_blank',
+                            'class' => 'btn'
+                        )
                     );
                     $exportToPDF = Display::url(
                         Display::return_icon(

+ 1 - 1
main/gradebook/lib/fe/displaygradebook.php

@@ -455,7 +455,7 @@ class DisplayGradebook
                 if (!empty($certificateLinkInfo) && isset($certificateLinkInfo['certificate_link'])) {
                     $certificateLink .= '<span style="float:right"> ' . $certificateLinkInfo['certificate_link']."</span>";
                 }
-                $scoreinfo .= '<h3>' . get_lang('Total') . ' : ' . $scorecourse_display . $certificateLink. '</h3>';
+                $scoreinfo .= '<h4>' . get_lang('Total') . ' : ' . $scorecourse_display . $certificateLink. '</h4>';
 
             }
             Display :: display_normal_message($scoreinfo, false);