src/ldtplatform/templates/front/front_base.html
changeset 312 c37af1808f61
child 314 abc5cdfefef4
equal deleted inserted replaced
311:20d417469452 312:c37af1808f61
       
     1 {% load i18n %}
       
     2 {% load logintag %}
       
     3 {% load navigation %}
       
     4 {% load static %}
       
     5 {% load analytics %}
       
     6 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
       
     7     "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
       
     8 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="{{LANGUAGE_CODE}}" lang="{{LANGUAGE_CODE}}">
       
     9 <head>
       
    10 {% block head %}
       
    11     <meta http-equiv="Content-type" content="text/html;charset=UTF-8" />
       
    12     <meta http-equiv="content-language" content="{{LANGUAGE_CODE}}" />
       
    13     <link rel="SHORTCUT ICON" href='{% static "ldt/img/favicon.ico" %}' />
       
    14     <title>{% block title %}Lignes de temps{% endblock %}</title>
       
    15     {% block js_import %}
       
    16         <script src='{% static "ldt/js/jquery.min.js" %}' type="text/javascript"></script>
       
    17         <script src='{% static "ldt/js/jquery.textchange.min.js" %}' type="text/javascript"></script>
       
    18     {% endblock %}
       
    19     {% block css_declaration %}{% endblock %}
       
    20     {% block css_import %}
       
    21     <link rel="stylesheet" href='{% static "ldt/css/front_common.css" %}' type="text/css"/>
       
    22     <link rel="stylesheet" href='{% static "ldt/css/web_front_common.css" %}' type="text/css"/>
       
    23     {% endblock %}
       
    24     {% block js_declaration %}
       
    25     <script type="text/javascript">
       
    26         $(document).ready(function () {            
       
    27             $("#id_search").bind('hastext', function () {
       
    28                 $("#search_submit").addClass('search_valid').removeClass('search_invalid');
       
    29                 $("#search_submit").removeAttr('disabled');
       
    30             });
       
    31             $("#id_search").bind('notext', function () {
       
    32                 $("#search_submit").addClass('search_invalid').removeClass('search_valid');
       
    33                 $("#search_submit").attr('disabled', 'disabled');
       
    34             });
       
    35         });
       
    36     </script>
       
    37     {% endblock %}
       
    38 {% endblock %}
       
    39 </head>
       
    40 <body>
       
    41 
       
    42 
       
    43 <div id="general_container">
       
    44     <ul class="floatlist" id="title_bar">
       
    45         <li id="li_h1">
       
    46             <h1><a href="{% url 'ldt.ldt_utils.views.front.front_home' %}" title="{% trans 'homepage' %}">{% trans '<b>Lignes</b> de temps' %}</a></h1>
       
    47         </li>
       
    48         <li id="li_search">
       
    49             <form id="form_search" action="{% url 'ldt.ldt_utils.views.front.search_index' %}" method="GET">
       
    50                 <!--input id="search_text" name="q" value="" /-->
       
    51                 <input id="id_search" type="text" name="search">
       
    52                 <input type="hidden" value="all" name="field">
       
    53                 {% if tag_label %}<input type="hidden" value="{{tag_label}}" name="content_tag">{% endif %}
       
    54                 <input id="search_submit" class="search_invalid" type="submit" value="{% trans 'Search' %}" disabled="true"/>
       
    55             </form>
       
    56             
       
    57         {% if user.is_authenticated %}
       
    58         <li id="li_annotation">
       
    59             <div class="fl">
       
    60                 <!-- a href="#"><img src='{% static "ldt/img/annot_icon.png" %}' id="annot_icon" /></a -->
       
    61                 <a href="{% url 'root-view' %}"  title="{% trans "My projects" %}">{% trans "My projects" %}</a>
       
    62             </div>
       
    63             <div class="fl">
       
    64                 <!-- a href="{% url 'root-view' %}">{% trans 'Annotate' %}</a -->
       
    65             </div>
       
    66         </li>
       
    67         {% endif %}
       
    68         
       
    69         <li id="li_connexion">
       
    70              {% if user.is_authenticated %}
       
    71                  <a href="{% url 'ldt.user.views.logout_view' %}" title="{% trans "Log out" %}">{% trans "Log out" %}</a>
       
    72              {% else %}
       
    73                  <a href="{% url 'auth_login' %}" title="{% trans "Log in" %}">{% trans "Log in" %}</a>
       
    74              {% endif %}
       
    75         </li>
       
    76     </ul>
       
    77 {% block body %}
       
    78 {% endblock %}
       
    79 
       
    80 <!-- FOOTER COMMUN -->
       
    81 {% block footer %}
       
    82     <ul id="footer">
       
    83         <li>Vidéos servies par <a href="http://www.colt.net/" target="_blank"><div class="colt-logo">COLT</div></a></li>
       
    84         <li>{% blocktrans %}{{WEB_VERSION}} | {{ VERSION }}{% endblocktrans %}</li>
       
    85         <li>©{% now "Y" %} IRI</li>
       
    86         <li>
       
    87             <a target="_blank" href="http://www.iri.centrepompidou.fr" title="{% trans 'link IRI'%}">{% trans "about" %}</a>
       
    88         </li>
       
    89         {% url 'mashup_home' branding='iri' as hc_url %}
       
    90         {% if hc_url %}<li><a href="{{ hc_url }}">HashCut (mash-up)</a></li>{% endif %}
       
    91         {% url 'composer_home'  as cp_url %}
       
    92         {% if cp_url %}<li><a href="{{ cp_url }}">MetadataComposer (hyper video)</a></li>{% endif %}
       
    93     </ul>
       
    94 {% endblock %}
       
    95     <div class="clear"></div>
       
    96 </div>
       
    97 {% analytics %}
       
    98 </body>
       
    99 </html>
       
   100