Pārlūkot izejas kodu

Fix category label see BT#

Julio 7 gadi atpakaļ
vecāks
revīzija
e769334db6

+ 4 - 1
main/inc/lib/userportal.lib.php

@@ -1852,9 +1852,12 @@ class IndexManager
                 $this->tpl->assign('remove_session_url', api_get_configuration_value('remove_session_url'));
 
                 if ($viewGridCourses) {
-                    $sessions_with_no_category = $this->tpl->fetch(
+                    // ofaj
+                    $sessions_with_no_category = '<h4>'. get_lang('MyCourses').'</h4><hr />';
+                    $sessions_with_no_category .= $this->tpl->fetch(
                         $this->tpl->get_template('/user_portal/grid_session.tpl')
                     );
+
                 } else {
                     $sessions_with_no_category = $this->tpl->fetch(
                         $this->tpl->get_template('user_portal/classic_session.tpl')

+ 0 - 4
main/template/rainbow/user_portal/grid_session.tpl

@@ -43,10 +43,6 @@
 {#</div>#}
 {#{% else %}#}
 
-{% if not session is empty %}
-<h4>{{ 'MyCourses' | get_lang }}</h4>
-<hr />
-{% endif %}
 <div class="grid-courses">
     <div class="row">
     {% for item in session %}