Permalink
Browse files

Fix broken links for saved searches in categories.

  • Loading branch information...
1 parent 2c26b3e commit 6e6e2ae37bd7bb42cad675b3e666e665c348cf32 @onyxfish onyxfish committed Jul 16, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 client/static/templates/user.jst
@@ -12,7 +12,7 @@
<% if (sub.dataset) { %>
<li><% if (sub.query_human) { %><%= sub.query_human %><% } else { %><code><%= sub.query %></code><% } %> in <a href="#dataset/<%= sub.dataset.slug %>"><strong><%= unescape(sub.dataset.name) %></strong></a><br /><a href="#dataset/<%= sub.dataset.slug %>/search/<%= sub.query_url %>"><i class="icon-search"></i> Run this search</a> <a href="#" onclick="return false;" class="delete" data-uri="<%= sub.resource_uri %>"><i class="icon-remove"></i> Delete this subscription</a></li>
<% } else if (sub.category) { %>
- <li><% if (sub.query_human) { %><%= sub.query_human %><% } else { %><code><%= sub.query %></code><% } %> in <strong><%= sub.category.name %></strong><br /><a data-original-title="View all search results" rel="tooltip" href="#search/<%= sub.category.name %>/<%= sub.query_url %>"><i class="icon-search"></i> Run this search</a> <a href="#" onclick="return false;" class="delete" data-uri="<%= sub.resource_uri %>"><i class="icon-remove"></i> Delete this subscription</a></li>
+ <li><% if (sub.query_human) { %><%= sub.query_human %><% } else { %><code><%= sub.query %></code><% } %> in <strong><%= sub.category.name %></strong><br /><a data-original-title="View all search results" rel="tooltip" href="#search/<%= sub.category.slug %>/<%= sub.query_url %>"><i class="icon-search"></i> Run this search</a> <a href="#" onclick="return false;" class="delete" data-uri="<%= sub.resource_uri %>"><i class="icon-remove"></i> Delete this subscription</a></li>
<% } else { %>
<li><% if (sub.query_human) { %><%= sub.query_human %><% } else { %><code><%= sub.query %></code><% } %> in any dataset<br /><a data-original-title="View all search results" rel="tooltip" href="#search/all/<%= sub.query_url %>"><i class="icon-search"></i> Run this search</a> <a href="#" onclick="return false;" class="delete" data-uri="<%= sub.resource_uri %>"><i class="icon-remove"></i> Delete this subscription</a></li>
<% } %>

0 comments on commit 6e6e2ae

Please sign in to comment.