https://github.com/galaxyproject/galaxy
Raw File
Tip revision: aa6028421bfb310133eae6c118dc8d4822a42560 authored by John Chilton on 15 October 2020, 16:08:30 UTC
Version 20.9.0 of data (tag galaxy-data-20.9.0).
Tip revision: aa60284
sorting_base.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>
back to top