-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathindex.html
78 lines (65 loc) · 3.76 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
<!DOCTYPE html>
<html ng-controller="RootController as root">
<head>
<meta charset="utf-8">
<title ng-bind="root.title"></title>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.3.4/css/bootstrap.min.css" />
<link rel="stylesheet" href="css/pr.css" />
<!-- Begin dev config -->
<script src="src/jspm_packages/system.src.js"></script>
<script src="src/config.js"></script>
<script>
Promise.all([System.import("angular"), System.import("pr")]).then(function(modules) {
var prjs = modules[1].default, angular = (modules[0].angular || modules[0]);
angular.element(document).ready(function() { angular.bootstrap(document, [prjs.name]); });
});
</script>
<!-- End dev config -->
<!-- Begin prod config
<script src="build.min.js"></script>
<script>angular.element(document).ready(function() { angular.bootstrap(document, ["prjs"]); });</script>
End prod config -->
</head>
<body>
<div ui-view></div>
<footer>
<a href="https://github.com/radify/PR.js">GitHub</a>
<span> | </span>
<a href="http://radify.io">
Proudly hand-crafted by
<img src="/img/radify.svg" alt="Radify">
</a>
</footer>
<script type="text/ng-template" id="partials/home.html">
<div class="home"><div class="homeHeader container-fluid"><h1><img src="/img/PRjs.svg" alt="PR.js"></h1><p>Simple validation for pull request workflows</p></div>
<form class="homeForm container-fluid">
<p><input type="text" class="search" ng-model="search.name" placeholder="Name of a user or organization on GitHub" /><button ng-click="search.go()" class="start">Start <span class="glyphicon glyphicon-chevron-right" aria-hidden="true"></span></button></p>
</form>
</div>
</script>
<script type="text/ng-template" id="partials/layout.html">
<div class="owner">
<h2 class="title"><a ng-href="{{ owner.html_url }}"><img ng-src="{{ owner.avatar_url }}" /> {{ owner.login }}</a></h2>
<div class="headerLogo"><img src="/img/PRjs.svg" alt="PR.js"></div>
</div>
<div class="top"><div class="col repos"><div class="col-body" ui-view="repos"></div></div><div class="col pulls"><div class="col-body" ui-view="pulls"></div></div><div class="col pull"><div class="col-body" ui-view="pull"></div></div></div>
<div class="bottom"><div class="well well-lg results" ui-view="results"><p class="lead note">Select a project and pull request above</p></div>
</div>
</script>
<script type="text/ng-template" id="partials/pull.html">
<h4 class="pull title"><a ng-href="{{ pull.user.html_url }}"><img ng-src="{{ pull.user.avatar_url }}" alt="{{ pull.user.login }}" class="avatar" /></a><span ng-bind-html="pull.title | md"></span></h4>
<div class="well well-sm pull" ng-bind-html="pull.body | md"></div>
<div class="pull-right"><a ng-href="{{ pull.html_url }}" class="btn btn-default">View ➔</a></div>
</script>
<script type="text/ng-template" id="partials/pulls.html">
<ul class="nav nav-pills nav-stacked" role="navigation">
<li ng-show="!pulls" class="lead note">Select a project to view pull requests</li>
<li ng-show="pulls.length === 0" class="lead note">No open pull requests</li>
<li ng-repeat="pull in pulls" class="pull" ui-sref-active="active"><a ui-sref="main.org.repo.pull({ id: pull.number })"><!-- <span class="pull-right" ng-bind-html="pull.valid | valid"></span> --><strong>#{{ pull.number }}</strong><span ng-bind-html="pull.title | md"></span></a></li>
</ul>
</script>
<script type="text/ng-template" id="partials/repos.html">
<ul class="nav nav-pills nav-stacked" role="navigation"><li ng-repeat="repo in repos" ui-sref-active="active" role="presentation"><a ui-sref="main.org.repo({ repo: repo.name })" title="{{ repo.name }}" class="repo">{{ repo.name }}</a></li></ul>
</script>
</body>
</html>