Skip to content

Commit

Permalink
Revert "Opening sql queries in new tab is very useful"
Browse files Browse the repository at this point in the history
This reverts commit 6b0b22e.
  • Loading branch information
albertyw authored and avelis committed Apr 9, 2018
1 parent b5e6aae commit 1fcf458
Showing 1 changed file with 2 additions and 9 deletions.
11 changes: 2 additions & 9 deletions silk/templates/silk/sql.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,8 @@
{% block js %}
<script type="text/javascript" src="{% static 'silk/lib/sortable.js' %}"></script>
{{ block.super }}
<script>
function openInNewTab(url) {
var win = window.open(url, '_blank');
win.focus();
}
</script>
{% endblock %}


{% block style %}
<style>
.right-aligned {
Expand Down Expand Up @@ -118,15 +111,15 @@
</tr>
{% for sql_query in items %}
<!-- TODO: Pretty grimy... -->
<tr class="data-row" onclick="openInNewTab(' \
<tr class="data-row" onclick="window.location=' \
{% if profile and silk_request %}\
{% url "silk:request_and_profile_sql_detail" silk_request.id profile.id sql_query.id %}\
{% elif profile %}\
{% url "silk:profile_sql_detail" profile.id sql_query.id %}\
{% elif silk_request %}\
{% url "silk:request_sql_detail" silk_request.id sql_query.id %}\
{% endif %}\
');">
';">
<td class="left-aligned">+{{ sql_query.start_time_relative }}</td>
<td class="left-aligned">{{ sql_query.tables_involved|join:", " }}</td>
<td class="right-aligned">{{ sql_query.num_joins }}</td>
Expand Down

0 comments on commit 1fcf458

Please sign in to comment.