瀏覽代碼

fix title tools - refs BT#11338

Alex Aragón 6 年之前
父節點
當前提交
e1e90eb92a

+ 4 - 6
app/Resources/public/css/base.css

@@ -1619,7 +1619,10 @@ a.unread {
     text-align: right;
 }
 
-/* Big icons course home page styles */
+/* BIG TOOLS COURSE */
+.title-tools{
+    font-weight: bold;
+}
 #course_tools .big_icon {
     padding: 10px;
     text-align: center;
@@ -6168,7 +6171,6 @@ div#chat-remote-video video {
 }
 
 .toolbar-edit {
-    padding: 5px;
     display: inline-block;
     width: 100%;
 }
@@ -6868,12 +6870,8 @@ div#chat-remote-video video {
     color: #666;
     border: 1px dashed #B0B0B0;
     border-radius: 5px;
-    -moz-border-radius: 5px;
-    -webkit-border-radius: 5px;
     padding: 1em;
     margin-bottom: 1em;
-    margin-right: 5%;
-    margin-left: 5%;
     text-align: center;
 }
 

+ 6 - 1
main/inc/introductionSection.inc.php

@@ -344,6 +344,11 @@ if ($intro_dispCommand) {
     }
 }
 
+$nameSection = get_lang('AddCustomCourseIntro');
+if($moduleId != 'course_homepage'){
+    $nameSection = get_lang('AddCustomToolsIntro');
+}
+
 $introduction_section .= '<div class="col-md-12">';
 if ($intro_dispDefault) {
     if (!empty($intro_content)) {
@@ -353,7 +358,7 @@ if ($intro_dispDefault) {
     } else {
         if (api_is_allowed_to_edit()) {
             $introduction_section .= '<div class="help-course">';
-            $introduction_section .= get_lang('AddCustomCourseIntro').' '.$textIntro;
+            $introduction_section .= $nameSection.' '.$textIntro;
             $introduction_section .= '</div>';
         }
     }

+ 26 - 26
main/template/default/course_home/activity.tpl

@@ -1,40 +1,40 @@
 {% for block in blocks %}
     {% if block.title %}
-        <div class="row">
-            <div class="col-md-12">
-                <h4 class="title-tools">{{ block.title }}</h4>
-            </div>
+        <div class="page-header">
+            <h4 class="title-tools">{{ block.title }}</h4>
         </div>
-
     {% endif %}
 
-    <div class="row {{ block.class }}">
-        {% if 'homepage_view'|api_get_setting == 'activity' %}
+    <div class="row">
+        <div class="{{ block.class }}">
+            {% if 'homepage_view'|api_get_setting == 'activity' %}
             {% for item in block.content %}
-                <div class="offset2 col-md-4 course-tool">
-                    {{ item.extra }}
-                    {{ item.visibility }}
-                    {{ item.icon }}
-                    {{ item.link }}
-                </div>
+            <div class="offset2 col-md-4 course-tool">
+                {{ item.extra }}
+                {{ item.visibility }}
+                {{ item.icon }}
+                {{ item.link }}
+            </div>
             {% endfor %}
-        {% endif %}
+            {% endif %}
 
-        {% if 'homepage_view'|api_get_setting == 'activity_big' %}
+            {% if 'homepage_view'|api_get_setting == 'activity_big' %}
             {% for item in block.content %}
-                <div class="col-xs-6 col-sm-4 col-md-3">
-                    <div class="course-tool">
-                        <div class="big_icon">
-                            {{ item.tool.image }}
-                        </div>
-                        <div class="content">
-                            {{ item.visibility }}
-                            {{ item.extra }}
-                            {{ item.link }}
-                        </div>
+            <div class="col-xs-6 col-sm-4 col-md-3">
+                <div class="course-tool">
+                    <div class="big_icon">
+                        {{ item.tool.image }}
+                    </div>
+                    <div class="content">
+                        {{ item.visibility }}
+                        {{ item.extra }}
+                        {{ item.link }}
                     </div>
                 </div>
+            </div>
             {% endfor %}
-        {% endif %}
+            {% endif %}
+        </div>
     </div>
+
 {% endfor %}