forked from jeffknupp/sandman
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'feature/html' into develop
- Loading branch information
Showing
9 changed files
with
231 additions
and
25 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
<!DOCTYPE html> | ||
<!--[if lt IE 7]> <html class="no-js lt-ie9 lt-ie8 lt-ie7"> <![endif]--> | ||
<!--[if IE 7]> <html class="no-js lt-ie9 lt-ie8"> <![endif]--> | ||
<!--[if IE 8]> <html class="no-js lt-ie9"> <![endif]--> | ||
<!--[if gt IE 8]><!--> <html class="no-js"> <!--<![endif]--> | ||
<head> | ||
<meta charset="utf-8"> | ||
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> | ||
<title></title> | ||
<meta name="description" content=""> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | ||
|
||
</head> | ||
<body> | ||
<!--[if lt IE 7]> | ||
<p class="chromeframe">You are using an <strong>outdated</strong> browser. Please <a href="http://browsehappy.com/">upgrade your browser</a> or <a href="http://www.google.com/chromeframe/?redirect=true">activate Google Chrome Frame</a> to improve your experience.</p> | ||
<![endif]--> | ||
|
||
<!-- This code is taken from http://twitter.github.com/bootstrap/examples/hero.html --> | ||
|
||
{% block body %} | ||
{% endblock body %} | ||
</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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
{% extends "base.html" %} | ||
{% block body %} | ||
|
||
<h3>{{ resources[0].__tablename__ }}</h3> | ||
<ol> | ||
{% for resource in resources %} | ||
<li> | ||
<ul> | ||
{% for attribute, value in resource.as_dict().items() %} | ||
{% if attribute == 'links' %} | ||
<li>{{ attribute }}: <a href="{{ value[0].uri }}">{{ value[0].rel }}</a></li> | ||
{% else %} | ||
<li>{{ attribute }}: {{ value }}</li> | ||
{% endif %} | ||
{% endfor %} | ||
</ul> | ||
</li> | ||
{% endfor %} | ||
</ol> | ||
{% 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
{% extends "base.html" %} | ||
{% block body %} | ||
|
||
<h3>{{ tablename }}</h3> | ||
<h4>{{ resource.pk }}</h4> | ||
<ul> | ||
{% for attribute, value in resource.attributes.items() %} | ||
{% if attribute == 'links' %} | ||
<li>{{ attribute }}: <a href="{{ value[0].uri }}">{{ value[0].rel }}</a></li> | ||
{% else %} | ||
<li>{{ attribute }}: {{ value }}</li> | ||
{% endif %} | ||
{% endfor %} | ||
</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
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,51 @@ | ||
<!DOCTYPE html> | ||
<!--[if lt IE 7]> <html class="no-js lt-ie9 lt-ie8 lt-ie7"> <![endif]--> | ||
<!--[if IE 7]> <html class="no-js lt-ie9 lt-ie8"> <![endif]--> | ||
<!--[if IE 8]> <html class="no-js lt-ie9"> <![endif]--> | ||
<!--[if gt IE 8]><!--> <html class="no-js"> <!--<![endif]--> | ||
<head> | ||
<meta charset="utf-8"> | ||
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> | ||
<title></title> | ||
<meta name="description" content=""> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | ||
|
||
<link rel="stylesheet" href="/static/css/bootstrap.min.css"> | ||
<link rel="stylesheet" href="/static/css/pygments.css"> | ||
<style> | ||
body { | ||
padding-top: 60px; | ||
padding-bottom: 40px; | ||
} | ||
</style> | ||
<link rel="stylesheet" href="/static/css/bootstrap-responsive.min.css"> | ||
<link rel="stylesheet" href="/static/css/main.css"> | ||
|
||
<script src="/static/js/vendor/modernizr-2.6.2-respond-1.1.0.min.js"></script> | ||
</head> | ||
<body> | ||
<!--[if lt IE 7]> | ||
<p class="chromeframe">You are using an <strong>outdated</strong> browser. Please <a href="http://browsehappy.com/">upgrade your browser</a> or <a href="http://www.google.com/chromeframe/?redirect=true">activate Google Chrome Frame</a> to improve your experience.</p> | ||
<![endif]--> | ||
|
||
<!-- This code is taken from http://twitter.github.com/bootstrap/examples/hero.html --> | ||
|
||
<div class="container"> | ||
<div class="row-fluid"> | ||
<div class="span8 offset2"> | ||
{% block body %} | ||
{% endblock body %} | ||
</div> | ||
</div> | ||
</div> <!-- /container --> | ||
|
||
|
||
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script> | ||
<script>window.jQuery || document.write('<script src="/static/js/vendor/jquery-1.9.1.min.js"><\/script>')</script> | ||
|
||
<script src="/static/js/vendor/bootstrap.min.js"></script> | ||
|
||
<script src="/static/js/plugins.js"></script> | ||
<script src="/static/js/main.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
{% extends "base.html" %} | ||
{% block body %} | ||
|
||
<h3>{{ tablename }}</h3> | ||
<h4>{{ resource.pk }}</h4> | ||
<ul> | ||
{% for attribute in resource.attributes %} | ||
<li>{{ attribute }}</li> | ||
{% endfor %} | ||
</li> | ||
{% 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