diff --git a/app/common/errors.py b/app/common/errors.py new file mode 100644 index 0000000..10fe8c1 --- /dev/null +++ b/app/common/errors.py @@ -0,0 +1,6 @@ +class NoMediaException(Exception): + ''' + Raised when a source returns no media to be indexed. Could be an invalid + playlist name or similar, or the upstream source returned an error. + ''' + pass diff --git a/app/common/static/styles/_colours.scss b/app/common/static/styles/_colours.scss index 6e241e5..305a639 100644 --- a/app/common/static/styles/_colours.scss +++ b/app/common/static/styles/_colours.scss @@ -2,9 +2,9 @@ $colour-white: #ffffff; $colour-black: #000000; $colour-near-black: #011627; $colour-near-white: #fdfffc; -$colour-light-blue: #2e8ac4; +$colour-light-blue: #1e5c83; $colour-red: #e71d36; -$colour-orange: #ef9912; +$colour-orange: #ff9c00; $background-colour: $colour-near-white; $text-colour: $colour-near-black; @@ -37,7 +37,7 @@ $form-help-text-colour: $colour-light-blue; $form-delete-button-background-colour: $colour-red; $collection-no-items-text-colour: $colour-near-black; -$collection-text-colour: $colour-near-black; +$collection-text-colour: $colour-light-blue; $collection-background-hover-colour: $colour-orange; $collection-text-hover-colour: $colour-near-white; @@ -52,6 +52,9 @@ $box-error-text-colour: $colour-near-white; $infobox-background-colour: $colour-near-black; $infobox-text-colour: $colour-near-white; +$errorbox-background-colour: $colour-red; +$errorbox-text-colour: $colour-near-white; + $pagination-background-colour: $colour-near-white; $pagination-text-colour: $colour-near-black; $pagination-border-colour: $colour-light-blue; @@ -61,3 +64,5 @@ $pagination-border-hover-colour: $colour-light-blue; $pagination-current-background-colour: $colour-orange; $pagination-current-text-colour: $colour-near-white; $pagination-current-border-colour: $colour-orange; + +$error-text-colour: $colour-red; diff --git a/app/common/static/styles/_template.scss b/app/common/static/styles/_template.scss index f998137..4c86f31 100644 --- a/app/common/static/styles/_template.scss +++ b/app/common/static/styles/_template.scss @@ -75,6 +75,12 @@ main { font-size: 2rem; } + h2 { + margin: 0; + padding: 2rem 0 0.5rem 0; + font-size: 1.5rem; + } + .btn { width: 100%; background-color: $main-button-background-colour; @@ -90,6 +96,7 @@ main { .collection { margin: 0.5rem 0 0 0 !important; .collection-item { + transition: initial !important; display: block; } a.collection-item { @@ -167,6 +174,15 @@ main { color: $infobox-text-colour; } + .errorbox { + background-color: $errorbox-background-colour; + color: $errorbox-text-colour; + } + + .error-text { + color: $error-text-colour !important; + } + } footer { diff --git a/app/common/templates/base.html b/app/common/templates/base.html index d02de57..649d535 100644 --- a/app/common/templates/base.html +++ b/app/common/templates/base.html @@ -31,7 +31,7 @@
+ {{ source.name }} |
{{ media|length }} | +
@@ -98,4 +110,20 @@ {{ source.key }}Delete source +{% if errors %} + |