fix renkan table column width especially with very long titles
authorymh <ymh.work@gmail.com>
Fri, 03 Apr 2015 14:30:46 +0200
changeset 615 da84d4baba33
parent 614 40e125004a0b
child 616 c9d8a2686ed9
fix renkan table column width especially with very long titles
src/hdalab/locale/de/LC_MESSAGES/django.po
src/hdalab/locale/en/LC_MESSAGES/django.po
src/hdalab/locale/es/LC_MESSAGES/django.po
src/hdalab/locale/fr/LC_MESSAGES/django.po
src/hdalab/locale/it/LC_MESSAGES/django.po
src/hdalab/locale/ja/LC_MESSAGES/django.po
src/hdalab/locale/zh-tw/LC_MESSAGES/django.po
src/hdalab/static/hdalab/css/profile.css
src/hdalab/templates/profile_home.html
src/hdalab/templates/renkan_list.html
--- a/src/hdalab/locale/de/LC_MESSAGES/django.po	Fri Apr 03 02:22:15 2015 +0200
+++ b/src/hdalab/locale/de/LC_MESSAGES/django.po	Fri Apr 03 14:30:46 2015 +0200
@@ -7,7 +7,7 @@
 msgstr ""
 "Project-Id-Version: PACKAGE VERSION\n"
 "Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2015-04-02 17:42-0500\n"
+"POT-Creation-Date: 2015-04-03 06:24-0500\n"
 "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
 "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
 "Language-Team: LANGUAGE <LL@li.org>\n"
@@ -692,6 +692,11 @@
 msgid "Edition"
 msgstr ""
 
+#: templates/profile_home.html:94 templates/profile_home.html.py:102
+#: templates/renkan_list.html:74 templates/renkan_list.html.py:82
+msgid "View renkan"
+msgstr ""
+
 #: templates/profile_home.html:106 templates/renkan_list.html:86
 msgid "Are you sure you want to copy this renkan ?"
 msgstr ""
@@ -908,11 +913,11 @@
 "des arts."
 msgstr ""
 
-#: views/profile.py:445
+#: views/profile.py:443
 msgid "Plus de Ressources"
 msgstr ""
 
-#: views/profile.py:454 views/profile.py:533
+#: views/profile.py:452 views/profile.py:531
 msgid "Period"
 msgstr ""
 
--- a/src/hdalab/locale/en/LC_MESSAGES/django.po	Fri Apr 03 02:22:15 2015 +0200
+++ b/src/hdalab/locale/en/LC_MESSAGES/django.po	Fri Apr 03 14:30:46 2015 +0200
@@ -6,7 +6,7 @@
 msgstr ""
 "Project-Id-Version: PACKAGE VERSION\n"
 "Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2015-04-02 17:42-0500\n"
+"POT-Creation-Date: 2015-04-03 06:24-0500\n"
 "PO-Revision-Date: 2012-03-09 02:10+0200\n"
 "Last-Translator: Yves-Marie Haussonne <ymh.work@gmail.com>\n"
 "Language-Team: IRI\n"
@@ -748,6 +748,11 @@
 msgid "Edition"
 msgstr "Edition"
 
+#: templates/profile_home.html:94 templates/profile_home.html.py:102
+#: templates/renkan_list.html:74 templates/renkan_list.html.py:82
+msgid "View renkan"
+msgstr "View Renkan"
+
 #: templates/profile_home.html:106 templates/renkan_list.html:86
 msgid "Are you sure you want to copy this renkan ?"
 msgstr "Are you sure you want to copy this renkan ?"
@@ -969,19 +974,18 @@
 "            from \"Histoire des arts\" and Wikipedia resources.\n"
 "            "
 
-
 #: templates/renkan_list_favorite.html:6
 msgid ""
 "Consultez et personnalisez les Renkan des repères chronologiques d'Histoire "
 "des arts."
 msgstr ""
-"Consult and customize Renkans of chronological landmarks from \"Histoire "
-"des arts\"."
+"Consult and customize Renkans of chronological landmarks from \"Histoire des "
+"arts\"."
 
-#: views/profile.py:445
+#: views/profile.py:443
 msgid "Plus de Ressources"
 msgstr "More Resources"
 
-#: views/profile.py:454 views/profile.py:533
+#: views/profile.py:452 views/profile.py:531
 msgid "Period"
 msgstr "Period"
