Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
SRCT
srct.gmu.io
Commits
74987924
Commit
74987924
authored
Jan 04, 2014
by
Daniel W Bond
Browse files
navbar, changed names, index
parent
6999ccca
Changes
6
Show whitespace changes
Inline
Side-by-side
srctweb/run.py
View file @
74987924
#!flask/bin/python
from
app
import
app
app
.
run
(
debug
=
True
)
from
website
import
website
website
.
run
(
debug
=
True
)
srctweb/website/__init__.py
View file @
74987924
from
flask
import
Flask
app
=
Flask
(
__name__
)
from
app
import
views
website
=
Flask
(
__name__
)
from
website
import
views
srctweb/website/templates/index.html
View file @
74987924
{% extends "base.html" %}
{% extends "
layouts/
base.html" %}
{% block title %}
SRCT
{% endblock %}
{% block content %}
<h1>
SRCT!
</h1>
<div
class=
"page-header"
id=
"banner"
>
<div
class=
"row"
>
<div
class=
"col-lg-12 text-center"
>
<h1>
Mason SRCT
</h1>
<p
class=
"lead"
>
Student-Run Computing and Technology
</p>
</div>
</div>
</div>
Student-Run Computing and Technology (SRCT, pronounced "circuit") is a student
organization at George Mason University which enhances student computing at
Mason. We establish and maintain systems which provide specific services for
Mason's community.
{% endblock %}
srctweb/website/templates/base.html
→
srctweb/website/templates/
layouts/
base.html
View file @
74987924
...
...
@@ -8,6 +8,8 @@
</title>
</head>
<body>
{% include 'navbar.html' %}
{% block content %}
{% endblock %}
<script
src=
"/static/js/jquery-2.0.3.min.js"
>
...
...
srctweb/website/templates/layouts/navbar.html
0 → 100644
View file @
74987924
<nav
class=
"navbar navbar-inverse navbar-fixed-top"
role=
"navigation"
>
<div
class=
"container"
>
<div
class=
"navbar-header"
>
<a
class=
"navbar-brand"
href=
"index.html"
><strong>
Mason SRCT
</strong></a>
</div>
<div
class=
"collapse navbar-collapse"
>
<ul
class=
"nav navbar-nav"
>
<li><a
href=
"projects.html"
>
Projects
</a></li>
<li><a
href=
"people.html"
>
People
</a></li>
<li><a
href=
"meetings.html"
>
Meetings
</a></li>
<li><a
href=
"calendar.html"
>
Calendar
</a>
<li><a
href=
"documents.html"
>
Documents
</a>
<li><a
href=
"contact.html"
>
Contact
</a>
</ul>
<ul
class=
"nav navbar-nav navbar-right"
>
<!-- would probably better to have login as a dropdown -->
<!-- username on top of password -->
<li><a
href=
"#login"
>
Log In
</a></li>
</ul>
</div>
<!--/.nav-collapse -->
</div>
</nav>
srctweb/website/views.py
View file @
74987924
from
flask
import
render_template
from
app
import
app
from
website
import
website
@
app
.
route
(
'/'
)
@
app
.
route
(
'/index'
)
@
website
.
route
(
'/'
)
@
website
.
route
(
'/index'
)
def
index
():
return
render_template
(
"index.html"
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment