src/egonomy/templates/egonomy_view_fragment.html
author cavaliet
Mon, 24 Feb 2014 18:22:07 +0100
changeset 256 f4b443fcddc7
parent 252 b7486a56ad7d
child 260 ebcc7a401ae9
permissions -rw-r--r--
wikipedia fr for fragment tags
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
149
af59627418e7 view fragment with new style
cavaliet
parents: 110
diff changeset
     1
{% extends "egonomy_newbase.html" %}
15
64284803db94 view and create fragment views added
cavaliet
parents:
diff changeset
     2
{% load static %}
64284803db94 view and create fragment views added
cavaliet
parents:
diff changeset
     3
{% load i18n %}
18
ffd106d9b8e1 Prepare template for real datas. Some fake datas temporary generated in views.
cavaliet
parents: 15
diff changeset
     4
{% load thumbnail %}
15
64284803db94 view and create fragment views added
cavaliet
parents:
diff changeset
     5
64284803db94 view and create fragment views added
cavaliet
parents:
diff changeset
     6
{% block title %}{% trans "View a fragment" %}{% endblock %}
64284803db94 view and create fragment views added
cavaliet
parents:
diff changeset
     7
213
6655617f3d92 enhance arrows with pictures and and add arrows with fragments.
cavaliet
parents: 212
diff changeset
     8
{% block css_page %}
6655617f3d92 enhance arrows with pictures and and add arrows with fragments.
cavaliet
parents: 212
diff changeset
     9
    <link rel="stylesheet" href="{% static 'egonomy/css/slideshow.css' %}" />
6655617f3d92 enhance arrows with pictures and and add arrows with fragments.
cavaliet
parents: 212
diff changeset
    10
{% endblock %}
6655617f3d92 enhance arrows with pictures and and add arrows with fragments.
cavaliet
parents: 212
diff changeset
    11
15
64284803db94 view and create fragment views added
cavaliet
parents:
diff changeset
    12
{% block content %}
149
af59627418e7 view fragment with new style
cavaliet
parents: 110
diff changeset
    13
            <div class="title-page">
af59627418e7 view fragment with new style
cavaliet
parents: 110
diff changeset
    14
                <h2>{{ fragment.title }}</h2>
af59627418e7 view fragment with new style
cavaliet
parents: 110
diff changeset
    15
            </div>
af59627418e7 view fragment with new style
cavaliet
parents: 110
diff changeset
    16
            <div class="bar-tools clearfix">
af59627418e7 view fragment with new style
cavaliet
parents: 110
diff changeset
    17
                <ul class="clearfix left">
212
2cca82dd0e79 add arrows and search management with pictures.
cavaliet
parents: 168
diff changeset
    18
                    <!--li><a class="go-to mosaic" href="#"></a></li-->
2cca82dd0e79 add arrows and search management with pictures.
cavaliet
parents: 168
diff changeset
    19
                    {% if search %}
2cca82dd0e79 add arrows and search management with pictures.
cavaliet
parents: 168
diff changeset
    20
                    <li><a class="go-to search" href="{% url 'all_fragments' %}?search={{ search }}"></a></li>
2cca82dd0e79 add arrows and search management with pictures.
cavaliet
parents: 168
diff changeset
    21
                    {% endif %}
149
af59627418e7 view fragment with new style
cavaliet
parents: 110
diff changeset
    22
                </ul>
af59627418e7 view fragment with new style
cavaliet
parents: 110
diff changeset
    23
                <ul class="clearfix">
af59627418e7 view fragment with new style
cavaliet
parents: 110
diff changeset
    24
                    {% ifequal user fragment.author %}
af59627418e7 view fragment with new style
cavaliet
parents: 110
diff changeset
    25
                    <li>
af59627418e7 view fragment with new style
cavaliet
parents: 110
diff changeset
    26
                        <a class="icon edit" href="{% url 'create_fragment' image_id=fragment.image.id fragment_pk=fragment.pk %}">{% trans "Modify this fragment" %}</a>
