Skip to content
Browse files

Prettier backwards compat for search sub text.

  • Loading branch information...
1 parent c5b9e41 commit d1fe64f520781c172e09191f202aa6779ea59223 @onyxfish onyxfish committed
Showing with 2 additions and 2 deletions.
  1. +2 −2 client/static/templates/user.jst
View
4 client/static/templates/user.jst
@@ -10,9 +10,9 @@
<ul id="subscriptions">
<% _.each(user.subscriptions, function(sub) { %>
<% if (sub.dataset) { %>
- <li><%= sub.query_human || sub.query %> 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> Cancel notifications for this search</a></li>
+ <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> Cancel notifications for this search</a></li>
<% } else { %>
- <li><%= sub.query_human || sub.query %> in any dataset<br /><a data-original-title="View all search results" rel="tooltip" href="#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> Cancel notifications for this search</a></li>
+ <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/<%= 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> Cancel notifications for this search</a></li>
<% } %>
<% }); %>
</ul>

0 comments on commit d1fe64f

Please sign in to comment.
Something went wrong with that request. Please try again.