# HG changeset patch # User Bob Farrell # Date 1311973949 -3600 # Branch new-release-july-2011 # Node ID 8b5ce16f075f7d519c437a72659acd02df8a9a1d # Parent a588c969826be1d228ce8c6eebe292ae45388309 # Parent 89831cf2ab231963d00775ce6a33e5faa2797fa8 merge diff -r a588c969826be1d228ce8c6eebe292ae45388309 -r 8b5ce16f075f7d519c437a72659acd02df8a9a1d soundbush/public/css/base.css --- a/soundbush/public/css/base.css Fri Jul 29 20:37:58 2011 +0100 +++ b/soundbush/public/css/base.css Fri Jul 29 22:12:29 2011 +0100 @@ -120,7 +120,6 @@ } input.submit { - width: 5em; background: #000; } @@ -475,3 +474,12 @@ margin: 0 7px; background-image: url(../img/delete.png); } + +#artist-description { + height: 100px; + overflow: hidden; +} + +#contact-artist { + margin-left: 10px; +} diff -r a588c969826be1d228ce8c6eebe292ae45388309 -r 8b5ce16f075f7d519c437a72659acd02df8a9a1d soundbush/public/js/main.js --- a/soundbush/public/js/main.js Fri Jul 29 20:37:58 2011 +0100 +++ b/soundbush/public/js/main.js Fri Jul 29 22:12:29 2011 +0100 @@ -301,6 +301,28 @@ }); }); + + $("#contact-artist").button({icons: {primary: "ui-icon-mail-closed"}}); + + $("#read-more").toggle( + function () { + $("#artist-description").css("height", "auto"); + $(this).text("Show less"); + }, + function () { + $("#artist-description").css("height", "100px"); + $(this).text("Show more"); + }); + + $("#contact-submit").button(); + $("#contact-artist").click(function () { + $("#contact-dialog").dialog({ + resizable: false, + width: 500, + title: "Contact Artist", + modal: true + }); + }); }; $(document).ready(function () { diff -r a588c969826be1d228ce8c6eebe292ae45388309 -r 8b5ce16f075f7d519c437a72659acd02df8a9a1d soundbush/templates/artist.mako --- a/soundbush/templates/artist.mako Fri Jul 29 20:37:58 2011 +0100 +++ b/soundbush/templates/artist.mako Fri Jul 29 22:12:29 2011 +0100 @@ -38,23 +38,7 @@ <%def name="renderCol1()"> -
- - - - - -
-

${c.htmlify(c.artist.displayname)} -

- -

${c.htmlify(c.artist.description)}

- - Read More - -
-

Contact this artist directly

+ + +
+ + + + + +
+ +

${c.htmlify(c.artist.displayname)} +

+ +
+ + +
+

${c.htmlify(c.artist.description)}

+ + Show More + %for i, track in enumerate(c.tracks): <%owner = c.user and c.user.id == track.author.id%>