]> git.0d.be Git - earwig.git/commitdiff
manager: include summaries in sound moderation table
authorFrédéric Péters <fpeters@0d.be>
Sun, 2 Sep 2018 07:57:50 +0000 (09:57 +0200)
committerFrédéric Péters <fpeters@0d.be>
Sun, 2 Sep 2018 10:12:23 +0000 (12:12 +0200)
earwig/manager/static/css/manager.scss
earwig/manager/templates/earwig/manager_home.html

index 5e499f02191f38030e14c1dd127c02dcec6c2c89..56e8d322eda4c40bfbbe65ad051d5f23f0c444a9 100644 (file)
@@ -3,3 +3,20 @@
        padding-left: 1ex;
        content: "\f08e";  // external-link
 }
+
+table.sounds {
+       td {
+               vertical-align: top;
+       }
+       tr :nth-child(1),
+       tr :nth-child(2) {
+               text-align: left;
+       }
+       span.title {
+               font-weight: bold;
+       }
+       span.description {
+               display: block;
+               max-width: 80ex;
+       }
+}
index f30bed00799269bce30ae67969a9ccdd7a1084c8..72ae488fc346ad5cb9114d836f1593943c19ba2d 100644 (file)
   </p>
 </form>
 
-<table class="main">
+<table class="main sounds">
 <thead>
   <tr>
     <th>{% trans "Channel" %}</th>
-    <th>{% trans "Title" %}</th>
+    <th>{% trans "Title / Description" %}</th>
     <th>{% trans "Date" %}</th>
     <th>{% trans "Actions" %}</th>
   </tr>
@@ -36,7 +36,9 @@
  {% for sound in object_list %}
  <tr>
    <td><a class="external-link" href="{{ sound.channel.channel_url }}">{{ sound.channel.title }}</a></td>
-   <td>{{ sound.title }}</td>
+   <td><span class="title">{{ sound.title }}</span>
+       {% if sound.description %}<span class="description">{{ sound.description|striptags|truncatewords:40|safe }}</span>{% endif %}
+   </td>
    <td>{{ sound.creation_timestamp }}</td>
    <td><a href="{% url 'earwig-sound-publish' pk=sound.pk %}">{% trans "Publish" %}</a> /
        <a href="{% url 'earwig-sound-reject' pk=sound.pk %}">{% trans "Reject" %}</a></td>