af59627418e7 view fragment with new style
cavaliet
parents: 110
diff changeset
    27
                    </li>
af59627418e7 view fragment with new style
cavaliet
parents: 110
diff changeset
    28
                    <li>
af59627418e7 view fragment with new style
cavaliet
parents: 110
diff changeset
    29
                        <a class="icon trash" href="{% url 'delete_fragment' %}?fragment_pk={{fragment.pk}}" onclick="return confirm('{% trans "Do you really want to delete this fragment ? Warning : this action est irreversible." %}')">{% trans "Delete this fragment" %}</a>
af59627418e7 view fragment with new style
cavaliet
parents: 110
diff changeset
    30
                    </li>
af59627418e7 view fragment with new style
cavaliet
parents: 110
diff changeset
    31
                    {% endifequal %}
af59627418e7 view fragment with new style
cavaliet
parents: 110
diff changeset
    32
                    <li>
af59627418e7 view fragment with new style
cavaliet
parents: 110
diff changeset
    33
                        <a class="icon copy" href="{% url 'create_fragment' image_id=fragment.image.id %}?duplicate={{fragment.pk}}">{% trans "Duplicate this fragment" %}</a>
af59627418e7 view fragment with new style
cavaliet
parents: 110
diff changeset
    34
                    </li>
af59627418e7 view fragment with new style
cavaliet
parents: 110
diff changeset
    35
                    <li>
af59627418e7 view fragment with new style
cavaliet
parents: 110
diff changeset
    36
                        <a class="icon cut" href="{% url 'create_fragment' image_id=fragment.image.id %}">{% trans "Create a fragment" %}</a>
af59627418e7 view fragment with new style
cavaliet
parents: 110
diff changeset
    37
                    </li>
af59627418e7 view fragment with new style
cavaliet
parents: 110
diff changeset
    38
                    <li>
af59627418e7 view fragment with new style
cavaliet
parents: 110
diff changeset
    39
                      {% if user.is_authenticated %}
168
c90576d18319 argumentaire/list collection view
cavaliet
parents: 159
diff changeset
    40
                        <a class="icon plus open-popin additemtocollection" data-type="fragment" data-id="{{ fragment.pk }}" href="#add-to-collection">{% trans "Add to a collection" %}</a>
149
af59627418e7 view fragment with new style
cavaliet
parents: 110
diff changeset
    41
                      {% else %}
159
b98558f8d2c1 collection first step
cavaliet
parents: 149
diff changeset
    42
                        <a class="icon plus" href="{% url 'login' %}?next={% url 'view_fragment' fragment_pk=fragment.pk %}">{% trans "Add to a collection" %}</a>
149
af59627418e7 view fragment with new style
cavaliet
parents: 110
diff changeset
    43
                      {% endif %}
af59627418e7 view fragment with new style
cavaliet
parents: 110
diff changeset
    44
                    </li>
af59627418e7 view fragment with new style
cavaliet
parents: 110
diff changeset
    45
                    <!--li>
af59627418e7 view fragment with new style
cavaliet
parents: 110
diff changeset
    46
                        <a class="icon save" href="#">Enregistrer sous</a>
af59627418e7 view fragment with new style
cavaliet
parents: 110
diff changeset
    47
                    </li>
af59627418e7 view fragment with new style
cavaliet
parents: 110
diff changeset
    48
                    <li>
15
64284803db94 view and create fragment views added
cavaliet
parents:
diff changeset
    49
                        <form action="#">
149
af59627418e7 view fragment with new style
cavaliet
parents: 110
diff changeset
    50
                            <p>
af59627418e7 view fragment with new style
cavaliet
parents: 110
diff changeset
    51
                                <input class="search-form" id="id_search" type="text" placeholder="Romantisme noir">
af59627418e7 view fragment with new style
cavaliet
parents: 110
diff changeset
    52
                            </p>
