From f20301fa48990d25d5ee411e0f0d2c27d69af037 Mon Sep 17 00:00:00 2001 From: yomguy Date: Mon, 8 Apr 2013 16:54:31 +0200 Subject: [PATCH] add message when no sound access, lighter player colors --- telemeta/static/telemeta/css/telemeta.css | 16 ++++++++++------ .../templates/telemeta/mediaitem_detail.html | 10 +++++++++- 2 files changed, 19 insertions(+), 7 deletions(-) diff --git a/telemeta/static/telemeta/css/telemeta.css b/telemeta/static/telemeta/css/telemeta.css index 9bb64b07..3dcc941a 100644 --- a/telemeta/static/telemeta/css/telemeta.css +++ b/telemeta/static/telemeta/css/telemeta.css @@ -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 diff --git a/telemeta/templates/telemeta/mediaitem_detail.html b/telemeta/templates/telemeta/mediaitem_detail.html index d465d238..7114a543 100644 --- a/telemeta/templates/telemeta/mediaitem_detail.html +++ b/telemeta/templates/telemeta/mediaitem_detail.html @@ -105,8 +105,8 @@ Item : {{ item }} {% block content %}
- {% if item.file %} + {% if item.file %} {% if access == 'full' or perms.telemeta.can_play_all_items %}
@@ -178,6 +178,14 @@ Item : {{ item }} {% endif %}
+ {% else %} + +
+
+ {% trans "You don't have access to the sound of this item. Please contact the administrators to get more rights." %} +
+
+ {% endif %} {% endif %} -- 2.39.5