updated uri to allow optional trailing slash on single resource URIs (django automatic redirects don't carry over the Authorization header that can sometimes be needed, for instance with OAuth)
<li data-color="<%=c%>" style="background: <%=c%>"></li>