15
64284803db94 view and create fragment views added
cavaliet
parents:
diff changeset
    53
                        </form>
149
af59627418e7 view fragment with new style
cavaliet
parents: 110
diff changeset
    54
                    </li-->
af59627418e7 view fragment with new style
cavaliet
parents: 110
diff changeset
    55
                </ul>
af59627418e7 view fragment with new style
cavaliet
parents: 110
diff changeset
    56
            </div>
af59627418e7 view fragment with new style
cavaliet
parents: 110
diff changeset
    57
            <article class="edition">
af59627418e7 view fragment with new style
cavaliet
parents: 110
diff changeset
    58
                <div class="slideshow box-edition">
af59627418e7 view fragment with new style
cavaliet
parents: 110
diff changeset
    59
                    <div class="image-wrap">
252
b7486a56ad7d v0.8.2 : html5 drag n drop attributes.
cavaliet
parents: 237
diff changeset
    60
                      <a draggable="true"  data-title="{{ fragment.title }}" 
b7486a56ad7d v0.8.2 : html5 drag n drop attributes.
cavaliet
parents: 237
diff changeset
    61
					     data-description="{% trans 'Fragment from' %} {{ fragment.image.metadata.titre|default:_('No title') }} {% trans 'Annotated by' %} {{ fragment.author }}" 
b7486a56ad7d v0.8.2 : html5 drag n drop attributes.
cavaliet
parents: 237
diff changeset
    62
					     href="{% url 'view_fragment' fragment_pk=fragment.pk %}">
149
af59627418e7 view fragment with new style
cavaliet
parents: 110
diff changeset
    63
                      {% if fragment_only %}
af59627418e7 view fragment with new style
cavaliet
parents: 110
diff changeset
    64
                        <div class="image-and-fragment square-fragment-600">
af59627418e7 view fragment with new style
cavaliet
parents: 110
diff changeset
    65
                         {% with fragment.image.info.image_file as image %}
af59627418e7 view fragment with new style
cavaliet
parents: 110
diff changeset
    66
                         {% include "partial/fragment_only.html" %}
af59627418e7 view fragment with new style
cavaliet
parents: 110
diff changeset
    67
                         {% endwith %}
af59627418e7 view fragment with new style
cavaliet
parents: 110
diff changeset
    68
                        </div>
af59627418e7 view fragment with new style
cavaliet
parents: 110
diff changeset
    69
                      {% else %}
af59627418e7 view fragment with new style
cavaliet
parents: 110
diff changeset
    70
                        <div class="image-and-fragment">
af59627418e7 view fragment with new style
cavaliet
parents: 110
diff changeset
    71
                          {% with 0.99 as ratio %}
af59627418e7 view fragment with new style
cavaliet
parents: 110
diff changeset
    72
                          {% with "600" as w_size %}
af59627418e7 view fragment with new style
cavaliet
parents: 110
diff changeset
    73
                          {% with "x600" as h_size %}
af59627418e7 view fragment with new style
cavaliet
parents: 110
diff changeset
    74
                          {% include "partial/picture_and_fragment.html" %}
af59627418e7 view fragment with new style
cavaliet
parents: 110
diff changeset
    75
                          {% endwith %}
af59627418e7 view fragment with new style
cavaliet
parents: 110
diff changeset
    76
                          {% endwith %}
af59627418e7 view fragment with new style
cavaliet
parents: 110
diff changeset
    77
                          {% endwith %}
25
48614929b87a Real sort on home. Real pict's fragment on other pages. Real links on intelligent pagination.
cavaliet
parents: 23
diff changeset
    78
                        </div>
149
af59627418e7 view fragment with new style
cavaliet
parents: 110
diff changeset
    79
                      {% endif %}
252
b7486a56ad7d v0.8.2 : html5 drag n drop attributes.
cavaliet
parents: 237
diff changeset
    80
                      </a>
