Browse Source

Fix link in icon see BT#12195

jmontoyaa 8 years ago
parent
commit
904a8877b0

+ 1 - 1
main/template/default/user_portal/classic_courses_with_category.tpl

@@ -9,7 +9,7 @@
                     {% for item in category.courses %}
                         <div class="row">
                             <div class="col-md-2">
-                                <a class="thumbnail">
+                                <a href="{{ item.link }}" class="thumbnail">
                                     {% if item.thumbnails != '' %}
                                         <img src="{{ item.thumbnails }}" title="{{ item.title }}"
                                              alt="{{ item.title }}"/>

+ 1 - 1
main/template/default/user_portal/classic_courses_without_category.tpl

@@ -5,7 +5,7 @@
             <div class="panel-body">
                 <div class="row">
                     <div class="col-md-2">
-                        <a class="thumbnail">
+                        <a href="{{ item.link }}" class="thumbnail">
                             {% if item.thumbnails != '' %}
                                 <img src="{{ item.thumbnails }}" title="{{ item.title }}" alt="{{ item.title }}"/>
                             {% else %}

+ 7 - 7
main/template/default/user_portal/classic_session.tpl

@@ -56,13 +56,13 @@
                             <div class="courses">
                                 <div class="row">
                                     <div class="col-md-2">
-                                        {% if item.link %}
-                                            <a href="{{ item.link }}" class="thumbnail">
+                                        <a href="{{ item.link }}" class="thumbnail">
+                                            {% if item.link %}
                                                 <img class="img-responsive" src="{{ item.icon }}">
-                                            </a>
-                                        {% else %}
-                                            {{ 'blackboard.png' | img(48, item.title ) }}
-                                        {% endif %}
+                                            {% else %}
+                                                {{ 'blackboard.png' | img(48, item.title ) }}
+                                            {% endif %}
+                                        </a>
                                     </div>
                                     <div class="col-md-10">
                                         <h4>{{ item.title }}</h4>
@@ -114,7 +114,7 @@
                         {% if row.description != '' %}
                             <div class="description">
                                 {{ row.description }}
-                            </div>                 
+                            </div>
                         {% endif %}
                     </div>
                 </div>