{% load static %}
{% load i18n %}
{% load analytics %}
{% load thumbnail %}
{% load front_tags %}
<!DOCTYPE html>
<html>
<head>
{% block head %}
    <meta charset="utf-8">
    <title>Metadata Composer {{branding}} - Back office &raquo; {% block title %}{% trans "Home" %}{% endblock %}</title>
    <!--[if lt IE 9]>
        <script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script>
    <![endif]-->
    {% block css_import %}
    <link rel="stylesheet" href="{% static 'metadatacomposer/css/bootstrap.min.css' %}" />
    <link rel="stylesheet" href="{% static 'metadatacomposer/css/style.css' %}" />
    {% endblock %}
    {% block css_page %}
    {% endblock %}
    {% block css_declaration %}
    {% endblock %}
{% endblock %}
</head>
<body>
{% block body %}
{% block wrapper %}
    <div class="wrap">
        <header>
            <div class="container">
                <div class="row">
                    <div class="span3"><h1><a class="clearfix" href="{% url composer_home branding=branding %}">
                        {% include top_header_partial %}
                    </a></h1></div>
                    <div class="span9">
                        <ul class="breadcrumb nav-bar">
                        <li><a href="{% url composer_project_list branding=branding %}"><i class="icon-file"></i> Projets</a> <span class="divider">/</span></li>
                        <li><a href="{% url composer_resource_list branding=branding %}"><i class="icon-folder-close-alt"></i>Ressources</a></li>
                        </ul>
                    </div>
                </div>
            </div>
        </header>
        <section>
          {% block containers %}
            <!-- block containers -->
            <article class="container">
                <div class="row article-title">
                    <h3 class="span8"><i class="icon-file"></i>Derniers projets</h3>
                    <div class="span4 wrap-btn-add"><a class="btn btn-success" href="#">Ajouter un projet <i class="icon-plus-sign"></i></a></div>
                </div>
                <div class="row">
                  {% for p in projects %}
                    <div class="span2">
                        <a href="#">{% thumbnail p.image "140x140" crop="center" format="PNG" as im %}<img src="{{ im.url }}" width="{{ im.width }}" height="{{ im.height }}" />{% empty %}<img src="{% static 'metadatacomposer/img/140x140.gif' %}" width="140px" height="140px" />{% endthumbnail %}
                        <h4>{{ p.title }}</h4></a>
                    </div>
                  {% endfor %}
                </div>
            </article>
            <article class="container">
                <div class="row article-title">
                    <h3 class="span8"><i class="icon-picture"></i> Dernières images</h3>
                    <div class="span4 wrap-btn-add"><a class="btn btn-success" href="#">Ajouter une image <i class="icon-plus-sign"></i></a></div>
                </div>
                <div class="row">
                    <div class="span2">
                        <a href=""><img src="img/140x140.gif" alt=""></a>
                        <h4><a href="">Titre de l'image</a></h4>
                    </div>
                    <div class="span2">
                        <a href=""><img src="img/140x140.gif" alt=""></a>
                        <h4><a href="">Titre de l'image</a></h4>
                    </div>
                    <div class="span2">
                        <a href=""><img src="img/140x140.gif" alt=""></a>
                        <h4><a href="">Titre de l'image</a></h4>
                    </div>
                    <div class="span2">
                        <a href=""><img src="img/140x140.gif" alt=""></a>
                        <h4><a href="">Titre de l'image</a></h4>
                    </div>
                    <div class="span2">
                        <a href=""><img src="img/140x140.gif" alt=""></a>
                        <h4><a href="">Titre de l'image</a></h4>
                    </div>
                    <div class="span2">
                        <a href=""><img src="img/140x140.gif" alt=""></a>
                        <h4><a href="">Titre de l'image</a></h4>
                    </div>
                </div>
            </article>
            <article class="container">
                <div class="row article-title">
                    <h3 class="span8"><i class="icon-film"></i> Dernières vidéos</h3>
                    <div class="span4 wrap-btn-add"><a class="btn btn-success" href="#">Ajouter une vidéo <i class="icon-plus-sign"></i></a></div>
                </div>
                <div class="row">
                  {% for c in contents %}
                    <div class="span2">
                        <a href="#">{% thumbnail c.image "140x140" crop="center" format="PNG" as im %}<img src="{{ im.url }}" width="{{ im.width }}" height="{{ im.height }}" />{% empty %}<img src="{% static 'metadatacomposer/img/140x140.gif' %}" width="140px" height="140px" />{% endthumbnail %}
                        <h4>{{ c.title }}</h4></a>
                    </div>
                  {% endfor %}
                </div>
            </article>
            <!-- endblock containers -->
          {% endblock %}
        </section>
        <footer></footer>
    </div><!-- wrap -->
{% endblock %}
    {% block modal_divs %}
    {% endblock %}
    {% block js_import %}
    <script src="{% static 'metadatacomposer/js/jquery-1.9.1.min.js' %}"></script>
    <script src="{% static 'metadatacomposer/js/bootstrap.js' %}"></script>
    <script src="{% static 'metadatacomposer/js/main.js' %}"></script>
    {% endblock %}
{% endblock %}
</body>
</html>
