Added routing for sponsor package and code of conduct #6
2 changed files with 21 additions and 2 deletions
|
@ -44,6 +44,25 @@ def create_app():
|
|||
from goathacks import cli
|
||||
app.cli.add_command(cli.gr)
|
||||
|
||||
|
||||
#Sponsor page
|
||||
@app.route("/sponsor")
|
||||
def sponsorindex():
|
||||
return render_template('home/sponsor/index.html')
|
||||
|
||||
@app.route('/sponsor/<path:path>')
|
||||
def sponsor(path):
|
||||
return send_from_directory('templates/home/sponsor', path)
|
||||
|
||||
#Code of condcut
|
||||
@app.route("/conduct")
|
||||
def conductindex():
|
||||
return render_template('home/conduct/index.html')
|
||||
|
||||
@app.route('/conduct/<path:path>')
|
||||
def conduct(path):
|
||||
return send_from_directory('templates/home/conduct', path)
|
||||
|
||||
# Homepage
|
||||
@app.route("/")
|
||||
def index_redirect():
|
||||
|
|
|
@ -22,7 +22,7 @@
|
|||
<nav class="navbar navbar-inverse sticky-top navbar-expand">
|
||||
<div class="container-fluid">
|
||||
<div class="navbar-header">
|
||||
<a class="navbar-brand" href="/">Hack@WPI</a>
|
||||
<a class="navbar-brand" href="/">Goathacks</a>
|
||||
</div>
|
||||
<ul class="nav justify-content-end">
|
||||
<!-- <li class="nav-item">
|
||||
|
@ -36,7 +36,7 @@
|
|||
<a class="nav-link" href="../static/assets/Hack@WPI-SponsorshipInformation-2020.pdf">Sponsorship Packet</a>
|
||||
</li> -->
|
||||
<li class="nav-item">
|
||||
<a class="nav-link" href="https://static.mlh.io/docs/mlh-code-of-conduct.pdf">Code of Conduct</a>
|
||||
<a class="nav-link" href="https://hack.wpi.edu/conduct/GoatHacks-Code-of-Conduct.pdf">Code of Conduct</a>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
|
|
Loading…
Add table
Reference in a new issue