{% load static %}
{% load i18n %}
{% load analytics %}
{% load thumbnail %}
{% load front_tags %}
<!DOCTYPE html>
<html>
<head>
{% block head %}
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="description" content="Interface d'édition de Hashcuts (Mashups vidéo cliquables)" />
    <meta name="copyright" content="Institut de Recherche et d'Innovation (IRI), 2012" />
    <meta name="author" content="Anthony Ly, Raphaël Velt, Thibaut Cavalié" />
    <title>Hashcut {{branding}} &raquo; {% block title %}Accueil{% endblock %}</title>
    {% block css_declaration %}
    {% endblock %}
    
    {% block css_import %}
    <link rel="stylesheet" href="{% static 'hashcut/lib/jquery-ui.css' %}" />
    <link rel="stylesheet" href="{% static 'hashcut' %}/{{branding}}/css/reset.css" />
    <link rel="stylesheet" href="{% static 'hashcut' %}/{{branding}}/css/common.css" />
    {% endblock %}
    {% block css_page %}
    <link rel="stylesheet" href="{% static 'hashcut' %}/{{branding}}/css/home.css" />
    {% endblock %}
    
    {% block js_declaration %}
    {% endblock %}
{% endblock %}
</head>
<body>
{% block body %}
{% include top_header_partial %}

{% block wrap_header %}
<div class="wrap-header">
    <div class="header">
        {% include 'partial/mashup_popin_user.html' %}
        {% include 'partial/hashcut_logo.html' %}
        <div class="title-header">
            <h2><a href="{% url mashup_edit branding=branding %}">Créer un hashcut !</a></h2>
        </div>
        <div class="profil-wrap">
            <ul class="space-top-2">
                <li><a href="#user" class="my-profil open-popin">Mon profil</a></li>
            </ul>
        </div>
    </div><!-- header -->
</div><!-- wrap-header -->
{% endblock %}

