]> git.parisson.com Git - telemeta.git/commitdiff
add message when no sound access, lighter player colors
authoryomguy <yomguy@parisson.com>
Mon, 8 Apr 2013 14:54:31 +0000 (16:54 +0200)
committeryomguy <yomguy@parisson.com>
Mon, 8 Apr 2013 14:54:31 +0000 (16:54 +0200)
telemeta/static/telemeta/css/telemeta.css
telemeta/templates/telemeta/mediaitem_detail.html

index 9bb64b0718c43e292e59167223c2ab78fbc53372..3dcc941a9910ea7fcf2be27b63f57a1aa08fe389 100644 (file)
@@ -142,8 +142,8 @@ a img { border: none; }
     position: relative;
     z-index: 1;
     float: right;
-    border: 1px solid #999;
-    background-color: #eee;
+    border: 1px solid #e1e1e1;
+    background-color: #f9f9f9;
     -moz-border-radius: 8px 8px 8px 8px;
     -webkit-border-radius: 8px 8px 8px 8px;
     border-radius: 8px 8px 8px 8px;
@@ -190,7 +190,7 @@ a img { border: none; }
 .analyzer, .markers {
     background-color: #fff;
     color: #000;
-    border: 1px solid #adadad;
+    border: 1px solid #e1e1e1;
     width: 356px;
     padding: 2px;
     /* margin: 5px 0 0; */
@@ -988,9 +988,9 @@ a.image-link {
     background-color: #ffffff;
     color: #000000;
     font-weight: bold;
-    border-top: 1px solid #999999;
-    border-right: 1px solid #999999;
-    border-left: 1px solid #999999;
+    border-top: 1px solid #e1e1e1;
+    border-right: 1px solid #e1e1e1;
+    border-left: 1px solid #e1e1e1;
     border-bottom: 1px solid #ffffff;
 
 }
@@ -1282,3 +1282,7 @@ input,textarea{
 .related_media {
     border-top: 1px dotted #6a0307;
 }
+
+#no-sound-access {
+    background-color: #f9f9f9;
+}
\ No newline at end of file
index d465d238c01b28ea9db634ebb5d65f42db8404d5..7114a5434a2d17dfa4f335b0fb6c75f1a7cb68b2 100644 (file)
@@ -105,8 +105,8 @@ Item : <a href="{% url telemeta-item-detail item.public_id %}">{{ item }}</a>
 
 {% block content %}
 <div class="{% if item.file %}{% if access == 'full' or perms.telemeta.can_play_all_items %}with-rightcol{% endif %}{% endif %}">
-    {% if item.file %}
 
+    {% if item.file %}
 
     {% if access == 'full' or perms.telemeta.can_play_all_items %}
     <div id="player_maximized" class="ts-skin-lab">
@@ -178,6 +178,14 @@ Item : <a href="{% url telemeta-item-detail item.public_id %}">{{ item }}</a>
         {% endif %}
 
     </div>
+    {% else %}
+
+    <div id="rightcol">
+        <div id="no-sound-access">
+            {% trans "You don't have access to the sound of this item. Please contact the administrators to get more rights." %}
+        </div>
+    </div>
+
     {% endif %}
     {% endif %}