--- a/src/hdalab/locale/es/LC_MESSAGES/django.po	Fri Apr 03 02:22:15 2015 +0200
+++ b/src/hdalab/locale/es/LC_MESSAGES/django.po	Fri Apr 03 14:30:46 2015 +0200
@@ -7,7 +7,7 @@
 msgstr ""
 "Project-Id-Version: PACKAGE VERSION\n"
 "Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2015-04-02 17:42-0500\n"
+"POT-Creation-Date: 2015-04-03 06:24-0500\n"
 "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
 "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
 "Language-Team: LANGUAGE <LL@li.org>\n"
@@ -714,6 +714,13 @@
 msgid "Edition"
 msgstr "Edición"
 
+#: templates/profile_home.html:94 templates/profile_home.html.py:102
+#: templates/renkan_list.html:74 templates/renkan_list.html.py:82
+#, fuzzy
+#| msgid "reject renkan"
+msgid "View renkan"
+msgstr "rechazar un renkan"
+
 #: templates/profile_home.html:106 templates/renkan_list.html:86
 msgid "Are you sure you want to copy this renkan ?"
 msgstr "¿ Esta seguro que desea copiar este Renkan ?"
@@ -932,10 +939,10 @@
 "des arts."
 msgstr ""
 
-#: views/profile.py:445
+#: views/profile.py:443
 msgid "Plus de Ressources"
 msgstr "Mas recursos"
 
-#: views/profile.py:454 views/profile.py:533
+#: views/profile.py:452 views/profile.py:531
 msgid "Period"
 msgstr "Periodo"
--- a/src/hdalab/locale/fr/LC_MESSAGES/django.po	Fri Apr 03 02:22:15 2015 +0200
+++ b/src/hdalab/locale/fr/LC_MESSAGES/django.po	Fri Apr 03 14:30:46 2015 +0200
@@ -7,7 +7,7 @@
 msgstr ""
 "Project-Id-Version: PACKAGE VERSION\n"
 "Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2015-04-02 17:42-0500\n"
+"POT-Creation-Date: 2015-04-03 06:24-0500\n"
 "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
 "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
 "Language-Team: LANGUAGE <LL@li.org>\n"
@@ -758,6 +758,11 @@
 msgid "Edition"
 msgstr "Édition"
 
+#: templates/profile_home.html:94 templates/profile_home.html.py:102
+#: templates/renkan_list.html:74 templates/renkan_list.html.py:82
+msgid "View renkan"
+msgstr "Voir renkan"
+
 #: templates/profile_home.html:106 templates/renkan_list.html:86
 msgid "Are you sure you want to copy this renkan ?"
 msgstr "Êtes-vous certain(e) de vouloir copier ce Renkan ?"
@@ -982,7 +987,6 @@
 "            à partir des ressources Histoire des arts et Wikipedia.\n"
 "            "
 
-
 #: templates/renkan_list_favorite.html:6
 msgid ""
 "Consultez et personnalisez les Renkan des repères chronologiques d'Histoire "
@@ -991,10 +995,10 @@
 "Consultez et personnalisez les Renkan des repères chronologiques d'Histoire "
 "des arts."
 
-#: views/profile.py:445
+#: views/profile.py:443
 msgid "Plus de Ressources"
 msgstr "Plus de Ressources"
 
-#: views/profile.py:454 views/profile.py:533
+#: views/profile.py:452 views/profile.py:531
 msgid "Period"
 msgstr "Période"
--- a/src/hdalab/locale/it/LC_MESSAGES/django.po	Fri Apr 03 02:22:15 2015 +0200
+++ b/src/hdalab/locale/it/LC_MESSAGES/django.po	Fri Apr 03 14:30:46 2015 +0200
@@ -7,7 +7,7 @@
 msgstr ""
 "Project-Id-Version: PACKAGE VERSION\n"
 "Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2015-04-02 17:42-0500\n"
+"POT-Creation-Date: 2015-04-03 06:24-0500\n"
 "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
 "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
 "Language-Team: LANGUAGE <LL@li.org>\n"
@@ -698,6 +698,11 @@
 msgid "Edition"
 msgstr ""
 
