Preserve dbkey when navigating histories and datasets in Trackster.

This commit is contained in:
Jeremy Goecks
2013-01-10 15:49:55 -05:00
parent e39389b34b
commit cf27a5aa37
+8 -1
View File
@@ -70,7 +70,14 @@ ${grid_javascripts()}
<% data_libraries_active = " activetab" %>
%endif
%endif
<a class="addtracktab${histories_active}" href="${h.url_for( action='list_histories' )}">Histories</a>
## Add filter parameters manually because they include a hyphen and hence cannot be
## added as key words.
<%
dbkey = '?'
if cur_filter_dict:
dbkey = cur_filter_dict.get( 'dbkey', '?' )
%>
<a class="addtracktab${histories_active}" href="${h.url_for( action='list_histories')}?f-dbkey=${dbkey}">Histories</a>
<a class="addtracktab${data_libraries_active}" href="${h.url_for( action='list_libraries' )}">Data Libraries</a>
<div class="divider"></div>
</%def>