Files
galaxy/templates/sorting_base.mako
T
Airistotal 45fb7f8994 Moved styles to reports.less
Added import to base.less to include reports.less
2015-07-30 09:18:19 -05:00

28 lines
809 B
Mako

<%def name="get_sort_url( sort_id, order, test_id, *args, **kwargs )">
<%
if sort_id == test_id:
if order == "asc":
tool_order = "desc"
elif order == "desc":
tool_order = "asc"
else:
tool_order = "default"
else:
tool_order = "default"
%>
%if len(kwargs.keys()) > 0:
<a href="${h.url_for( controller=args[0], action=args[1], sort_id=test_id, order=tool_order, **kwargs )}">${" ".join(args[2:])}</a>
%else:
<a href="${h.url_for( controller=args[0], action=args[1], sort_id=test_id, order=tool_order )}">${" ".join(args[2:])}</a>
%endif
</%def>
<%def name="get_css()">
<style>
.${sort_id} {
visibility: visible
}
</style>
</%def>