+#: templates/profile_home.html:94 templates/profile_home.html.py:102
+#: templates/renkan_list.html:74 templates/renkan_list.html.py:82
+msgid "View renkan"
+msgstr ""
+
 #: templates/profile_home.html:106 templates/renkan_list.html:86
 msgid "Are you sure you want to copy this renkan ?"
 msgstr ""
@@ -914,11 +919,11 @@
 "des arts."
 msgstr ""
 
-#: views/profile.py:445
+#: views/profile.py:443
 msgid "Plus de Ressources"
 msgstr ""
 
-#: views/profile.py:454 views/profile.py:533
+#: views/profile.py:452 views/profile.py:531
 msgid "Period"
 msgstr ""
 
--- a/src/hdalab/locale/ja/LC_MESSAGES/django.po	Fri Apr 03 02:22:15 2015 +0200
+++ b/src/hdalab/locale/ja/LC_MESSAGES/django.po	Fri Apr 03 14:30:46 2015 +0200
@@ -7,7 +7,7 @@
 msgstr ""
 "Project-Id-Version: PACKAGE VERSION\n"
 "Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2015-04-02 17:42-0500\n"
+"POT-Creation-Date: 2015-04-03 06:24-0500\n"
 "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
 "Language-Team: LANGUAGE <LL@li.org>\n"
 "Language: \n"
@@ -699,6 +699,11 @@
 msgid "Edition"
 msgstr ""
 
+#: templates/profile_home.html:94 templates/profile_home.html.py:102
+#: templates/renkan_list.html:74 templates/renkan_list.html.py:82
+msgid "View renkan"
+msgstr ""
+
 #: templates/profile_home.html:106 templates/renkan_list.html:86
 msgid "Are you sure you want to copy this renkan ?"
 msgstr ""
@@ -915,11 +920,11 @@
 "des arts."
 msgstr ""
 
-#: views/profile.py:445
+#: views/profile.py:443
 msgid "Plus de Ressources"
 msgstr ""
 
-#: views/profile.py:454 views/profile.py:533
+#: views/profile.py:452 views/profile.py:531
 msgid "Period"
 msgstr ""
 
--- a/src/hdalab/locale/zh-tw/LC_MESSAGES/django.po	Fri Apr 03 02:22:15 2015 +0200
+++ b/src/hdalab/locale/zh-tw/LC_MESSAGES/django.po	Fri Apr 03 14:30:46 2015 +0200
@@ -8,7 +8,7 @@
 msgstr ""
 "Project-Id-Version: PACKAGE VERSION\n"
 "Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2015-04-02 17:42-0500\n"
+"POT-Creation-Date: 2015-04-03 06:24-0500\n"
 "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
 "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
 "Language-Team: LANGUAGE <LL@li.org>\n"
@@ -699,6 +699,11 @@
 msgid "Edition"
 msgstr ""
 
+#: templates/profile_home.html:94 templates/profile_home.html.py:102
+#: templates/renkan_list.html:74 templates/renkan_list.html.py:82
+msgid "View renkan"
+msgstr ""
+
 #: templates/profile_home.html:106 templates/renkan_list.html:86
 msgid "Are you sure you want to copy this renkan ?"
 msgstr ""
@@ -915,11 +920,11 @@
 "des arts."
 msgstr ""
 
-#: views/profile.py:445
+#: views/profile.py:443
 msgid "Plus de Ressources"
 msgstr ""
 
-#: views/profile.py:454 views/profile.py:533
+#: views/profile.py:452 views/profile.py:531
 msgid "Period"
 msgstr ""
 
--- a/src/hdalab/static/hdalab/css/profile.css	Fri Apr 03 02:22:15 2015 +0200
+++ b/src/hdalab/static/hdalab/css/profile.css	Fri Apr 03 14:30:46 2015 +0200
@@ -13,7 +13,19 @@
 }
 
 tr {
+  text-align: center;
+}
+
+td:FIRST-CHILD, th:FIRST-CHILD {
   text-align: left;
+  width: 440px;
+  max-width: 440px;
+}
+
+.renkan-list-title-div {
+  word-wrap: break-word;         /* All browsers since IE 5.5+ */
+  overflow-wrap: break-word;     /* Renamed property in CSS3 draft spec */
+  width: 100%;
 }
 
 tr.border_bottom th, tr.border_bottom td {
@@ -21,10 +33,6 @@
   padding: 5px;
 }
 
