From: Boris Bobrov Date: Mon, 11 Aug 2014 16:42:49 +0000 (+0400) Subject: moved styles to a css file; more fixes to templates X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=4dd814a945e3cbb6c2e904844398223be9d86f49;p=mediagoblin.git moved styles to a css file; more fixes to templates --- diff --git a/mediagoblin/static/css/base.css b/mediagoblin/static/css/base.css index f8726708..e84f51f3 100644 --- a/mediagoblin/static/css/base.css +++ b/mediagoblin/static/css/base.css @@ -754,6 +754,42 @@ table.media_panel th { padding-bottom: 4px; text-align: left; } +.thumb-overlay-status { + position: absolute; + margin: auto; + top: 0; bottom: 0; left: 0; right: 0; + width: 180px; + height: 20px; + display: inline; + text-align: center; + background-color: rgba(255, 255, 255, 0.8); +} + +.thumb-processing { + color: black; + font-weight: bold; +} + +.thumb-failed { + color: red; + font-weight: bold; +} + +.thumb-wrapper { + position: relative; +/* for proportional thumb resizing */ + width: auto; + height: auto; + display: inline-block; +} + +.thumb-wrapper img { + max-height: 180px; + max-width: 180px; +} +.media_panel td { + vertical-align: middle; +} /* moderator panels */ diff --git a/mediagoblin/templates/mediagoblin/moderation/media_panel.html b/mediagoblin/templates/mediagoblin/moderation/media_panel.html index 888e4feb..94d4a1a0 100644 --- a/mediagoblin/templates/mediagoblin/moderation/media_panel.html +++ b/mediagoblin/templates/mediagoblin/moderation/media_panel.html @@ -43,8 +43,18 @@ {% for media_entry in processing_entries %} + +
+ {{ media_entry.title }} +
Processing...
+
+ {{ media_entry.id }} - {{ media_entry.get_actor.username }} + + + {{ media_entry.get_actor.username }} + + {{ media_entry.title }} {{ media_entry.created.strftime("%F %R") }} {% if media_entry.transcoding_progress %} diff --git a/mediagoblin/templates/mediagoblin/user_pages/processing_panel.html b/mediagoblin/templates/mediagoblin/user_pages/processing_panel.html index 9fc741f5..d803e51c 100644 --- a/mediagoblin/templates/mediagoblin/user_pages/processing_panel.html +++ b/mediagoblin/templates/mediagoblin/user_pages/processing_panel.html @@ -29,50 +29,10 @@ {% trans %}You can track the state of media being processed for your gallery here.{% endtrans %}

- - {% if entries.count() %} - +
IDThumbnail Title When submitted Transcoding progress