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>
</div> </div>
<div class="row"> <div class="row" id="concurrent-graph">
<div class="col-md-12"> <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> <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"> <p class="help-block">
@ -372,6 +372,10 @@
break break
} }
if (window.location.hash === '#concurrent-graph') {
current_tab = '#tabs-stream';
}
$('#yaxis-' + yaxis).prop('checked', true); $('#yaxis-' + yaxis).prop('checked', true);
$('#yaxis-' + yaxis).closest('label').addClass('active'); $('#yaxis-' + yaxis).closest('label').addClass('active');
$('#graph-days').val(current_day_range); $('#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) { function loadGraphsTab3(time_range, yaxis) {

View file

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