librefm-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Librefm-commits] [1665] move purchase box, hide box on libre music?


From: Matt Lee
Subject: [Librefm-commits] [1665] move purchase box, hide box on libre music?
Date: Sat, 16 May 2009 18:39:02 +0000

Revision: 1665
          http://svn.sv.gnu.org/viewvc/?view=rev&root=librefm&revision=1665
Author:   mattl
Date:     2009-05-16 18:39:02 +0000 (Sat, 16 May 2009)
Log Message:
-----------
move purchase box, hide box on libre music?

Modified Paths:
--------------
    trunk/nixtape/themes/librefm/alpha.css
    trunk/nixtape/themes/librefm/templates/album.tpl
    trunk/nixtape/themes/librefm/templates/track.tpl

Modified: trunk/nixtape/themes/librefm/alpha.css
===================================================================
--- trunk/nixtape/themes/librefm/alpha.css      2009-05-16 18:36:25 UTC (rev 
1664)
+++ trunk/nixtape/themes/librefm/alpha.css      2009-05-16 18:39:02 UTC (rev 
1665)
@@ -460,8 +460,8 @@
 
 #register-prompt {background-color: #eee; padding: 12px; border: 5px solid 
#aaa;}
 
-#purchase-download{background-color: #ececec; -moz-border-radius: 1em; float: 
right;}
+#purchase-download{background-color: #ececec; -moz-border-radius: 1em; 
padding: 15px; float: right;}
 
 .photo{padding: 1px; border 1px solid #ccc; float: left;}
 
-hr {clear: both;}
\ No newline at end of file
+hr {clear: both; display: none;}
\ No newline at end of file

Modified: trunk/nixtape/themes/librefm/templates/album.tpl
===================================================================
--- trunk/nixtape/themes/librefm/templates/album.tpl    2009-05-16 18:36:25 UTC 
(rev 1664)
+++ trunk/nixtape/themes/librefm/templates/album.tpl    2009-05-16 18:39:02 UTC 
(rev 1665)
@@ -16,8 +16,6 @@
                        alt="{$album->name|escape:'html':'UTF-8'}" 
title="{$album->name|escape:'html':'UTF-8'}" width="160" />
        </div>
 
-       <hr />
-
        <div id="purchase-download">
 
        <h2>Purchase this album</h2>
@@ -29,6 +27,8 @@
 
         </div>
 
+       <hr />
+
 {include file='player.tpl'}
 
 <script type="text/javascript">

Modified: trunk/nixtape/themes/librefm/templates/track.tpl
===================================================================
--- trunk/nixtape/themes/librefm/templates/track.tpl    2009-05-16 18:36:25 UTC 
(rev 1664)
+++ trunk/nixtape/themes/librefm/templates/track.tpl    2009-05-16 18:39:02 UTC 
(rev 1665)
@@ -4,6 +4,8 @@
 
        <h2 property="dc:title" class="fn" rel="foaf:page" 
rev="foaf:primaryTopic" resource="">{$track->name|escape:'html':'UTF-8'}</h2>
 
+       {if !$track->licenseurl && !$track->license}
+
        <div id="purchase-download">
 
        <h2>Purchase this album</h2>
@@ -15,7 +17,10 @@
 
         </div>
 
+       {/if}
 
+       <hr />
+
        {include file='player.tpl'}
        <script type="text/javascript">
                var playlist = [{ldelim}"artist" : "{$track->artist_name}", 
"album" : "{$track->album_name}", "track" : "{$track->name}", "url" : 
"{$track->streamurl}"{rdelim}];





reply via email to

[Prev in Thread] Current Thread [Next in Thread]