# HG changeset patch # User cavaliet # Date 1373904057 -7200 # Node ID 923b5823ef156104d2ed5557fef86ac3499baa82 # Parent 47979c0f1b970cb24491058949ab6e9af46142b7 collections in fragment and image page. debug delete fragment. diff -r 47979c0f1b97 -r 923b5823ef15 src/egonomy/locale/en/LC_MESSAGES/django.mo Binary file src/egonomy/locale/en/LC_MESSAGES/django.mo has changed diff -r 47979c0f1b97 -r 923b5823ef15 src/egonomy/locale/en/LC_MESSAGES/django.po --- a/src/egonomy/locale/en/LC_MESSAGES/django.po Fri Jul 12 14:59:52 2013 +0200 +++ b/src/egonomy/locale/en/LC_MESSAGES/django.po Mon Jul 15 18:00:57 2013 +0200 @@ -8,7 +8,7 @@ msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2013-07-12 05:48-0500\n" +"POT-Creation-Date: 2013-07-15 10:51-0500\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -25,19 +25,24 @@ msgid "English" msgstr "" -#: views.py:106 views.py:130 +#: views.py:114 views.py:138 msgid "You are not allowed to modify this fragment." msgstr "" -#: views.py:332 +#: views.py:340 msgid "You are not allowed to delete this fragment." msgstr "" -#: views.py:586 +#: views.py:344 +msgid "" +"You can not delete this fragment, it is used in one or several collections." +msgstr "" + +#: views.py:598 msgid "You are not allowed to delete this collection." msgstr "" -#: views.py:616 templates/egonomy_annotate_picture.html:14 +#: views.py:630 templates/egonomy_annotate_picture.html:14 #: templates/egonomy_create_fragment.html:14 #: templates/egonomy_create_fragment.html:77 #: templates/egonomy_view_fragment.html:100 @@ -47,7 +52,7 @@ msgid "No title" msgstr "" -#: views.py:654 views.py:708 views.py:743 +#: views.py:668 views.py:722 views.py:757 msgid "You are not allowed to modify this collection." msgstr "" @@ -193,18 +198,24 @@ msgid "No fragment" msgstr "" -#: templates/egonomy_annotate_picture.html:136 -#: templates/egonomy_create_fragment.html:138 -#: templates/egonomy_view_fragment.html:185 -msgid "No collection" +#: templates/egonomy_annotate_picture.html:135 +msgid "Collections including this picture" msgstr "" -#: templates/egonomy_base.html:36 templates/egonomy_view_collection.html:76 +#: templates/egonomy_annotate_picture.html:142 templates/egonomy_base.html:36 +#: templates/egonomy_view_collection.html:76 #: templates/egonomy_view_fragment.html:112 +#: templates/egonomy_view_fragment.html:191 #: templates/partial/collection_in_list.html:21 msgid "by" msgstr "" +#: templates/egonomy_annotate_picture.html:147 +#: templates/egonomy_create_fragment.html:138 +#: templates/egonomy_view_fragment.html:196 +msgid "No collection" +msgstr "" + #: templates/egonomy_base.html:38 templates/egonomy_newbase.html:74 #: templates/egonomy_view_collection.html:183 msgid "Search" @@ -369,6 +380,10 @@ msgstr "" #: templates/egonomy_view_collection.html:93 +#: templates/partial/item_in_collection_list.html:35 +#: templates/partial/item_in_collection_list.html:93 +#: templates/partial/item_in_collection_mosaic.html:39 +#: templates/partial/item_in_collection_mosaic.html:81 msgid "Modify the item's comment" msgstr "" @@ -438,6 +453,10 @@ msgid "See the fragment only" msgstr "" +#: templates/egonomy_view_fragment.html:184 +msgid "Collections including this fragment" +msgstr "" + #: templates/partial/fragment_in_list.html:15 msgid "Fragment from" msgstr "" diff -r 47979c0f1b97 -r 923b5823ef15 src/egonomy/locale/fr/LC_MESSAGES/django.mo Binary file src/egonomy/locale/fr/LC_MESSAGES/django.mo has changed diff -r 47979c0f1b97 -r 923b5823ef15 src/egonomy/locale/fr/LC_MESSAGES/django.po --- a/src/egonomy/locale/fr/LC_MESSAGES/django.po Fri Jul 12 14:59:52 2013 +0200 +++ b/src/egonomy/locale/fr/LC_MESSAGES/django.po Mon Jul 15 18:00:57 2013 +0200 @@ -8,7 +8,7 @@ msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2013-07-12 05:48-0500\n" +"POT-Creation-Date: 2013-07-15 10:51-0500\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -26,20 +26,26 @@ msgid "English" msgstr "Anglais" -#: views.py:106 -#: views.py:130 +#: views.py:114 +#: views.py:138 msgid "You are not allowed to modify this fragment." msgstr "Vous n'êtes pas autorisé à modifier ce fragment." -#: views.py:332 +#: views.py:340 msgid "You are not allowed to delete this fragment." msgstr "Vous n'êtes pas autorisé à supprimer ce fragment." -#: views.py:586 +#: views.py:344 +msgid "" +"You can not delete this fragment, it is used in one or several collections." +msgstr "Vous ne pouvez pas supprimer ce fragment, il est utilisé dans une ou " +"plusieurs collections." + +#: views.py:598 msgid "You are not allowed to delete this collection." msgstr "Vous n'êtes pas autorisé à supprimer cette collection." -#: views.py:616 +#: views.py:630 #: templates/egonomy_annotate_picture.html:14 #: templates/egonomy_create_fragment.html:14 #: templates/egonomy_create_fragment.html:77 @@ -50,9 +56,9 @@ msgid "No title" msgstr "Sans titre" -#: views.py:654 -#: views.py:708 -#: views.py:743 +#: views.py:668 +#: views.py:722 +#: views.py:757 msgid "You are not allowed to modify this collection." msgstr "Vous n'êtes pas autorisé à modifier cette collection." @@ -202,19 +208,25 @@ msgid "No fragment" msgstr "Pas de fragment" -#: templates/egonomy_annotate_picture.html:136 -#: templates/egonomy_create_fragment.html:138 -#: templates/egonomy_view_fragment.html:185 -msgid "No collection" -msgstr "Pas de collection" +#: templates/egonomy_annotate_picture.html:135 +msgid "Collections including this picture" +msgstr "Collections incluant cette image" +#: templates/egonomy_annotate_picture.html:142 #: templates/egonomy_base.html:36 #: templates/egonomy_view_collection.html:76 #: templates/egonomy_view_fragment.html:112 +#: templates/egonomy_view_fragment.html:191 #: templates/partial/collection_in_list.html:21 msgid "by" msgstr "par" +#: templates/egonomy_annotate_picture.html:147 +#: templates/egonomy_create_fragment.html:138 +#: templates/egonomy_view_fragment.html:196 +msgid "No collection" +msgstr "Pas de collection" + #: templates/egonomy_base.html:38 #: templates/egonomy_newbase.html:74 #: templates/egonomy_view_collection.html:183 @@ -383,6 +395,10 @@ msgstr "Visible pour tout le monde" #: templates/egonomy_view_collection.html:93 +#: templates/partial/item_in_collection_list.html:35 +#: templates/partial/item_in_collection_list.html:93 +#: templates/partial/item_in_collection_mosaic.html:39 +#: templates/partial/item_in_collection_mosaic.html:81 msgid "Modify the item's comment" msgstr "Modifier le commentaire de cet élément" @@ -454,6 +470,10 @@ msgid "See the fragment only" msgstr "Voir le fragment seul" +#: templates/egonomy_view_fragment.html:184 +msgid "Collections including this fragment" +msgstr "Collections incluant ce fragment" + #: templates/partial/fragment_in_list.html:15 msgid "Fragment from" msgstr "Fragment de" diff -r 47979c0f1b97 -r 923b5823ef15 src/egonomy/static/egonomy/css/style.css --- a/src/egonomy/static/egonomy/css/style.css Fri Jul 12 14:59:52 2013 +0200 +++ b/src/egonomy/static/egonomy/css/style.css Mon Jul 15 18:00:57 2013 +0200 @@ -302,14 +302,14 @@ .subcol-seventh { width: 110px; margin-left: 12px; } - .subcol-seventh:nth-child(even) { margin-left: 13px; } - .subcol-seventh:nth-child(7n+1) { margin-left: 0; clear: left; } +.subcol-seventh h3 { color:#000000; } +.subcol-seventh p { color:#777777; } .center-image { text-align: center; } diff -r 47979c0f1b97 -r 923b5823ef15 src/egonomy/templates/egonomy_annotate_picture.html --- a/src/egonomy/templates/egonomy_annotate_picture.html Fri Jul 12 14:59:52 2013 +0200 +++ b/src/egonomy/templates/egonomy_annotate_picture.html Mon Jul 15 18:00:57 2013 +0200 @@ -132,8 +132,20 @@ {% endif %}
-

Collections liées à cette image :

+

{% trans "Collections including this picture" %} :

+ {% if related_collections %} + + {% else %}

{% trans "No collection" %}

+ {% endif %}
{% endblock %} diff -r 47979c0f1b97 -r 923b5823ef15 src/egonomy/templates/egonomy_view_fragment.html --- a/src/egonomy/templates/egonomy_view_fragment.html Fri Jul 12 14:59:52 2013 +0200 +++ b/src/egonomy/templates/egonomy_view_fragment.html Mon Jul 15 18:00:57 2013 +0200 @@ -147,7 +147,7 @@ - +
{% trans "Fragment's keywords" %}{% trans "Fragment's keywords" %} :