149
af59627418e7 view fragment with new style
cavaliet
parents: 110
diff changeset
    81
                    </div>
213
6655617f3d92 enhance arrows with pictures and and add arrows with fragments.
cavaliet
parents: 212
diff changeset
    82
                  {% if search %}
6655617f3d92 enhance arrows with pictures and and add arrows with fragments.
cavaliet
parents: 212
diff changeset
    83
                    {% if index_search > 0 %}
149
af59627418e7 view fragment with new style
cavaliet
parents: 110
diff changeset
    84
                    <div class="arrow-wrap left-arrow">
213
6655617f3d92 enhance arrows with pictures and and add arrows with fragments.
cavaliet
parents: 212
diff changeset
    85
                        <a class="arrow" href="{% url 'fragment_by_search' %}?search={{ search }}&index_search={{ index_search|add:-1 }}"></a>
149
af59627418e7 view fragment with new style
cavaliet
parents: 110
diff changeset
    86
                    </div>
213
6655617f3d92 enhance arrows with pictures and and add arrows with fragments.
cavaliet
parents: 212
diff changeset
    87
                    {% endif %}
6655617f3d92 enhance arrows with pictures and and add arrows with fragments.
cavaliet
parents: 212
diff changeset
    88
                    {% if index_search|add:1 < nb_results %}
149
af59627418e7 view fragment with new style
cavaliet
parents: 110
diff changeset
    89
                    <div class="arrow-wrap right-arrow">
213
6655617f3d92 enhance arrows with pictures and and add arrows with fragments.
cavaliet
parents: 212
diff changeset
    90
                        <a class="arrow" href="{% url 'fragment_by_search' %}?search={{ search }}&index_search={{ index_search|add:1 }}"></a>
149
af59627418e7 view fragment with new style
cavaliet
parents: 110
diff changeset
    91
                    </div>
213
6655617f3d92 enhance arrows with pictures and and add arrows with fragments.
cavaliet
parents: 212
diff changeset
    92
                    {% endif %}
6655617f3d92 enhance arrows with pictures and and add arrows with fragments.
cavaliet
parents: 212
diff changeset
    93
                  {% endif %}
149
af59627418e7 view fragment with new style
cavaliet
parents: 110
diff changeset
    94
                    <ul class="share">
af59627418e7 view fragment with new style
cavaliet
parents: 110
diff changeset
    95
                        <li><a title="Partager sur Twitter" href="#" class="tool twitter"></a></li>
af59627418e7 view fragment with new style
cavaliet
parents: 110
diff changeset
    96
                        <li><a title="Partager sur Facebook" href="#" class="tool facebook"></a></li>
af59627418e7 view fragment with new style
cavaliet
parents: 110
diff changeset
    97
                    </ul>
af59627418e7 view fragment with new style
cavaliet
parents: 110
diff changeset
    98
                </div>
af59627418e7 view fragment with new style
cavaliet
parents: 110
diff changeset
    99
                <div class="info box-edition clearfix">
af59627418e7 view fragment with new style
cavaliet
parents: 110
diff changeset
   100
                    <table class="edition-table-left">
af59627418e7 view fragment with new style
cavaliet
parents: 110
diff changeset
   101
                        <tbody>
af59627418e7 view fragment with new style
cavaliet
parents: 110
diff changeset
   102
                            <tr>
af59627418e7 view fragment with new style
cavaliet
parents: 110
diff changeset
   103
                                <th>{% trans "Source picture" %}&nbsp;:</th>
af59627418e7 view fragment with new style
cavaliet
parents: 110
diff changeset
   104
                                <td><a href="{% url 'annotate_picture' image_id=fragment.image.id %}">{{ fragment.image.metadata.titre|default:_("No title") }}</a></td>
af59627418e7 view fragment with new style
cavaliet
parents: 110
diff changeset
   105
                            </tr>
af59627418e7 view fragment with new style
cavaliet
parents: 110
diff changeset
   106
                            <tr>
