{% extends "layout.html.twig" %} {% import "js_helpers.html.twig" as js %} {% block header %} {{ parent() }} {{ js.tool_bar }} {% endblock %} {% block content %} {{ parent() }} {% if current_user.blog != current_blog.id and blog_count > 1 %}

{{__('Make this blog my default blog')}}

{% endif %} {# Check if we need place for dashboard items #} {% set has_dashboard_items = updater is not empty or modules_errors is not empty or dashboard_doclinks is not empty or dsahboard_dcnews is not empty or dashboard_items is not empty %}
{% for icon in dashboard_icons %}


{{ icon.title }}

{% endfor %}
{% if dashboard_quickentry %}

{{__('Quick entry')}}

{% form quickentry %}
{{__('New entry')}}

{{ form_field('post_title',{'class':'maximal'}) }}

{{ form_field('post_content',{'rows':edit_size,'cols':5}) }}

{{ form_field('cat_id')}}

{{ form_field('save')}}

{% endform %}
{% endif %} {% if dashboard_contents is not empty %}
{% for content in dashboard_contents %} {{ content|raw }} {% endfor %}
{% endif %}
{% if has_dashboard_items %}
{% if updater is not empty %}

{{ __('Dotclear %s is available!')|format(updater.new_version)}}

{% endif %} {% if modules_errors is not empty %}

{{__('Some plugins are installed twice:')}}

{% endif %} {% if dashboard_doclinks is not empty %}

{{__('Documentation and support')}}

{% endif %} {% if dashboard_dcnews is not empty %}

{{__('Latest news')}}

{% for news in dashboard_dcnews %}
{% if news.link is not empty %}{{ news.title }}{% else %}{{ news.title }}{% endif %}
{% if loop.index < 3 %}

{{ news.date }}: {{ news.content|slice(0,120) }}...

{% else %}
{{ news.date }}
{% endif %} {% endfor %}
{% endif %} {% if dashboard_items is not empty %}
{% for item in dashboard_items %} {{ item|raw }} {% endfor %}
{% endif %}
{% endif %} {% endblock %}