{% block wrapper %}
<div class="wrapper">
    <div class="wrap">
        {% block content %}
        <div class="content">
            <div class="left-content">
                <h2>Hashcuts à la Une</h2>
                <div class="hashcut-video-wrap news">
                    <div class="video-item">
                        {% if m1 %}
                        <a href="{% url mashup_hashcut branding=branding ldt_id=m1.project.ldt_id %}" class="screenshot">{% thumbnail m1.project.image "302x202" crop="center" format="PNG" as im %}<img src="{{ im.url }}" width="{{ im.width }}" height="{{ im.height }}" alt=""/>{% empty %}&nbsp;{% endthumbnail %}</a>
                        <h3><a class="title" href="{% url mashup_hashcut branding=branding ldt_id=m1.project.ldt_id %}">{{ m1.project.title }}</a> par <a class="author" href="{% url mashup_profile branding=branding username=m1.creator %}">{{ m1.creator }}</a><!-- | <span class="duration">02:24</span> --></h3>
                        {% endif %}
                    </div>
                    <div class="video-item">
                        {% if m2 %}
                        <a href="{% url mashup_hashcut branding=branding ldt_id=m2.project.ldt_id %}" class="screenshot">{% thumbnail m2.project.image "302x202" crop="center" format="PNG" as im %}<img src="{{ im.url }}" width="{{ im.width }}" height="{{ im.height }}" alt=""/>{% empty %}&nbsp;{% endthumbnail %}</a>
                        <h3><a class="title" href="{% url mashup_hashcut branding=branding ldt_id=m2.project.ldt_id %}">{{ m2.project.title }}</a> par <a class="author" href="{% url mashup_profile branding=branding username=m2.creator %}">{{ m2.creator }}</a><!-- | <span class="duration">02:24</span> --></h3>
                        {% endif %}
                    </div>
                </div>

                <h2>Derniers Hashcuts</h2>
                <div class="hashcut-video-wrap last">
                    {% for m in mashups %}
                    <div class="video-item">
                        <a href="{% url mashup_hashcut branding=branding ldt_id=m.project.ldt_id %}" class="screenshot">{% thumbnail m.project.image "142x95" crop="center" format="PNG" as im %}<img src="{{ im.url }}" width="{{ im.width }}" height="{{ im.height }}" alt=""/>{% empty %}&nbsp;{% endthumbnail %}</a>
                        <h3><a class="title" href="{% url mashup_hashcut branding=branding ldt_id=m2.project.ldt_id %}">{% if m.project.title|length > 30 %}{{m.project.title|slice:":30"}}...{% else %}{{m.project.title}}{% endif %}</a> par <a class="author" href="{% url mashup_profile branding=branding username=m.creator %}">{{ m.creator }}</a><!-- | <span class="duration">02:24</span> --></h3>
                    </div>
                    {% endfor %}
                </div>
                
                <div class="pagination">
                    <a href="{% url mashup_all branding=branding %}">Tous les Hashcuts</a>
                </div>
           
            </div><!-- left-content -->
            <div class="right-content">
                <div class="definition">
                    <h2>Hashcuts ?</h2>
                    <p>Un <strong>Hashcut</strong> est à la fois une <a href="http://fr.wikipedia.org/wiki/Hypervid%C3%A9o" target="_blank">Hypervidéo</a> (vidéo cliquable) et un <a href="http://fr.wikipedia.org/wiki/Mashup_%28video%29" target="_blank">Mashup</a> (mélange de médias, de l’anglais mash, «purée»).</p>
                    <p>Un <strong>Hashcut</strong> est un assemblage de citations de vidéos, mises bout à bout, sans altération des médias d’origine, et permet à chacun de proposer un nouveau regard, une porte d’entrée éditorialisée sur ces médias.</p>
                </div>
                <div class="how-to">
                    <h2>Comment faire ?</h2>
                    <ul>
                        <li class="inscription">
                            <h3><a class="open-popin" href="#user">1. S’inscrire</a></h3>
                            <p>Commencez par créer votre espace personnel sur cette plateforme !</p>
                        </li>
                        <li class="next-step"></li>
                        <li class="creation">
                            <h3><a href="{% url mashup_edit branding=branding %}">2. Créer un hashcut</a></h3>
                            <p>Choisissez des médias, segmentez les, assemblez les segments et rajoutez des commentaires sur le Hashcut.</p>
                        </li>
                        <li class="next-step"></li>
                        <li class="publier">
                            <h3><a href="#">3. Publier et partager</a></h3>
                            <p>Une fois le hashcut terminé, publiez-le sur cette plateforme etpartagez votre création sur les réseaux sociaux</p>
                        </li>
                    </ul>
                </div>
                
            </div><!-- left-content -->
        </div><!-- content -->
        {% endblock %}
        {% block footer %}
        <div class="footer clearfix">
            <ul class="links-left">
                <li><a href="#">Mentions légales</a></li>
                <li><a href="#">Contacts</a></li>
            </ul>
            <ul class="links-right">
                <li><a title="IRI" href="http://www.iri.centrepompidou.fr/" target="_blank"> <img src="{% static 'hashcut' %}/{{branding}}/img/logo-iri.png" alt="iri" /></a></li>
                <li><a title="cinecast" href="http://cinecast.fr/" target="_blank"><img src="{% static 'hashcut' %}/{{branding}}/img/logo-cinecast.png" alt="cinecast" /></a></li>
                <li>© 2012</li>
            </ul>
        </div><!-- footer -->
        {% endblock %}
    </div><!-- wrap -->
</div><!-- wrapper -->
{% endblock %}
<!-- JavaScript -->
{% block js_import %}
<script type="text/javascript" src="{% static 'hashcut/lib/jquery.min.js' %}"></script>
<script type="text/javascript" src="{% static 'hashcut/lib/jquery-ui.min.js' %}"></script>
<script type="text/javascript" src="{% static 'hashcut/js/common.js' %}"></script>
<script type="text/javascript" src="{% static 'hashcut/js/social.js' %}"></script>
<script type="text/javascript" src="{% static 'hashcut/lib/ZeroClipboard.js' %}"></script>
{% if not user.is_authenticated %}
<script type="text/javascript">
/* Forbid access to edit page if not connected */
$(function() {
    $("a[href='{% url mashup_edit branding=branding %}']").click(function() {
        $("#user").show();
        return false;
    });
});

</script>
{% endif %}
{% endblock %}
{% endblock %}
{% analytics %}
</body>
</html>
