diff --git a/src/newsreader/news/collection/templates/news/collection/views/rules.html b/src/newsreader/news/collection/templates/news/collection/views/rules.html index 145e154..0cd1870 100644 --- a/src/newsreader/news/collection/templates/news/collection/views/rules.html +++ b/src/newsreader/news/collection/templates/news/collection/views/rules.html @@ -21,7 +21,7 @@
- +
- {% for rule in rules %} - + - - - + + + - {% endfor %} diff --git a/src/newsreader/scss/components/table/_rules-table.scss b/src/newsreader/scss/components/table/_rules-table.scss index 3eaf3b3..3be0430 100644 --- a/src/newsreader/scss/components/table/_rules-table.scss +++ b/src/newsreader/scss/components/table/_rules-table.scss @@ -5,7 +5,7 @@ } &--name { - width: 20%; + width: 25%; } &--category { @@ -23,16 +23,5 @@ &--enabled { width: 10%; } - - &--link { - width: 5%; - } - } - - & .link { - display: flex; - justify-content: center; - - padding: 10px; } } diff --git a/src/newsreader/scss/components/table/_table.scss b/src/newsreader/scss/components/table/_table.scss index 01f81a0..5595048 100644 --- a/src/newsreader/scss/components/table/_table.scss +++ b/src/newsreader/scss/components/table/_table.scss @@ -2,6 +2,7 @@ .table { table-layout: fixed; + background-color: $white; width: 90%; padding: 20px; @@ -13,11 +14,15 @@ @extend .h1; } + &__row { + &--error { + background-color: lighten($error-red, 25%); + } + } + &__item { padding: 10px 0; - border-bottom: 1px solid $border-gray; - white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
@@ -32,20 +32,27 @@ {% trans "URL" %} {% trans "Successfuly ran" %} {% trans "Enabled" %}
{% with rule|id_for_label:"rules" as id_for_label %} {% include "components/form/checkbox.html" with name="rules" value=rule.pk id=id_for_label id_for_label=id_for_label %} {% endwith %} {{ rule.name }}{{ rule.category.name }}{{ rule.url }} + {{ rule.name }} + + {% if rule.category %} + {{ rule.category.name }} + {% endif %} + + {{ rule.url }} + {% if rule.succeeded %} @@ -60,9 +67,6 @@ {% endif %} - -