summaryrefslogtreecommitdiffstats
path: root/templates/show_artist.inc.php
diff options
context:
space:
mode:
authorPaul 'flowerysong' Arthur <flowerysong00@yahoo.com>2010-06-07 05:49:06 +0000
committerPaul 'flowerysong' Arthur <flowerysong00@yahoo.com>2010-06-07 05:49:06 +0000
commit3de4f6f3e182c153f973510dbc4c824761af02ad (patch)
tree0fec35d1e6e0486e8c40a586c4417a8adea90d76 /templates/show_artist.inc.php
parent27477ceae858c55e373d1eb65b4f3b7d1b3a0ed8 (diff)
downloadampache-3de4f6f3e182c153f973510dbc4c824761af02ad.tar.gz
ampache-3de4f6f3e182c153f973510dbc4c824761af02ad.tar.bz2
ampache-3de4f6f3e182c153f973510dbc4c824761af02ad.zip
Change artist template to use just the artist name in the header; fixes FS#108.
Also make the actions shown a bit dynamic.
Diffstat (limited to 'templates/show_artist.inc.php')
-rw-r--r--templates/show_artist.inc.php17
1 files changed, 10 insertions, 7 deletions
diff --git a/templates/show_artist.inc.php b/templates/show_artist.inc.php
index 7f729e2a..5c5e51b6 100644
--- a/templates/show_artist.inc.php
+++ b/templates/show_artist.inc.php
@@ -20,12 +20,9 @@
*/
$web_path = Config::get('web_path');
-/* HINT: Artist Fullname */
-$title = sprintf(_('Albums by %s'), $artist->full_name);
?>
<?php
-/* HINT: Object type, Artist Fullname */
-show_box_top(sprintf(gettext('%s by %s'), ucfirst($object_type) ,$artist->f_name),'info-box');
+show_box_top($artist->f_name, 'info-box');
if (Config::get('ratings')) {
?>
<div id="rating_<?php echo intval($artist->id); ?>_artist" style="display:inline;">
@@ -35,9 +32,15 @@ if (Config::get('ratings')) {
<div id="information_actions">
<ul>
<li>
- <?php /* HINT: Artist Fullname */ ?>
- <a href="<?php echo $web_path; ?>/artists.php?action=show_all_songs&amp;artist=<?php echo $artist->id; ?>"><?php echo get_user_icon('view', _("Show All Songs By %s")); ?></a>
- <a href="<?php echo $web_path; ?>/artists.php?action=show_all_songs&amp;artist=<?php echo $artist->id; ?>"><?php printf(_("Show All Songs By %s"), $artist->f_name); ?></a>
+ <?php if ($object_type == 'album') { ?>
+ <a href="<?php echo $web_path; ?>/artists.php?action=show_all_songs&amp;artist=<?php echo $artist->id; ?>">
+ <?php echo get_user_icon('view', _("Show All Songs By %s")); ?>
+ <?php printf(_("Show All Songs By %s"), $artist->f_name); ?></a>
+ <?php } else { ?>
+ <a href="<?php echo $web_path; ?>/artists.php?action=show&amp;artist=<?php echo $artist->id; ?>">
+ <?php echo get_user_icon('view', _("Show Albums By %s")); ?>
+ <?php printf(_("Show Albums By %s"), $artist->f_name); ?></a>
+ <?php } ?>
</li>
<li>
<?php /* HINT: Artist Fullname */ ?>