Minor - Format code, update docs, update tpls, remove comment

pull/2818/head
Julio Montoya 7 years ago
parent 86ae289083
commit 2d55481225
  1. 2
      CONTRIBUTING.md
  2. 1
      main/admin/settings.lib.php
  3. 12
      src/ThemeBundle/Resources/views/FlashMessage/render.html.twig
  4. 2
      src/ThemeBundle/Resources/views/News/slider.html.twig

@ -84,7 +84,7 @@ root@docker$ cd /var/www
root@docker$ rm -rf html root@docker$ rm -rf html
root@docker$ git clone --single-branch -b 1.10.0-beta https://github.com/chamilo/chamilo-lms.git html root@docker$ git clone --single-branch -b 1.10.0-beta https://github.com/chamilo/chamilo-lms.git html
root@docker$ cd html root@docker$ cd html
root@docker$ chmod -R 0777 app/ vendor/ main/lang/ main/default_course_document/images/ web/ root@docker$ chmod -R 0777 var/ vendor/ main/lang/ public/
root@docker$ vim /etc/php5/apache2/php.ini root@docker$ vim /etc/php5/apache2/php.ini
``` ```
Look for timezone and modify it to the best timezone that suits you: Look for timezone and modify it to the best timezone that suits you:

@ -1096,7 +1096,6 @@ function searchImageFilter($image)
function addEditTemplate() function addEditTemplate()
{ {
$em = Database::getManager(); $em = Database::getManager();
// Initialize the object.
$id = isset($_GET['id']) ? (int) $_GET['id'] : 0; $id = isset($_GET['id']) ? (int) $_GET['id'] : 0;
/** @var SystemTemplate $template */ /** @var SystemTemplate $template */

@ -7,14 +7,16 @@
{% for type in sonata_flashmessages_types() %} {% for type in sonata_flashmessages_types() %}
{% set domain = domain is defined ? domain : null %} {% set domain = domain is defined ? domain : null %}
{% for message in sonata_flashmessages_get(type, domain) %} {% for message in sonata_flashmessages_get(type, domain) %}
{% if type != 'no_layout' %}
<div class="alert alert-{{ type|sonata_status_class }} alert-dismissable"> <div class="alert alert-{{ type|sonata_status_class }} alert-dismissable">
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">&times;</button> <button
type="button"
class="close"
data-dismiss="alert"
aria-hidden="true"
aria-label="{{ 'message_close'|trans({}, 'SonataCoreBundle') }}"
>&times;</button>
{{ message|raw }} {{ message|raw }}
</div> </div>
{% else %}
{{ message|raw }}
{% endif %}
{% endfor %} {% endfor %}
{% endfor %} {% endfor %}

@ -9,7 +9,7 @@
{% endif %} {% endif %}
{% endset %} {% endset %}
{% set content %} {% set content %}
{{ macro.box_header("SystemAnnouncements" | trans, buttons) }} {{ macro.box_header("System announcements" | trans, buttons) }}
<div id="carousel-announcement" class="carousel slide" data-ride="carousel"> <div id="carousel-announcement" class="carousel slide" data-ride="carousel">
<ol class="carousel-indicators"> <ol class="carousel-indicators">
{% for announcement in announcements %} {% for announcement in announcements %}

Loading…
Cancel
Save