fix title tools - refs BT#11338

pull/2539/head
Alex Aragón 8 years ago
parent a423d0714e
commit e1e90eb92a
  1. 10
      app/Resources/public/css/base.css
  2. 7
      main/inc/introductionSection.inc.php
  3. 10
      main/template/default/course_home/activity.tpl

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

@ -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">'; $introduction_section .= '<div class="col-md-12">';
if ($intro_dispDefault) { if ($intro_dispDefault) {
if (!empty($intro_content)) { if (!empty($intro_content)) {
@ -353,7 +358,7 @@ if ($intro_dispDefault) {
} else { } else {
if (api_is_allowed_to_edit()) { if (api_is_allowed_to_edit()) {
$introduction_section .= '<div class="help-course">'; $introduction_section .= '<div class="help-course">';
$introduction_section .= get_lang('AddCustomCourseIntro').' '.$textIntro; $introduction_section .= $nameSection.' '.$textIntro;
$introduction_section .= '</div>'; $introduction_section .= '</div>';
} }
} }

@ -1,14 +1,12 @@
{% for block in blocks %} {% for block in blocks %}
{% if block.title %} {% if block.title %}
<div class="row"> <div class="page-header">
<div class="col-md-12">
<h4 class="title-tools">{{ block.title }}</h4> <h4 class="title-tools">{{ block.title }}</h4>
</div> </div>
</div>
{% endif %} {% endif %}
<div class="row {{ block.class }}"> <div class="row">
<div class="{{ block.class }}">
{% if 'homepage_view'|api_get_setting == 'activity' %} {% if 'homepage_view'|api_get_setting == 'activity' %}
{% for item in block.content %} {% for item in block.content %}
<div class="offset2 col-md-4 course-tool"> <div class="offset2 col-md-4 course-tool">
@ -37,4 +35,6 @@
{% endfor %} {% endfor %}
{% endif %} {% endif %}
</div> </div>
</div>
{% endfor %} {% endfor %}

Loading…
Cancel
Save