-
Notifications
You must be signed in to change notification settings - Fork 66
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Initial work for serving html/static content
Fixed user_proxy to work with emails Setup FeHandler and Jinja2 Environment Added setting for cdnjs prefix Moved common code into BaseHandler Initial CSS, app.html, error.html
- Loading branch information
Showing
11 changed files
with
223 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
from .util import FeHandler | ||
|
||
class AppHandler(FeHandler): | ||
def get(self): | ||
return self.render("app.html") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
.container-fluid { | ||
margin-bottom: 20px; | ||
} | ||
|
||
.navbar-default { | ||
background-color: #343434; | ||
border-color: #a3114f; | ||
} | ||
.navbar-default .navbar-brand { | ||
color: #ecf0f1; | ||
} | ||
.navbar-default .navbar-brand:hover, .navbar-default .navbar-brand:focus { | ||
color: #ecdbff; | ||
} | ||
.navbar-default .navbar-text { | ||
color: #ecf0f1; | ||
} | ||
.navbar-default .navbar-nav > li > a { | ||
color: #ecf0f1; | ||
} | ||
.navbar-default .navbar-nav > li > a:hover, .navbar-default .navbar-nav > li > a:focus { | ||
color: #ecdbff; | ||
} | ||
.navbar-default .navbar-nav > .active > a, .navbar-default .navbar-nav > .active > a:hover, .navbar-default .navbar-nav > .active > a:focus { | ||
color: #ecdbff; | ||
background-color: #a3114f; | ||
} | ||
.navbar-default .navbar-nav > .open > a, .navbar-default .navbar-nav > .open > a:hover, .navbar-default .navbar-nav > .open > a:focus { | ||
color: #ecdbff; | ||
background-color: #a3114f; | ||
} | ||
.navbar-default .navbar-toggle { | ||
border-color: #a3114f; | ||
} | ||
.navbar-default .navbar-toggle:hover, .navbar-default .navbar-toggle:focus { | ||
background-color: #a3114f; | ||
} | ||
.navbar-default .navbar-toggle .icon-bar { | ||
background-color: #ecf0f1; | ||
} | ||
.navbar-default .navbar-collapse, | ||
.navbar-default .navbar-form { | ||
border-color: #ecf0f1; | ||
} | ||
.navbar-default .navbar-link { | ||
color: #ecf0f1; | ||
} | ||
.navbar-default .navbar-link:hover { | ||
color: #ecdbff; | ||
} | ||
|
||
@media (max-width: 767px) { | ||
.navbar-default .navbar-nav .open .dropdown-menu > li > a { | ||
color: #ecf0f1; | ||
} | ||
.navbar-default .navbar-nav .open .dropdown-menu > li > a:hover, .navbar-default .navbar-nav .open .dropdown-menu > li > a:focus { | ||
color: #ecdbff; | ||
} | ||
.navbar-default .navbar-nav .open .dropdown-menu > .active > a, .navbar-default .navbar-nav .open .dropdown-menu > .active > a:hover, .navbar-default .navbar-nav .open .dropdown-menu > .active > a:focus { | ||
color: #ecdbff; | ||
background-color: #a3114f; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
<!DOCTYPE html> | ||
{% autoescape true %} | ||
<html ng-app="nsot"> | ||
<head> | ||
<title>NSoT</title> | ||
|
||
<link href="{{cdnjs_prefix}}/ajax/libs/twitter-bootstrap/3.3.1/css/bootstrap.min.css" | ||
rel="stylesheet" | ||
media="screen"> | ||
<link href="{{cdnjs_prefix}}/ajax/libs/font-awesome/4.2.0/css/font-awesome.min.css" | ||
rel="stylesheet" | ||
media="screen"> | ||
<link href="/static/css/nsot.css" rel="stylesheet" media="screen"> | ||
</head> | ||
<body> | ||
<div class="container-fluid"> | ||
<div class="row"> | ||
<nav class="navbar navbar-static-top navbar-default" role="navigation"> | ||
<div class="col-sm-10 col-sm-offset-1"> | ||
<a class="navbar-brand" href="/">NSoT.</a> | ||
</div> | ||
</nav> | ||
</div> | ||
|
||
<div class="row content"> | ||
<div class="col-md-12 text-center"> | ||
{% block content %} | ||
{% endblock %} | ||
</div> | ||
</div> | ||
</div> | ||
|
||
<script src="{{cdnjs_prefix}}/ajax/libs/lodash.js/2.4.1/lodash.min.js"></script> | ||
<script src="{{cdnjs_prefix}}/ajax/libs/jquery/2.1.3/jquery.min.js"></script> | ||
<script src="{{cdnjs_prefix}}/ajax/libs/twitter-bootstrap/3.3.1/js/bootstrap.min.js"></script> | ||
<script src="{{cdnjs_prefix}}/ajax/libs/moment.js/2.8.4/moment.min.js"></script> | ||
</body> | ||
</html> | ||
{% endautoescape %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
<!DOCTYPE html> | ||
{% autoescape true %} | ||
<html> | ||
<head> | ||
<title>NSoT Error</title> | ||
|
||
<link href="{{cdnjs_prefix}}/ajax/libs/twitter-bootstrap/3.3.1/css/bootstrap.min.css" | ||
rel="stylesheet" | ||
media="screen"> | ||
</head> | ||
<body> | ||
<div class="container-fluid"> | ||
<div class="row content"> | ||
<div class="col-md-12 text-center"> | ||
<div class="alert alert-danger"> | ||
{{code}} - {{message}} | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</body> | ||
</html> | ||
{% endautoescape %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters