From 95245d8c76a7e7f92b053e9f94599638e09f728c Mon Sep 17 00:00:00 2001 From: Hinrikus Wolf <hinrikus.wolf@rwth-aachen.de> Date: Sun, 8 Nov 2015 18:26:39 +0100 Subject: [PATCH] do some facelifting --- templates/admin_topic_show.html | 28 +++++++++++++++++++++++++--- templates/speech_content_index.html | 11 +++++++++-- 2 files changed, 34 insertions(+), 5 deletions(-) diff --git a/templates/admin_topic_show.html b/templates/admin_topic_show.html index 3b50b2b..5215b71 100644 --- a/templates/admin_topic_show.html +++ b/templates/admin_topic_show.html @@ -35,9 +35,30 @@ {% for statement in topic.sorted_statements() %} {% if statement.is_meta %} <tr class="mdl-color--red mdl-color-text--white"> + <td class="mdl-data-table__cell--non-numeric">{{ statement.speaker.identifier() }}</td> + <td class="mdl-data-table__cell">{{ statement.speaker.count(statement.topic) }}</td> + <td class="mdl-data-table__cell--non-numeric"> + <a href="{{ url_for(".statement_done", id=statement.id, topic_id=topic.id) }}"> + <i class="material-icons" style="color:white;">done</i> + </a> + </td> + <td class="mdl-data-table__cell--non-numeric"> + <a href="{{ url_for(".speaker_edit", id=statement.speaker.id, topic_id=topic.id) }}"> + <i class="material-icons" style="color:white;">edit</i> + </a> + </td> + + <td class="mdl-data-table__cell--non-numeric"> + <a href="{{ url_for('.statement_delete', id=statement.id, topic_id=topic.id) }}"> + <i class="material-icons" style="color:white;">cancel</i> + </a> + </td> + </tr> + + {% else %} <tr> - {% endif %} + <td class="mdl-data-table__cell--non-numeric">{{ statement.speaker.identifier() }}</td> <td class="mdl-data-table__cell">{{ statement.speaker.count(statement.topic) }}</td> <td class="mdl-data-table__cell--non-numeric"> @@ -56,8 +77,9 @@ <i class="material-icons">cancel</i> </a> </td> - </tr> - {% endfor %} + </tr > + {% endif %} + {% endfor %} </tbody> </table> </div> diff --git a/templates/speech_content_index.html b/templates/speech_content_index.html index 72d8e25..eb077fb 100644 --- a/templates/speech_content_index.html +++ b/templates/speech_content_index.html @@ -25,12 +25,19 @@ </tr> {% for statement in event.get_current_topic().sorted_statements() %} {% if statement.is_meta %} - <tr class="rede-table-bg-red"> + <tr class="mdl-color--red mdl-color-text--white"> {% else %} <tr> {% endif %} <td class="mdl-data-table__cell--non-numeric">{{ statement.speaker.identifier() }}</td> - <td class="mdl-data-table__cell">{{ statement.speaker.count(event.get_current_topic()) }}</td> + <td class="mdl-data-table__cell"> + {% if statement.is_meta %} + META + {% else %} + {{ statement.speaker.count(event.get_current_topic()) }} + {% endif %} + + </td> </tr> {% endfor %} {% else %} -- GitLab