af59627418e7 view fragment with new style
cavaliet
parents: 110
diff changeset
   107
                                <th>{% trans "Fragment's title" %}&nbsp;:</th>
af59627418e7 view fragment with new style
cavaliet
parents: 110
diff changeset
   108
                                <td>{{ fragment.title }}</td>
af59627418e7 view fragment with new style
cavaliet
parents: 110
diff changeset
   109
                            </tr>
af59627418e7 view fragment with new style
cavaliet
parents: 110
diff changeset
   110
                            <tr>
af59627418e7 view fragment with new style
cavaliet
parents: 110
diff changeset
   111
                                <th>{% trans "Fragment's description" %}&nbsp;:</th>
af59627418e7 view fragment with new style
cavaliet
parents: 110
diff changeset
   112
                                <td>{{ fragment.description }}</td>
af59627418e7 view fragment with new style
cavaliet
parents: 110
diff changeset
   113
                            </tr>
af59627418e7 view fragment with new style
cavaliet
parents: 110
diff changeset
   114
                            <tr>
af59627418e7 view fragment with new style
cavaliet
parents: 110
diff changeset
   115
                                <th>{% trans "Last modification" %}&nbsp;:</th>
af59627418e7 view fragment with new style
cavaliet
parents: 110
diff changeset
   116
                                <td>{{ fragment.date_saved }} {% trans 'by' %} <strong><a href="{% url 'user_fragments' username=fragment.author %}">{{ fragment.author }}</a></strong></td>
af59627418e7 view fragment with new style
cavaliet
parents: 110
diff changeset
   117
                            </tr>
af59627418e7 view fragment with new style
cavaliet
parents: 110
diff changeset
   118
                        </tbody>
af59627418e7 view fragment with new style
cavaliet
parents: 110
diff changeset
   119
                    </table>
af59627418e7 view fragment with new style
cavaliet
parents: 110
diff changeset
   120
                    <table class="edition-table-right">
af59627418e7 view fragment with new style
cavaliet
parents: 110
diff changeset
   121
                        <tbody>
af59627418e7 view fragment with new style
cavaliet
parents: 110
diff changeset
   122
                        {% if fragment_only %}
af59627418e7 view fragment with new style
cavaliet
parents: 110
diff changeset
   123
                            <tr><th><a href="{% url 'view_fragment' fragment_pk=fragment.pk %}?fragment_only=0">{% trans "See the fragment in its full picture" %} :</a></th></tr>
af59627418e7 view fragment with new style
cavaliet
parents: 110
diff changeset
   124
                            <tr><td><a href="{% url 'view_fragment' fragment_pk=fragment.pk %}?fragment_only=0">
af59627418e7 view fragment with new style
cavaliet
parents: 110
diff changeset
   125
                                <div class="image-and-fragment">
af59627418e7 view fragment with new style
cavaliet
parents: 110
diff changeset
   126
                                  {% with 1 as ratio %}
af59627418e7 view fragment with new style
cavaliet
parents: 110
diff changeset
   127
                                  {% with "110" as w_size %}
af59627418e7 view fragment with new style
cavaliet
parents: 110
diff changeset
   128
                                  {% with "x110" as h_size %}
af59627418e7 view fragment with new style
cavaliet
parents: 110
diff changeset
   129
                                  {% include "partial/picture_and_fragment.html" %}
af59627418e7 view fragment with new style
cavaliet
parents: 110
diff changeset
   130
                                  {% endwith %}
af59627418e7 view fragment with new style
cavaliet
parents: 110
diff changeset
   131
                                  {% endwith %}
af59627418e7 view fragment with new style
cavaliet
parents: 110
diff changeset
   132
                                  {% endwith %}
af59627418e7 view fragment with new style
cavaliet
parents: 110
diff changeset
   133
                                </div></a>
af59627418e7 view fragment with new style
cavaliet
parents: 110
diff changeset
   134
                            </td></tr>
