Add link from concurrent stream stats card to graphs page

This commit is contained in:
JonnyWong16 2023-10-23 16:04:29 -07:00
commit ab16adcffc
No known key found for this signature in database
GPG key ID: B1F1F9807184697A
2 changed files with 9 additions and 3 deletions

View file

@ -137,7 +137,7 @@
</div>
</div>
</div>
<div class="row">
<div class="row" id="concurrent-graph">
<div class="col-md-12">
<h4><i class="fa fa-video-camera"></i> Daily concurrent stream count</span> by stream type <small>Last <span class="days">30</span> days</small></h4>
<p class="help-block">
@ -372,6 +372,10 @@
break
}
if (window.location.hash === '#concurrent-graph') {
current_tab = '#tabs-stream';
}
$('#yaxis-' + yaxis).prop('checked', true);
$('#yaxis-' + yaxis).closest('label').addClass('active');
$('#graph-days').val(current_day_range);
@ -639,7 +643,7 @@
}
});
$('#nav-tabs-2').tab('show');
$('#nav-tabs-stream').tab('show');
}
function loadGraphsTab3(time_range, yaxis) {

View file

@ -177,7 +177,9 @@ DOCUMENTATION :: END
% elif stat_id == 'top_platforms':
${row['platform']}
% elif stat_id == 'most_concurrent':
${row['title']}
<a href="graphs#concurrent-graph" title="${row['title']}">
${row['title']}
</a>
% endif
</div>
<div class="sub-count">