diff options
Diffstat (limited to 'docs/templates/default.html')
-rw-r--r-- | docs/templates/default.html | 78 |
1 files changed, 78 insertions, 0 deletions
diff --git a/docs/templates/default.html b/docs/templates/default.html new file mode 100644 index 0000000..9446a3d --- /dev/null +++ b/docs/templates/default.html @@ -0,0 +1,78 @@ +{% load staticfiles %} +<!DOCTYPE html> +<html> + <head> + <title>{{ title }}</title> + <meta name="viewport" content="width=device-width, initial-scale=1.0"> + <!-- Bootstrap --> + <link href="{{ STATIC_URL }}bootstrap/css/bootstrap.min.css" rel="stylesheet" media="screen"> + <style type="text/css"> + body { + padding-top: 60px; + padding-bottom: 40px; + } + .terms li, .terms dd { + margin-bottom: 20px; + } + .terms h3 { + margin-top: 20px; + } + .terms hr { + margin-top: 10px; + } + .sidebar-nav { + padding: 9px 0; + } + </style> + </head> + <body> + <div class="navbar navbar-inverse navbar-fixed-top"> + <div class="navbar-inner"> + <div class="container-fluid"> + <button type="button" class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse"> + <span class="icon-bar"></span> + <span class="icon-bar"></span> + <span class="icon-bar"></span> + </button> + <a class="brand" href="/">ServoApp Help</a> + </div> + </div> + </div> + + <div class="container-fluid"> + <div class="row-fluid"> + {% block content %} + <div class="span3"> + <div class="well sidebar-nav"> + <ul class="nav nav-list"> + <li class="nav-header">Topics</li> + {% for i in topics %} + <li><a href="{% url 'docs-view' i.slug %}">{{ i.title }}</a></li> + {% endfor %} + {% block sidebar %} + {% endblock sidebar %} + </ul> + </div> + </div> + <div class="span9"> + {% block main %} + {% endblock main %} + </div> + {% endblock content %} + </div> + <hr/> + <footer> + <p>© {% now "Y" %} First Party Software <span class="pull-right"><a href="/terms/">Terms of Service</a></span></p> + </footer> + </div> + <script src="{{ STATIC_URL }}js/jquery.min.js"></script> + <script src="{{ STATIC_URL }}bootstrap/js/bootstrap.min.js"></script> + <script type="text/javascript"> + $(function(){ + // highlight the current article + var loc = location.pathname.split("/")[1]; + $('.sidebar-nav a[href*="' + loc + '"]').parent().addClass('active'); + }); + </script> + </body> +</html> |