/usr/share/rhythmbox/plugins/context/tmpl/artist-tmpl.html is in rhythmbox-plugins 2.96-0ubuntu4.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 | <%page args="artist, image, shortbio, fullbio, stylesheet, datasource" />
<%!
import re
import cgi
remove_links = re.compile ('</?a[^>]*> ',re.VERBOSE)
def cleanup(text):
if text is None:
return _("No information available")
text = remove_links.sub ('', text)
text = text.replace('\n', '</p><p>')
return text
%>
<html>
<head>
<meta http-equiv="content-type" content="text-html; charset=utf-8">
<link rel="stylesheet" href="${stylesheet}" type="text/css" />
<script language="javascript">
function swapClass (element, klass1, klass2) {
elt = document.getElementById(element);
elt.className = (elt.className == klass1) ? klass2 : klass1;
}
</script>
</head>
<body class="artist">
%if error is None:
<h1>${artist | h}</h1>
<img src="${image | h}" />
<div id="shortbio" class="shown">
<% shortbio = cleanup(shortbio) %>
<button name="more" onclick="swapClass('shortbio', 'shown', 'hidden');swapClass('fullbio', 'shown', 'hidden')" />
${ _("Read more") }
</button>
<p>${shortbio}</p>
</div>
<div id="fullbio" class="hidden">
<% fullbio = cleanup(fullbio) %>
<button name="more" onclick="swapClass('shortbio', 'shown', 'hidden');swapClass('fullbio', 'shown', 'hidden')" />
${ _("Read less") }
</button>
<p>${fullbio}</p>
<button name="more" onclick="swapClass('shortbio', 'shown', 'hidden');swapClass('fullbio', 'shown', 'hidden')" />
${ _("Read less") }
</button>
</div>
<p>${datasource}</p>
%else:
<h1>${ _("Unable to retrieve artist information:") }</h1>
<p class="error">${error | h}</p>
%endif
</body>
</html>
|