-th a {
-  float: left;
-}
-
 .renkan_list_actions {
   white-space: nowrap;
   width: 90px;
@@ -34,6 +42,10 @@
   display: inline;
 }
 
+.ui-icon {
+  display: inline-block;
+}
+
 button.renkan-inline-action {
   margin: 0;
   padding: 0;
--- a/src/hdalab/templates/profile_home.html	Fri Apr 03 02:22:15 2015 +0200
+++ b/src/hdalab/templates/profile_home.html	Fri Apr 03 14:30:46 2015 +0200
@@ -91,7 +91,7 @@
           {% for hr in page.object_list %}
            {% with hr.renkan as r %}
             <tr class="border_bottom">
-                <td><a title="View renkan" href="{% url 'renkan_view' %}?rk_id={{ r.rk_id }}">{{ r.title }}</a></td>
+                <td><div class="renkan-list-title-div"><a title="{% trans 'View renkan' %}" href="{% url 'renkan_view' %}?rk_id={{ r.rk_id }}">{{ r.title }}</a></div></td>
                 <td>{% if hr.favorite %}<span class="publish-renkan">&nbsp;</span>{% else %}&nbsp;{% endif %}</td>
                 <td>{{ r.modification_date|date:"Y-m-d H:i" }}</td>
                 <td>{% thumbnail r.image 100x100 as thumb %}<img src="{{ thumb.url }}" width="{{ thumb.width }}" height="{{ thumb.height }}" /></td>
@@ -99,7 +99,7 @@
                 <td class="renkan_list_actions">
                     {% if hr.state == 1 %}<a title="Edit renkan" href="{% url 'renkan_edit' %}?rk_id={{ r.rk_id }}" class="renkan-basic-action"><span class="ui-icon ui-icon-pencil"></span></a>
                     {% else %}<span class="ui-icon ui-icon-blank renkan-basic-action"></span>{% endif %}
-                    <a title="View renkan" href="{% url 'renkan_view' %}?rk_id={{ r.rk_id }}" class="renkan-basic-action"><span class="ui-icon ui-icon-eye"></span></a>
+                    <a title="{% trans 'View renkan' %}" href="{% url 'renkan_view' %}?rk_id={{ r.rk_id }}" class="renkan-basic-action"><span class="ui-icon ui-icon-eye"></span></a>
                     <form action="{% url 'renkan_copy' rk_id=r.rk_id %}" method="post">
                         {% csrf_token %}
                         <input type="hidden" name="next" value="{% url 'profile_home' %}" />
--- a/src/hdalab/templates/renkan_list.html	Fri Apr 03 02:22:15 2015 +0200
+++ b/src/hdalab/templates/renkan_list.html	Fri Apr 03 14:30:46 2015 +0200
@@ -71,7 +71,7 @@
       {% for hr in page.object_list %}
        {% with hr.renkan as r %}
         <tr class="border_bottom">
-            <td><a title="View renkan" href="{% url 'renkan_view' %}?rk_id={{ r.rk_id }}">{{ r.title }}</a></td>
+            <td><div class="renkan-list-title-div"><a title="{% trans 'View renkan' %}" href="{% url 'renkan_view' %}?rk_id={{ r.rk_id }}">{{ r.title }}</a></div></td>
             {% if not hide_favorite %}
             <td>{% if hr.favorite %}<span class="publish-renkan">&nbsp;</span>{% else %}&nbsp;{% endif %}</td>
             {% endif %}
@@ -79,7 +79,7 @@
             <td>{{ r.modification_date|date:"Y-m-d H:i" }}</td>
             <td>{% thumbnail r.image 100x100 as thumb %}<img src="{{ thumb.url }}" width="{{ thumb.width }}" height="{{ thumb.height }}" /></td>
             <td class="renkan_list_actions">
-                <a title="View renkan" href="{% url 'renkan_view' %}?rk_id={{ r.rk_id }}" class="renkan-basic-action"><span class="ui-icon ui-icon-eye"></span></a>
+                <a title="{% trans 'View renkan' %}" href="{% url 'renkan_view' %}?rk_id={{ r.rk_id }}" class="renkan-basic-action"><span class="ui-icon ui-icon-eye"></span></a>
                 <form action="{% url 'renkan_copy' rk_id=r.rk_id %}" method="post">
                     {% csrf_token %}
                     <input type="hidden" name="next" value="{% url 'profile_home' %}" />