[mb-commits] r9925 - in mb_server/branches/TemplateToolkit/root: components static
root at musicbrainz.org
root at musicbrainz.org
Mon Jun 30 23:54:01 UTC 2008
Author: muz
Date: 2008-06-30 23:54:01 +0000 (Mon, 30 Jun 2008)
New Revision: 9925
Modified:
mb_server/branches/TemplateToolkit/root/components/entity-link.tt
mb_server/branches/TemplateToolkit/root/static/main.css
Log:
entity icons
Modified: mb_server/branches/TemplateToolkit/root/components/entity-link.tt
===================================================================
--- mb_server/branches/TemplateToolkit/root/components/entity-link.tt 2008-06-30 23:15:18 UTC (rev 9924)
+++ mb_server/branches/TemplateToolkit/root/components/entity-link.tt 2008-06-30 23:54:01 UTC (rev 9925)
@@ -2,5 +2,9 @@
<a href="[% entity.url | url %]">[% entity.url | html %]</a>
[ <a href="[% c.uri_for('/uri', entity.mbid) %]">info</a> ]
[% ELSE %]
- <a href="[% c.uri_for(entity.type, entity.mbid) %]">[% entity.name | html %]</a>
+ <a href="[% c.uri_for(entity.type, entity.mbid) %]">
+ <span class="[% entity.type %]_icon">
+ [% entity.name | html %]
+ </span>
+ </a>
[% END %]
Modified: mb_server/branches/TemplateToolkit/root/static/main.css
===================================================================
--- mb_server/branches/TemplateToolkit/root/static/main.css 2008-06-30 23:15:18 UTC (rev 9924)
+++ mb_server/branches/TemplateToolkit/root/static/main.css 2008-06-30 23:54:01 UTC (rev 9925)
@@ -241,3 +241,20 @@
border: 1px solid;
margin-bottom: .5em;
}
+
+span.artist_icon,
+span.release_icon,
+span.label_icon,
+span.track_icon {
+ padding-left: 16px;
+ background-position: 0px 65%;
+ background-repeat: no-repeat;
+}
+
+span.artist_icon { background-image: url("/static/images/entity/artist_small.gif"); }
+
+span.release_icon { background-image: url("/static/images/entity/release_small.gif"); }
+
+span.label_icon { background-image: url("/static/images/entity/album_small.gif"); }
+
+span.track_icon { background-image: url("/static/images/entity/track_small.gif"); }
More information about the MusicBrainz-commits
mailing list