78
67d3fb0e54a6 enhance view fragment with new svg display
cavaliet
parents: 74
diff changeset
   135
                            </a>
149
af59627418e7 view fragment with new style
cavaliet
parents: 110
diff changeset
   136
                        {% else %}
af59627418e7 view fragment with new style
cavaliet
parents: 110
diff changeset
   137
                            <tr><th><a href="{% url 'view_fragment' fragment_pk=fragment.pk %}">{% trans "See the fragment only" %} :</a></th></tr>
af59627418e7 view fragment with new style
cavaliet
parents: 110
diff changeset
   138
                            <tr><td><a href="{% url 'view_fragment' fragment_pk=fragment.pk %}">
af59627418e7 view fragment with new style
cavaliet
parents: 110
diff changeset
   139
                                <div class="image-and-fragment square-fragment-110">
78
67d3fb0e54a6 enhance view fragment with new svg display
cavaliet
parents: 74
diff changeset
   140
                                 {% with image=fragment.image.info.image_file %}
79
2a51570e986b Efficiant template code factorization.
cavaliet
parents: 78
diff changeset
   141
                                 {% include "partial/fragment_only.html" %}
78
67d3fb0e54a6 enhance view fragment with new svg display
cavaliet
parents: 74
diff changeset
   142
                                 {% endwith %}
149
af59627418e7 view fragment with new style
cavaliet
parents: 110
diff changeset
   143
                                </div></a>
af59627418e7 view fragment with new style
cavaliet
parents: 110
diff changeset
   144
                            </td></tr>
78
67d3fb0e54a6 enhance view fragment with new svg display
cavaliet
parents: 74
diff changeset
   145
                            </a>
149
af59627418e7 view fragment with new style
cavaliet
parents: 110
diff changeset
   146
                        {% endif %}
af59627418e7 view fragment with new style
cavaliet
parents: 110
diff changeset
   147
                        </tbody>
af59627418e7 view fragment with new style
cavaliet
parents: 110
diff changeset
   148
                    </table>
af59627418e7 view fragment with new style
cavaliet
parents: 110
diff changeset
   149
                </div>
af59627418e7 view fragment with new style
cavaliet
parents: 110
diff changeset
   150
                <div class="box-edition">
af59627418e7 view fragment with new style
cavaliet
parents: 110
diff changeset
   151
                    <table>
af59627418e7 view fragment with new style
cavaliet
parents: 110
diff changeset
   152
                        <tbody>
af59627418e7 view fragment with new style
cavaliet
parents: 110
diff changeset
   153
                            <tr>
237
923b5823ef15 collections in fragment and image page. debug delete fragment.
cavaliet
parents: 213
diff changeset
   154
                                <th class="va-top">{% trans "Fragment's keywords" %}&nbsp;:</th>
149
af59627418e7 view fragment with new style
cavaliet
parents: 110
diff changeset
   155
                                <td>
af59627418e7 view fragment with new style
cavaliet
parents: 110
diff changeset
   156
                                    <ul class="list-key-search no-before list-keywords clearfix">
256
f4b443fcddc7 wikipedia fr for fragment tags
cavaliet
parents: 252
diff changeset
   157
                                      {% for t in fragment.tag_list_linked %}
f4b443fcddc7 wikipedia fr for fragment tags
cavaliet
parents: 252
diff changeset
   158
	                                    {% if t.label != "" %}
f4b443fcddc7 wikipedia fr for fragment tags
cavaliet
parents: 252
diff changeset
   159
	                                      {% if t.url != "" %}
f4b443fcddc7 wikipedia fr for fragment tags
cavaliet
parents: 252
diff changeset
   160
	                                        <li>
f4b443fcddc7 wikipedia fr for fragment tags
cavaliet
parents: 252
diff changeset
   161
	                                          <span class="box-shadow-2 clean-linked-list">
