22 <div class="column column-half"> |
22 <div class="column column-half"> |
23 <form action="#"> |
23 <form action="#"> |
24 <table class="image-metadata"> |
24 <table class="image-metadata"> |
25 <tr> |
25 <tr> |
26 <th>{% trans "Description" %} :</th> |
26 <th>{% trans "Description" %} :</th> |
27 <td>{{ img.metadata.description }}</td> |
27 <td>{% if img.metadata.description %}{{ img.metadata.description }}{% endif %}</td> |
28 </tr> |
28 </tr> |
29 <tr> |
29 <tr> |
30 <th>{% trans "Author" %} :</th> |
30 <th>{% trans "Author" %} :</th> |
31 <td>{{ img.metadata.auteur }}</td> |
31 <td>{% if img.metadata.auteur %}{{ img.metadata.auteur }}{% endif %}</td> |
32 </tr> |
32 </tr> |
33 <tr> |
33 <tr> |
34 <th>{% trans "Period" %} :</th> |
34 <th>{% trans "Period" %} :</th> |
35 <td>{{ img.metadata.periode }}</td> |
35 <td>{% if img.metadata.periode %}{{ img.metadata.periode }}{% endif %}</td> |
36 </tr> |
36 </tr> |
37 <tr> |
37 <tr> |
38 <th>{% trans "Production site" %} :</th> |
38 <th>{% trans "Production site" %} :</th> |
39 <td>{{ img.metadata.site }}</td> |
39 <td>{% if img.metadata.site %}{{ img.metadata.site }}{% endif %}</td> |
40 </tr> |
40 </tr> |
41 <tr> |
41 <tr> |
42 <th>{% trans "Localization" %} :</th> |
42 <th>{% trans "Localization" %} :</th> |
43 <td>{{ img.metadata.lieu }}</td> |
43 <td>{% if img.metadata.lieu %}{{ img.metadata.lieu }}{% endif %}</td> |
44 </tr> |
44 </tr> |
45 <tr> |
45 <tr> |
46 <th>{% trans "RMN keywords" %} :</th> |
46 <th>{% trans "RMN keywords" %} :</th> |
47 <td>{{ img.metadata.mots_cles }}</td> |
47 <td>{% if img.metadata.mots_cles %}{{ img.metadata.mots_cles }}{% endif %}</td> |
48 </tr> |
48 </tr> |
49 <tr> |
49 <!--tr> |
50 <th>{% trans "Users keywords" %}</th> |
|
51 <td><textarea class="user-keywords">{{ img.metadata.users_keywords }}</textarea></td> |
|
52 </tr> |
|
53 <tr> |
|
54 <th> </th> |
50 <th> </th> |
55 <td><input class="user-submit" type="submit" value="{% trans 'Save keywords' %}" /></td> |
51 <td><input class="user-submit" type="submit" value="{% trans 'Save keywords' %}" /></td> |
56 </tr> |
52 </tr--> |
57 <tr> |
53 <tr> |
58 <th>{% trans "Last modification" %} :</th> |
54 <th>{% trans "Last fragment created" %} :</th> |
59 <td>le 23 janvier 2013 par Utilisateur17</td> |
55 <td>{% if last_frg %}<a href="{% url 'view_fragment' fragment_pk=last_frg.pk %}">{{ last_frg.title }}</a>, {{ last_frg.date_saved }} {% trans 'by' %} <strong>{{ last_frg.author }}</strong>{% endif %}</td> |
60 </tr> |
56 </tr> |
61 </table> |
57 </table> |
62 </form> |
58 </form> |
63 <div class="fullwidth"> |
59 <div class="fullwidth"> |
64 <a href="{% url 'create_fragment' image_id=img.id %}" class="big-button">{% trans "Create a fragment" %}</a> |
60 <a href="{% url 'create_fragment' image_id=img.id %}" class="big-button">{% trans "Create a fragment" %}</a> |
69 <div class="column column-full"> |
65 <div class="column column-full"> |
70 <h2>{% trans "Fragments from this picture" %}</h2> |
66 <h2>{% trans "Fragments from this picture" %}</h2> |
71 <ul class="fullwidth"> |
67 <ul class="fullwidth"> |
72 {% for frg in fragment_list %} |
68 {% for frg in fragment_list %} |
73 <li class="subcol subcol-eighth"> |
69 <li class="subcol subcol-eighth"> |
74 <a href="{% url 'view_fragment' fragment_pk='1' %}"> |
70 <a href="{% url 'view_fragment' fragment_pk=frg.pk %}"> |
75 <div class="center-image"> |
71 <div class="center-image"> |
76 <div class="image-and-fragment"> |
72 <div class="image-and-fragment"> |
77 {% with frg.image.info.image_file as image %} |
73 {% with frg.image.info.image_file as image %} |
78 {% if image %} |
74 {% if image %} |
79 {% if image|is_portrait %} |
75 {% if image|is_portrait %} |