File tree 6 files changed +21
-9
lines changed
6 files changed +21
-9
lines changed Original file line number Diff line number Diff line change @@ -54,4 +54,5 @@ docs/_build/
54
54
target /
55
55
56
56
* .db
57
- * .log
57
+ * .log
58
+ .idea /
Original file line number Diff line number Diff line change @@ -111,6 +111,11 @@ def admin_pages(route):
111
111
return render_template ('admin/pages.html' , routes = pages )
112
112
113
113
114
+ @app .route ('/admin/hosts' , methods = ['GET' ])
115
+ @admins_only
116
+ def admin_hosts ():
117
+ return render_template ('admin/hosts.html' )
118
+
114
119
@app .route ('/admin/chals' , methods = ['POST' , 'GET' ])
115
120
@admins_only
116
121
def admin_chals ():
@@ -353,12 +358,12 @@ def admin_stats():
353
358
db .session .close ()
354
359
355
360
return render_template ('admin/statistics.html' , team_count = teams_registered ,
356
- hit_count = site_hits ,
357
- wrong_count = wrong_count ,
358
- solve_count = solve_count ,
361
+ hit_count = site_hits ,
362
+ wrong_count = wrong_count ,
363
+ solve_count = solve_count ,
359
364
challenge_count = challenge_count ,
360
365
most_solved = most_solved_chal ,
361
- least_solved = least_solved_chal
366
+ least_solved = least_solved_chal
362
367
)
363
368
364
369
Original file line number Diff line number Diff line change @@ -7,4 +7,5 @@ SQLAlchemy==0.9.8
7
7
passlib == 1.6.2
8
8
py-bcrypt == 0.4
9
9
six == 1.8.0
10
- itsdangerous
10
+ itsdangerous
11
+ dop
Original file line number Diff line number Diff line change @@ -135,7 +135,7 @@ function loadchals(){
135
135
} ;
136
136
137
137
for ( var i = 0 ; i <= challenges [ 'game' ] . length - 1 ; i ++ ) {
138
- $ ( '#' + challenges [ 'game' ] [ i ] . category . replace ( / / g, "-" ) ) . append ( $ ( '<button value="' + challenges [ 'game' ] [ i ] . id + '">' + challenges [ 'game' ] [ i ] . value + '</button>' ) ) ;
138
+ $ ( '#' + challenges [ 'game' ] [ i ] . category . replace ( / / g, "-" ) ) . append ( $ ( '<button class="radius" value="' + challenges [ 'game' ] [ i ] . id + '">' + challenges [ 'game' ] [ i ] . value + '</button>' ) ) ;
139
139
} ;
140
140
141
141
$ ( '#challenges button' ) . click ( function ( e ) {
@@ -145,7 +145,7 @@ function loadchals(){
145
145
loadfiles ( this . value ) ;
146
146
} ) ;
147
147
148
- $ ( 'tr' ) . append ( '<button class="create-challenge"><i class="fa fa-plus"></i></button>' ) ;
148
+ $ ( 'tr' ) . append ( '<button class="radius create-challenge"><i class="fa fa-plus"></i></button>' ) ;
149
149
150
150
$ ( '.create-challenge' ) . click ( function ( e ) {
151
151
$ ( '#new-chal-category' ) . val ( $ ( $ ( this ) . siblings ( ) [ 0 ] ) . text ( ) . trim ( ) )
Original file line number Diff line number Diff line change @@ -121,7 +121,7 @@ <h1>CTF</h1>
121
121
< div >
122
122
< table id ='challenges '>
123
123
</ table >
124
- < button style ="width:100%; " class ="create-category "> New Category</ button >
124
+ < button style ="width:100%; " class ="radius create-category "> New Category</ button >
125
125
</ div >
126
126
</ div >
127
127
{% endblock %}
Original file line number Diff line number Diff line change @@ -7,6 +7,11 @@ <h1>Config</h1>
7
7
< form method ="POST ">
8
8
< input name ='nonce ' type ='hidden ' value ="{{ nonce }} ">
9
9
10
+ < div class ="row ">
11
+ < label for ="start "> Digital Ocean API Key:</ label >
12
+ < input id ='do_api_key ' name ='do_api_key ' type ='text ' placeholder ="Digital Ocean API Key " {% if do_api_key is defined and do_api_key ! = None %}value ="{{ do_api_key }} "{% endif %} >
13
+ </ div >
14
+
10
15
< div class ="row ">
11
16
< label for ="start "> Start Date:</ label >
12
17
< input id ='start ' name ='start ' type ='text ' placeholder ="Start Date (UTC timestamp) " {% if start is defined and start ! = None %}value ="{{ start }} "{% endif %} >
You can’t perform that action at this time.
0 commit comments