f4b443fcddc7 wikipedia fr for fragment tags
cavaliet
parents: 252
diff changeset
   162
	                                            <a data-tag="{{ t.label }}"  href='{% url "all_fragments" %}?field=all&search="{{ t.label }}"'>{{ t.label }}</a> 
f4b443fcddc7 wikipedia fr for fragment tags
cavaliet
parents: 252
diff changeset
   163
	                                            <a href="{{ t.url }}" target="_blank"><span class="logo_wikipedia">&nbsp;</span></a>
f4b443fcddc7 wikipedia fr for fragment tags
cavaliet
parents: 252
diff changeset
   164
	                                          </span>
f4b443fcddc7 wikipedia fr for fragment tags
cavaliet
parents: 252
diff changeset
   165
	                                        </li>
f4b443fcddc7 wikipedia fr for fragment tags
cavaliet
parents: 252
diff changeset
   166
	                                      {% else %}
f4b443fcddc7 wikipedia fr for fragment tags
cavaliet
parents: 252
diff changeset
   167
	                                        <li><a data-tag="{{ t.label }}" class="box-shadow-2" href='{% url "all_fragments" %}?field=all&search="{{ t.label }}"'>{{ t.label }}</a></li>
f4b443fcddc7 wikipedia fr for fragment tags
cavaliet
parents: 252
diff changeset
   168
	                                      {% endif %}
f4b443fcddc7 wikipedia fr for fragment tags
cavaliet
parents: 252
diff changeset
   169
	                                    {% endif %}
149
af59627418e7 view fragment with new style
cavaliet
parents: 110
diff changeset
   170
	                                  {% endfor %}
af59627418e7 view fragment with new style
cavaliet
parents: 110
diff changeset
   171
                                    </ul>
af59627418e7 view fragment with new style
cavaliet
parents: 110
diff changeset
   172
                                </td>
af59627418e7 view fragment with new style
cavaliet
parents: 110
diff changeset
   173
                            </tr>
af59627418e7 view fragment with new style
cavaliet
parents: 110
diff changeset
   174
                        </tbody>
af59627418e7 view fragment with new style
cavaliet
parents: 110
diff changeset
   175
                    </table>
15
64284803db94 view and create fragment views added
cavaliet
parents:
diff changeset
   176
                </div>
149
af59627418e7 view fragment with new style
cavaliet
parents: 110
diff changeset
   177
                <div class="box-edition">
af59627418e7 view fragment with new style
cavaliet
parents: 110
diff changeset
   178
                    <h3>{% trans "Fragments from this picture" %} :</h3>
af59627418e7 view fragment with new style
cavaliet
parents: 110
diff changeset
   179
                    {% if fragment_list %}
af59627418e7 view fragment with new style
cavaliet
parents: 110
diff changeset
   180
                    <ul class="fullwidth clearfix">
af59627418e7 view fragment with new style
cavaliet
parents: 110
diff changeset
   181
                      {% for fragment in fragment_list %}
af59627418e7 view fragment with new style
cavaliet
parents: 110
diff changeset
   182
                        <li class="subcol subcol-seventh">
af59627418e7 view fragment with new style
cavaliet
parents: 110
diff changeset
   183
                            <a href="{% url 'view_fragment' fragment_pk=fragment.pk %}">
af59627418e7 view fragment with new style
cavaliet
parents: 110
diff changeset
   184
                            <div class="center-image">
af59627418e7 view fragment with new style
cavaliet
parents: 110
diff changeset
   185
                                <div class="image-and-fragment">
af59627418e7 view fragment with new style
cavaliet
parents: 110
diff changeset
   186
                                 {% include "partial/picture_and_red_fragment.html" %}
15
64284803db94 view and create fragment views added
cavaliet
parents:
diff changeset
   187
                                </div>
149
af59627418e7 view fragment with new style
cavaliet
parents: 110
diff changeset
   188
                            </div>
af59627418e7 view fragment with new style
cavaliet
parents: 110
diff changeset
   189
                            <h3>{{ fragment.title }}</h3></a>
