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;
}
/* 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;
}

@ -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>';
}
}

@ -1,14 +1,12 @@
{% for block in blocks %}
{% if block.title %}
<div class="row">
<div class="col-md-12">
<div class="page-header">
<h4 class="title-tools">{{ block.title }}</h4>
</div>
</div>
{% endif %}
<div class="row {{ block.class }}">
<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">
@ -37,4 +35,6 @@
{% endfor %}
{% endif %}
</div>
</div>
{% endfor %}

Loading…
Cancel
Save