Merge pull request #5191 from solgenomics/topic/quality_control
[sgn.git] / mason / analytics_protocols / index.mas
blob99770581675475a6ce4809cdba4422e191cac870
2 <%args>
3 </%args>
5 <%doc>
7 =head1 NAME
9 /mason/analytics_protocols/index.mas - show user-specific analytics in the system
11 =head1 DESCRIPTION
13 Displays a page with a table of all the analytics run by the currently logged in user.
15 =head1 AUTHOR
17 =cut
19 </%doc>
21 <& /util/import_javascript.mas, classes => [ 'jquery', 'jquery.dataTables' ], entries => [] &>
23 <& /page/page_title.mas, title => "Your Analytics Protocols" &>
25 <button class='btn btn-success' style='margin:3px;float:right' id='drone_imagery_analytics_link'>Drone Imagery Analytics</button><br />
26 <hr>
28 <& /breeders_toolbox/drone_imagery/drone_imagery_analytics.mas &>
30 <div class="well">
31     <table class="table table-bordered table-hover" id="analytics_protocols_by_user_table">
32         <thead>
33             <tr>
34                 <th>Analytics Protocol Name</th>
35                 <th>Description</th>
36                 <th>Type</th>
37                 <th>Create Date</th>
38             </tr>
39         </thead>
40         <tbody>
41         </tbody>
42     </table>
43 </div>
45 <script>
46 jQuery(document).ready(function(){
47     jQuery('#analytics_protocols_by_user_table').DataTable({
48         'ajax': { 'url': '/ajax/analytics_protocols/by_user' }
49     });
50 });
51 </script>