Commit f84c7ece authored by Jonathan Matthew's avatar Jonathan Matthew 🥗
Browse files

context: remove read more/read less

As far as I can tell the only difference between the full bio
and the summary is that the full bio contains a licensing statement.
parent 3cf8ac5d
......@@ -15,12 +15,6 @@
<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:
......@@ -28,21 +22,8 @@
<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>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment