You will find only what you bring in.
[redakcja.git] / src / catalogue / templates / catalogue / book_list / book.html
old mode 100755 (executable)
new mode 100644 (file)
index c47e2bc..189c932
@@ -3,11 +3,11 @@
 
 {% if book.single %}
     {% with chunk as chunk %}
-    <tr>
+    <tr class="table-sm">
         <td><input type="checkbox" name="select_book" value="{{book.id}}" data-chunk-id="{{chunk.id}}"/></td>
-        <td><a href="{% url 'catalogue_book' book.slug %}" title='{% trans "Book settings" %}'>[B]</a></td>
-        <td><a href="{% url 'catalogue_chunk_edit' book.slug chunk.slug %}" title='{% trans "Chunk settings" %}'>[c]</a></td>
-        <td><a target="_blank"
+       <td><a class="btn btn-sm btn-outline-secondary" href="{% url 'catalogue_book' book.slug %}" title="{% trans "Book settings" %}">&#x1f4d5;</a></td>
+       <td><a class="btn btn-sm btn-outline-secondary" href="{% url 'catalogue_chunk_edit' book.slug chunk.slug %}" title="{% trans "Chunk settings" %}">&#x1f4dc;</a></td>
+        <td><a class="btn btn-primary" target="_blank"
                     href="{% url 'wiki_editor' book.slug %}">
                     {{ book.title }}</a></td>
         <td>{% if chunk.stage %}
         {% endif %}</td>
         <td class='user-column'>{% if chunk.user %}<a href="{% url 'catalogue_user' chunk.user.username %}">{{ chunk.user|username }}</a>{% endif %}</td>
         <td>
-            {% if chunk.published %}P{% endif %}
-            {% if book.new_publishable %}p{% endif %}
-            {% if chunk.changed %}+{% endif %}
+          {% if book.published %}
+            <span class="badge badge-info" title="{% trans "published" %}">opubl.</span>
+         {% endif %}
+          {% if book.new_publishable %}
+            <span class="badge badge-primary" title="{% trans "publishable" %}">do publ.</span>
+         {% endif %}
+          {% if chunk.changed %}
+            <span class="badge badge-warning title="{% trans "changed" %}">zmiany</span>
+         {% endif %}
         </td>
         <td>{{ book.project.name }}</td>
     </tr>
     {% endwith %}
 {% else %}
-    <tr>
-        <td><input type="checkbox" name="select_book" value="{{book.id}}"/></td>
-        <td class='book-settings-link'><a href="{% url 'catalogue_book' book.slug %}" title='{% trans "Book settings" %}'>[B]</a></td>
-        <td></td>
-        <td>{{ book.title }}</td>
-        <td></td>
-        <td class='user-column'></td>
-        <td>
-            {% if book.published %}P{% endif %}
-            {% if book.new_publishable %}p{% endif %}
-        </td>
-        <td>{{ book.project.name }}</td>
+    <tr class="table-sm">
+      <td><input type="checkbox" name="select_book" value="{{book.id}}"/></td>
+      <td><a class='btn btn-sm btn-outline-secondary' href="{% url 'catalogue_book' book.slug %}" title="{% trans "Book settings" %}">&#x1f4d5;</a></td>
+      <td></td>
+      <td>{{ book.title }}</td>
+      <td></td>
+      <td class='user-column'></td>
+      <td>
+        {% if book.published %}
+          <span class="badge badge-info" title="{% trans "published" %}">opubl.</span>
+       {% endif %}
+        {% if book.new_publishable %}
+          <span class="badge badge-info" title="{% trans "publishable" %}">do publ.</span>
+       {% endif %}
+      </td>
+      <td>{{ book.project.name }}</td>
     </tr>
 {% endif %}