Created
August 24, 2017 15:11
-
-
Save guilleasz/450cc8eac65af2e711fa7f98dccafc15 to your computer and use it in GitHub Desktop.
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
{% extends "layout.html" %} | |
{% block content %} | |
<h3>Add a Page</h3> | |
<hr> | |
<form method="POST" action="/wiki/"> | |
<div>PLACEHOLDER FOR AUTHOR NAME FIELD</div> | |
<div>PLACEHOLDER FOR AUTHOR EMAIL FIELD</div> | |
<div class="form-group"> | |
<label for="title" class="col-sm-2 control-label">Page Title</label> | |
<div class="col-sm-10"> | |
<input name="title" type="text" class="form-control"/> | |
</div> | |
</div> | |
<div>PLACEHOLDER FOR PAGE CONTENT TEXTAREA FIELD</div> | |
<div>PLACEHOLDER FOR PAGE STATUS INPUT FIELD</div> | |
<div class="col-sm-offset-2 col-sm-10"> | |
<button type="submit" class="btn btn-primary">submit</button> | |
</div> | |
</form> | |
{% endblock %} |
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
{% extends "layout.html" %} | |
{% block content %} | |
<h1>{{message}}</h1> | |
<h2>{{error.status}}</h2> | |
<pre>{{error.stack}}</pre> | |
{% endblock %} |
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
{% extends "layout.html" %} | |
{% block content %} | |
<h3>Pages</h3> | |
<hr> | |
<ul class="list-unstyled"> | |
<!-- PLACEHOLDER LIST OF PAGES --> | |
</ul> | |
{% endblock %} |
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
<!-- layout.html --> | |
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<title>{% block title %}WikiStack{% endblock %}</title> | |
<link href="http://netdna.bootstrapcdn.com/bootstrap/3.0.3/css/bootstrap.min.css" rel="stylesheet"> | |
<link href="/stylesheets/style.css" rel="stylesheet"> | |
</head> | |
<body> | |
<div class="navbar navbar-fixed-top navbar-inverse" role="navigation"> | |
<div class="container"> | |
<div class="navbar-header"> | |
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#nav-items"> | |
<span class="sr-only">Toggle navigation</span> | |
<span class="icon-bar"></span> | |
<span class="icon-bar"></span> | |
<span class="icon-bar"></span> | |
</button> | |
<a class="navbar-brand" href="/">wikistack</a> | |
</div> | |
<div id="nav-items" class="collapse navbar-collapse"> | |
<ul class="nav navbar-nav"> | |
<li><a href="/wiki/">index</a></li> | |
<li><a href="/wiki/add">write</a></li> | |
<li><a href="/users">users</a></li> | |
<li><a href="/search">tagsearch</a></li> | |
<li><a href="/about">about</a></li> | |
</ul> | |
</div> | |
</div> | |
</div> | |
<div class="container content"> | |
{% block content %}{% endblock %} | |
</div> | |
<hr/> | |
<div id="footer" class="container text-muted"> | |
WIKISTACK by Plataforma 5 | |
</div> | |
<script src="https://code.jquery.com/jquery-1.10.2.min.js"></script> | |
<script src="http://netdna.bootstrapcdn.com/bootstrap/3.0.3/js/bootstrap.min.js"></script> | |
</body> | |
</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
{% extends "layout.html" %} | |
{% block content %} | |
<h3>PLACEHOLDER PAGE TITLE <small> (<a href="PLACEHOLDER_URL_TITLE/similar">Similar</a>)</small></h3> | |
<h4>by <a href="PLACEHOLDER-AUTHOR-URL">PLACEHOLDER AUTHOR NAME</a></h4> | |
<div>PLACEHOLDER TAG LIST</div> | |
<hr/> | |
<div>PLACEHOLDER AUTHOR NAME WITH LINK TO AUTHOR PAGE</div> | |
<div class="page-body">PLACEHOLDER PAGE CONTENT</div> | |
<hr/> | |
<a href="PLACEHOLDER_URL_TITLE/edit" class="btn btn-primary">edit this page</a> | |
<a href="PLACEHOLDER_URL_TITLE/delete" class="btn btn-danger">delete this page</a> | |
{% endblock %} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment