moved styles to a css file; more fixes to templates
authorBoris Bobrov <breton@cynicmansion.ru>
Mon, 11 Aug 2014 16:42:49 +0000 (20:42 +0400)
committerBoris Bobrov <breton@cynicmansion.ru>
Thu, 28 Jan 2016 21:04:42 +0000 (22:04 +0100)
mediagoblin/static/css/base.css
mediagoblin/templates/mediagoblin/moderation/media_panel.html
mediagoblin/templates/mediagoblin/user_pages/processing_panel.html

index f8726708f8fb82d0f2b0f078bf1beb69745e6db5..e84f51f3132e913a5a2ad9e01ba7263903a2470b 100644 (file)
@@ -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 */
 
index 888e4febb0bac5692e8f2f3f6bb149f4f8c4f1a4..94d4a1a0fde772d57177b3997b602df2f62ad87b 100644 (file)
     </tr>
     {% for media_entry in processing_entries %}
       <tr>
+        <td>
+          <div class="thumb-wrapper">
+            <img src="{{ media_entry.thumb_url }}" alt="{{ media_entry.title }}" />
+            <div class="thumb-overlay-status thumb-processing">Processing...</div>
+          </div>
+        </td>
         <td>{{ media_entry.id }}</td>
-        <td>{{ media_entry.get_actor.username }}</td>
+        <td>
+            <a href="{{ request.urlgen('mediagoblin.moderation.users_detail', user=media_entry.get_actor.username) }}">
+                {{ media_entry.get_actor.username }}
+            </a>
+        </td>
         <td>{{ media_entry.title }}</td>
         <td>{{ media_entry.created.strftime("%F %R") }}</td>
         {% if media_entry.transcoding_progress %}
index 9fc741f5c7c959987e29e7778a4455b6999daf19..d803e51c084507ca9b072b1d5b4f48c5d35bc921 100644 (file)
   {% trans %}You can track the state of media being processed for your gallery here.{% endtrans %}
 </p>
     
-<style>
-    .thumb-overlay-status {
-        position: absolute;
-        margin: auto;
-        top: 0; bottom: 0; left: 0; right: 0;
-        width: 180px;
-        height: 20px;
-        display: inline;
-        text-align: center;
-    }
-
-    .thumb-processing {
-        color: black;
-        font-weight: bold;
-        background-color: rgba(255, 255, 255, 0.8);
-    }
-
-    .thumb-failed {
-        color: red;
-        font-weight: bold;
-        background-color: rgba(127, 0, 0, 0.5);
-    }
-
-    .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;
-    }
-</style>
-
 {% if entries.count() %}
   <table class="media_panel processing">
     <tr>
-      <th>ID</th>
+      <th>Thumbnail</th>
       <th>Title</th>
       <th>When submitted</th>
       <th>Transcoding progress</th>