af59627418e7 view fragment with new style
cavaliet
parents: 110
diff changeset
   190
                            <p>{% trans "Annotated by" %} <strong><a href="{% url 'user_fragments' username=fragment.author %}">{{ fragment.author }}</a></strong></p>
af59627418e7 view fragment with new style
cavaliet
parents: 110
diff changeset
   191
                        </li>
af59627418e7 view fragment with new style
cavaliet
parents: 110
diff changeset
   192
                      {% endfor %}
af59627418e7 view fragment with new style
cavaliet
parents: 110
diff changeset
   193
                    </ul>
af59627418e7 view fragment with new style
cavaliet
parents: 110
diff changeset
   194
                    {% else %}
af59627418e7 view fragment with new style
cavaliet
parents: 110
diff changeset
   195
                    <p class="null">{% trans "No fragment" %}</p>
af59627418e7 view fragment with new style
cavaliet
parents: 110
diff changeset
   196
                    {% endif %}
15
64284803db94 view and create fragment views added
cavaliet
parents:
diff changeset
   197
                </div>
149
af59627418e7 view fragment with new style
cavaliet
parents: 110
diff changeset
   198
                <div class="box-edition">
237
923b5823ef15 collections in fragment and image page. debug delete fragment.
cavaliet
parents: 213
diff changeset
   199
                    <h3>{% trans "Collections including this fragment" %} :</h3>
923b5823ef15 collections in fragment and image page. debug delete fragment.
cavaliet
parents: 213
diff changeset
   200
                    {% if related_collections %}
923b5823ef15 collections in fragment and image page. debug delete fragment.
cavaliet
parents: 213
diff changeset
   201
                    <ul class="fullwidth clearfix">
923b5823ef15 collections in fragment and image page. debug delete fragment.
cavaliet
parents: 213
diff changeset
   202
                    {% for c in related_collections %}
923b5823ef15 collections in fragment and image page. debug delete fragment.
cavaliet
parents: 213
diff changeset
   203
                        <li class="subcol subcol-seventh">
923b5823ef15 collections in fragment and image page. debug delete fragment.
cavaliet
parents: 213
diff changeset
   204
                            <a href="{% url 'view_collection' collection_pk=c.pk %}">
923b5823ef15 collections in fragment and image page. debug delete fragment.
cavaliet
parents: 213
diff changeset
   205
                            <h3>{{ c.title }}</h3></a>
923b5823ef15 collections in fragment and image page. debug delete fragment.
cavaliet
parents: 213
diff changeset
   206
                            <p>{% trans "by" %} <strong><a href="{% url 'user_collections' username=c.author %}">{{ c.author }}</a></strong></p>
923b5823ef15 collections in fragment and image page. debug delete fragment.
cavaliet
parents: 213
diff changeset
   207
                        </li>
923b5823ef15 collections in fragment and image page. debug delete fragment.
cavaliet
parents: 213
diff changeset
   208
                      {% endfor %}
923b5823ef15 collections in fragment and image page. debug delete fragment.
cavaliet
parents: 213
diff changeset
   209
                    </ul>
923b5823ef15 collections in fragment and image page. debug delete fragment.
cavaliet
parents: 213
diff changeset
   210
                    {% else %}
149
af59627418e7 view fragment with new style
cavaliet
parents: 110
diff changeset
   211
                    <p class="null">{% trans "No collection" %}</p>
237
923b5823ef15 collections in fragment and image page. debug delete fragment.
cavaliet
parents: 213
diff changeset
   212
                    {% endif %}
149
af59627418e7 view fragment with new style
cavaliet
parents: 110
diff changeset
   213
                </div>
af59627418e7 view fragment with new style
cavaliet
parents: 110
diff changeset
   214
            </article>
15
64284803db94 view and create fragment views added
cavaliet
parents:
diff changeset
   215
{% endblock %}