File tree 3 files changed +36
-1
lines changed
3 files changed +36
-1
lines changed Original file line number Diff line number Diff line change 1
- from flask import redirect
1
+ from flask import redirect , render_template
2
2
3
3
from packet import auth , app
4
4
from packet .utils import before_request
9
9
@before_request
10
10
def index (info = None ):
11
11
return redirect ("/packet/" + info ['uid' ], 302 )
12
+
13
+
14
+ @app .route ("/essays" )
15
+ @auth .oidc_auth
16
+ @before_request
17
+ def essays (info = None ):
18
+ return render_template ("essays.html" , info = info )
Original file line number Diff line number Diff line change
1
+ {% extends "extend/base.html" %}
2
+
3
+ {% block body %}
4
+ < div class ="container main ">
5
+ < div class ="row mobile-hide ">
6
+ < div class ="col-sm-10 ">
7
+ < h3 class ="page-title "> Essays</ h3 >
8
+ </ div >
9
+ </ div >
10
+ < div id ="eval-blocks ">
11
+ < div id ="eval-table ">
12
+ < div class ="card ">
13
+ < div class ="card-body table-fill ">
14
+ < textarea title ="EBoard "> </ textarea >
15
+ < textarea title ="Events "> </ textarea >
16
+ < textarea title =""> </ textarea >
17
+ </ div >
18
+ </ div >
19
+ </ div >
20
+ </ div >
21
+ </ div >
22
+ {% endblock %}
Original file line number Diff line number Diff line change 14
14
< a class ="nav-link " href ="/packets "> Active Packets</ a >
15
15
</ li >
16
16
17
+ {% if info.realm != "csh" %}
18
+ < li class ="nav-item ">
19
+ < a class ="nav-link " href ="/essays "> Essays</ a >
20
+ </ li >
21
+ {% endif %}
22
+
17
23
</ ul >
18
24
< ul class ="nav navbar-nav ml-auto ">
19
25
< li class ="navbar-user dropdown ">
You can’t perform that action at this time.
0 commit comments