-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
executable file
·96 lines (81 loc) · 4.81 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
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
<!doctype html>
<html ng-app="cs50App" ng-controller="MainController">
<head>
<!-- This is the text that appears at the top of the browser -->
<title>Code Now</title>
<link rel="stylesheet" type="text/css" href="./index.css" />
<link rel="stylesheet" href="externalModules/font-awesome/css/font-awesome.min.css">
<!-- Load all of our necessary node modules/dependencies -->
<link href="./node_modules/angular-material/angular-material.css" rel="stylesheet" />
<script src="./node_modules/angular/angular.js" type="text/javascript" ></script>
<script src="./node_modules/angular-animate/angular-animate.js" type="text/javascript" ></script>
<script src="./node_modules/angular-aria/angular-aria.js" type="text/javascript" ></script>
<script src="./node_modules/angular-material/angular-material.js" type="text/javascript" ></script>
<script src="node_modules/angular-route/angular-route.js"></script>
<!-- Add global styles -->
<link rel="stylesheet" type="text/css" href="components/globalStyle.css" />
<!-- Add in our controller script -->
<script src="mainController.js"></script>
<!-- Load loginController and its CSS -->
<script src="components/login/loginController.js"></script>
<link rel="stylesheet" type="text/css" href="components/login/login.css" />
<!-- Load loginController and its CSS -->
<script src="components/editableProfile/editableProfileController.js"></script>
<link rel="stylesheet" type="text/css" href="components/editableProfile/editableProfile.css" />
<!-- Added home view controller and css -->
<script src="components/home/homeController.js"></script>
<link rel="stylesheet" type="text/css" href="components/home/home.css" />
<!-- Added signup controller view controller and css -->
<script src="components/signup/signupController.js"></script>
<link rel="stylesheet" type="text/css" href="components/signup/signUp.css" />
<!-- Added new project page controller view and css -->
<script src="components/submit/submitController.js"></script>
<link rel="stylesheet" type="text/css" href="components/submit/submit.css" />
<!-- Added edit controller view controller -->
<script src="components/submit/editController.js"></script>
<!-- Added project view page controller view and css -->
<script src="components/project/projectController.js"></script>
<link rel="stylesheet" type="text/css" href="components/project/project.css" />
<!-- Added review view page controller view and css -->
<script src="components/underReview/underReviewController.js"></script>
<link rel="stylesheet" type="text/css" href="components/underReview/underReview.css" />
<!-- Added edit user view page controller view and css -->
<script src="components/editUser/editUserController.js"></script>
<link rel="stylesheet" type="text/css" href="components/editUser/editUser.css" />
<script src="./node_modules/angular-resource/angular-resource.js" type="text/javascript" ></script>
</head>
<!-- The entire page is layed out as a vertical column, so elements in HTML are layered top to bottom-->
<body layout="column">
<!-- The first element in the body is a row containing the top toolbar of the app. -->
<!--New tool bar-->
<div class="loggedInToolBar">
<div class="toolbar">
<div class="dropdown">
<button class="dropbtn"><img src="./images/ic_settings_black_24px.svg"/></button>
<div class="dropdown-content">
<a ng-click="logoutClicked()">Logout</a>
<a ng-href="#!/editUser">Edit profile</a>
</div>
</div>
</div>
<div class='topBar'>
<div class="codeNowTitle">
<img class= "codenowlogoToolBar" src ='../../images/codenow%20logo%20large.png' />
</div>
<div class="navRow">
<a class="NavButtons" ng-href="#!/projects/new">submit</a>
<a class="NavButtons" ng-href="#!/home">projects</a>
<a class="NavButtons" ng-if="main.user_type == 'Admin'" ng-href="#!/review">approve</a>
<a class="NavButtons" ng-if="main.user_type == 'Student'" ng-href="#!/profile/private"> my projects </a>
</div>
</div>
</div>
<!-- The next element is a div that utilizes ng-content to dynamically change what HTML it shows (refer to mainController.js line 6-20). -->
<div class="container" flex layout="row">
<!-- content managed by ngRoute -->
<md-content flex id="content">
<div ng-view></div>
</md-content>
</div>
</body>
</html>