{% 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>{% trans "Hashcut" %} {{branding}} » {% block title %}{% trans "Home" %}{% 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_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="{% url 'jsi18n' 'hashcut' %}"></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 %}
</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 %}">{% trans "Create a new hashcut!" %}</a></h2>
</div>
<div class="profil-wrap">
<ul class="space-top-2">
<li><a href="#user" class="my-profil open-popin">{% trans "My profile" %}</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>{% trans "Featured Hashcuts" %}</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 %} {% endthumbnail %}</a>
<h3><a class="title" href="{% url 'mashup_hashcut' branding=branding ldt_id=m1.project.ldt_id %}">{{ m1.project.title }}</a> {% trans "by" %} <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 %} {% endthumbnail %}</a>
<h3><a class="title" href="{% url 'mashup_hashcut' branding=branding ldt_id=m2.project.ldt_id %}">{{ m2.project.title }}</a> {% trans "by" %} <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>{% trans "Newest 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 %} {% endthumbnail %}</a>
<h3><a class="title" href="{% url 'mashup_hashcut' branding=branding ldt_id=m.project.ldt_id %}">{% if m.project.title|length > 30 %}{{m.project.title|slice:":30"}}...{% else %}{{m.project.title}}{% endif %}</a> {% trans "by" %} <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 %}">{% trans 'All Hashcuts' %}</a>
</div>
<h2>{% trans "Available videos" %}</h2>
<div class="hashcut-video-wrap last">
{% for content in contents %}
<div class="video-item">
<a href="{% url 'mashup_content' branding=branding ctt_id=content.iri_id %}" class="screenshot">{% thumbnail content.image "142x95" crop="center" format="PNG" as im %}<img src="{{ im.url }}" width="{{ im.width }}" height="{{ im.height }}" alt=""/>{% empty %} {% endthumbnail %}</a>
<h3><a class="title" href="{% url 'mashup_content' branding=branding ctt_id=content.iri_id %}">{% if content.title|length > 30 %}{{content.title|slice:":30"}}...{% else %}{{content.title}}{% endif %}</a> | <span class="duration">{{content.duration|str_duration:"h"}}</span></h3>
</div>
{% endfor %}
</div>
<div class="pagination">
<a href="{% url 'mashup_all_contents' branding=branding %}">{% trans 'All source videos' %}</a>
</div>
</div><!-- left-content -->
<div class="right-content">
<div class="definition">
<h2>{% trans "What's a Hashcut?" %}</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>{% trans "How to?" %}</h2>
<ul>
<li class="inscription">
<h3><a class="open-popin" href="#user">1. {% trans "Sign up" %}</a></h3>
<p>{% trans "Start by creating your own profile on this platform." %}</p>
</li>
<li class="next-step"></li>
<li class="creation">
<h3><a href="{% url 'mashup_edit' branding=branding %}">2. {% trans "Create a new hashcut" %}</a></h3>
<p>{% trans "Choose videos, define and organize segments and comment them to create your own hashcut." %}</p>
</li>
<li class="next-step"></li>
<li class="publier">
<h3><a href="#">3. {% trans "Publish and share" %}</a></h3>
<p>{% trans "Once your hashcut is done, publish it here and share your work on social networks." %}</p>
</li>
</ul>
</div>
</div><!-- left-content -->
</div><!-- content -->
{% endblock %}
{% block footer %}
<div class="footer clearfix">
<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 %}
{% endblock %}
{% analytics %}
</body>
</html>