forked from TheIronYard--Orlando/TIY-Gradebook
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
10 lines (10 loc) · 4.1 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
<!doctype html> <html class=no-js lang=en> <head> <meta charset=utf-8> <meta name=description> <meta name=viewport content="width=device-width, initial-scale=1"> <title>TIY Gradebook</title> <link rel=apple-touch-icon href=apple-touch-icon.png> <link rel=stylesheet href=styles/main.css> <script src=scripts/vendor/modernizr.js></script> </head> <body> <!--[if lt IE 10]>
<p class="browserupgrade">You are using an <strong>outdated</strong> browser. Please <a href="http://browsehappy.com/">upgrade your browser</a> to improve your experience.</p>
<![endif]--> <main ng-app=tiy-gradebook ui-view> <header class="header-page navbar navbar-default"> <div class=container-fluid> <h1 class=navbar-brand style=margin:0;> <a href="/">TIY Orlando Gradebook</a> </h1> <nav class=navbar-right style=margin-right:1em> <button class="btn btn-danger btn-small navbar-btn" ng-click=app.logout()>Logout</button> </nav> </div> </header> <div class=container> <section class=section-page-main ui-view> </section> </div> <div class=container-fluid> <footer class=footer-page> </footer> </div> <script type=text/ng-template id=views/login.html> <div class="jumbotron text-center"> <h1> TIY-Gradebook <br> <small>The Iron Yard -- Orlando</small> </h1> <button class="btn btn-success btn-lg" ng-click="app.login()"> Login with <strong>Github</strong> </button> </div><!-- .jumbotron --> </script> <script type=text/ng-template id=views/classes.html> <h3> Available Classes </h3> <ul class="nav-repos list-group"> <li class="list-group-item" ng-repeat="repo in org.repos"> <nav class="pull-right"> <a rel="external" href="{{repo.html_url}}/pulls" class="btn btn-default">Pull Requests</a> <a rel="external" href="{{repo.html_url}}/labels/Attendance" class="btn btn-info">Attendance</a> </nav> <h4> <a ui-sref="classes.detail({ repo: repo.name })">{{repo.name}}</a> </h4> </a><!-- .list-group-item --> </ul><!-- .nav-repos --> </script> <script type=text/ng-template id=views/class.html> <ol class="breadcrumb"> <li> <a ui-sref="classes.list">Classes</a> <li class="active"> {{class.repo.name}} </ol> <nav class="pull-right"> <a rel="external" href="{{class.repo.html_url}}" class="btn btn-default">Github</a> <a rel="external" href="{{class.repo.html_url}}/pulls" class="btn btn-default">Pull Requests</a> <a rel="external" href="{{class.repo.html_url}}/labels/Attendance" class="btn btn-info">Attendance</a> </nav> <h3> {{class.repo.name}} </h3> <p class="clearfix"> <hr> </p> <ul class="list-group"> <li class="list-group-item" ng-repeat="assn in class.milestones"> <nav class="pull-right"> <a class="btn btn-default" href="{{assn.html_url}}">All Open Submissions</a> </nav> <h4 class="list-group-item-heading"> {{assn.title}} <!-- FIXME: Should this be a link to something? --> </h4> <p class="clearfix"> <hr> </p> <div class="progress"> <!-- FIXME: Calculate these URLs inside the controller! --> <a class="progress-bar" href='{{class.repo.html_url}}/issues?q=milestone:"{{assn.title}}"+label:"{{label.name}}"' ng-repeat="label in class.labels" ng-style="{ width: class.percentOfType(assn.issues, label.name) + '%', backgroundColor: '#' + label.color }" title="{{label.name}}"> {{class.percentOfType(assn.issues, label.name).toFixed(0)}}% ({{assn.issues[label.name].length}}) </a><!-- .progress-bar --> <a class="progress-bar progress-bar-striped" href='{{class.repo.html_url}}/issues?q=milestone:"{{assn.title}}"+no:label' ng-style="{ width: class.percentOfType(assn.issues, 'none') + '%', backgroundColor: '#CCC' }"> {{class.percentOfType(assn.issues, 'none').toFixed(0)}}% ({{assn.issues['none'].length}}) </a> </div> </li> </ul><!-- .list-group --> </script> </main> <script>
(function(b,o,i,l,e,r){b.GoogleAnalyticsObject=l;b[l]||(b[l]=
function(){(b[l].q=b[l].q||[]).push(arguments)});b[l].l=+new Date;
e=o.createElement(i);r=o.getElementsByTagName(i)[0];
e.src='//www.google-analytics.com/analytics.js';
r.parentNode.insertBefore(e,r)}(window,document,'script','ga'));
ga('create','UA-XXXXX-X');ga('send','pageview');
</script> <script src=scripts/vendor.js></script> <script src=scripts/plugins.js></script> <script src=scripts/main.js></script> </body> </html>