diff options
| author | Mark Weiman <mark.weiman@markzz.com> | 2015-10-11 01:00:38 -0400 |
|---|---|---|
| committer | Mark Weiman <mark.weiman@markzz.com> | 2015-10-11 01:00:38 -0400 |
| commit | 57aa89824a8dabb631c15af986a39e779d0fe3cb (patch) | |
| tree | 2df3bf79026e1c544e57375566297bcc7634afa5 /blog/templates | |
| download | website-57aa89824a8dabb631c15af986a39e779d0fe3cb.tar.gz website-57aa89824a8dabb631c15af986a39e779d0fe3cb.zip | |
inital
Diffstat (limited to 'blog/templates')
| -rw-r--r-- | blog/templates/captcha/widget.html | 16 | ||||
| -rw-r--r-- | blog/templates/captcha/widget_ajax.html | 25 | ||||
| -rw-r--r-- | blog/templates/captcha/widget_nocaptcha.html | 33 | ||||
| -rw-r--r-- | blog/templates/edit-post.html | 134 | ||||
| -rw-r--r-- | blog/templates/index.html | 151 | ||||
| -rw-r--r-- | blog/templates/post.html | 156 | ||||
| -rw-r--r-- | blog/templates/repo.html | 140 | ||||
| -rw-r--r-- | blog/templates/rindex.html | 142 |
8 files changed, 797 insertions, 0 deletions
diff --git a/blog/templates/captcha/widget.html b/blog/templates/captcha/widget.html new file mode 100644 index 0000000..fb38f61 --- /dev/null +++ b/blog/templates/captcha/widget.html @@ -0,0 +1,16 @@ +<script type="text/javascript"> + var DjangoRecaptchaOptions = {{options}}; + if (typeof RecaptchaOptions !== 'object') { + RecaptchaOptions = DjangoRecaptchaOptions; + } else { + for (key in DjangoRecaptchaOptions) { + RecaptchaOptions[key] = DjangoRecaptchaOptions[key]; + } + } +</script> +<script type="text/javascript" src="{{api_server}}/challenge?k={{public_key}}&hl={{lang}}{{error_param}}"></script> +<noscript> + <iframe src="{{api_server}}/noscript?k={{public_key}}&hl={{lang}}{{error_param}}" height="300" width="500" frameborder="0"></iframe><br /> + <textarea name="recaptcha_challenge_field" rows="3" cols="40"></textarea> + <input type='hidden' name='recaptcha_response_field' value='manual_challenge' /> +</noscript> diff --git a/blog/templates/captcha/widget_ajax.html b/blog/templates/captcha/widget_ajax.html new file mode 100644 index 0000000..71969f2 --- /dev/null +++ b/blog/templates/captcha/widget_ajax.html @@ -0,0 +1,25 @@ + +{# import recaptcha_ajax.js in your body #} +{# <script type="text/javascript" src="//www.google.com/recaptcha/api/js/recaptcha_ajax.js"></script> #} + +<div id="Recap"></div> +<script type="text/javascript"> + var RecaptchaOptions = {{options}}; + Recaptcha.create("{{ public_key }}", + "Recap", + { + theme: "red", + callback: Recaptcha.focus_response_field + }, + RecaptchaOptions + ); +</script> + + +{% comment %} +<noscript> + <iframe src="{{api_server}}/noscript?k={{public_key}}{{error_param}}" height="300" width="500" frameborder="0"></iframe><br /> + <textarea name="recaptcha_challenge_field" rows="3" cols="40"></textarea> + <input type='hidden' name='recaptcha_response_field' value='manual_challenge' /> +</noscript> +{% endcomment %}
\ No newline at end of file diff --git a/blog/templates/captcha/widget_nocaptcha.html b/blog/templates/captcha/widget_nocaptcha.html new file mode 100644 index 0000000..e8b6e38 --- /dev/null +++ b/blog/templates/captcha/widget_nocaptcha.html @@ -0,0 +1,33 @@ +<script src='https://www.google.com/recaptcha/api.js{% if lang %}?hl={{ lang }}{% endif %}'></script> +<script type="text/javascript"> + var DjangoRecaptchaOptions = {{options}}; + if (typeof RecaptchaOptions !== 'object') { + RecaptchaOptions = DjangoRecaptchaOptions; + } else { + for (key in DjangoRecaptchaOptions) { + RecaptchaOptions[key] = DjangoRecaptchaOptions[key]; + } + } +</script> +<div class="g-recaptcha" data-sitekey="{{ public_key }}"></div> +<noscript> + <div style="width: 302px; height: 352px;"> + <div style="width: 302px; height: 352px; position: relative;"> + <div style="width: 302px; height: 352px; position: absolute;"> + <iframe src="https://www.google.com/recaptcha/api/fallback?k={{ public_key }}" + frameborder="0" scrolling="no" + style="width: 302px; height:352px; border-style: none;"> + </iframe> + </div> + <div style="width: 250px; height: 80px; position: absolute; border-style: none; + bottom: 21px; left: 25px; margin: 0px; padding: 0px; right: 25px;"> + <textarea id="g-recaptcha-response" name="g-recaptcha-response" + class="recaptcha_challenge_field" + style="width: 250px; height: 80px; border: 1px solid #c1c1c1; + margin: 0px; padding: 0px; resize: none;" value=""> + </textarea> + <input type='hidden' name='recaptcha_response_field' value='manual_challenge' /> + </div> + </div> + </div> +</noscript> diff --git a/blog/templates/edit-post.html b/blog/templates/edit-post.html new file mode 100644 index 0000000..4a7b019 --- /dev/null +++ b/blog/templates/edit-post.html @@ -0,0 +1,134 @@ +{% load replace %} +{% load staticfiles %} +<!DOCTYPE html> +<html lang="en"> + +<head> + + <meta charset="utf-8"> + <meta http-equiv="X-UA-Compatible" content="IE=edge"> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <meta name="description" content=""> + <meta name="author" content=""> + + <title>MarkZZ - Blog - {{ selected_post.title }}</title> + + <!-- Bootstrap Core CSS --> + <link href="/static/css/bootstrap.min.css" rel="stylesheet"> + + <!-- Custom CSS --> + <link href="/static/css/clean-blog.min.css" rel="stylesheet"> + <link href="/static/css/custom.css" rel="stylesheet"> + + <!-- Custom Fonts --> + <link href="https://maxcdn.bootstrapcdn.com/font-awesome/4.1.0/css/font-awesome.min.css" rel="stylesheet" type="text/css"> + <link href='https://fonts.googleapis.com/css?family=Lora:400,700,400italic,700italic' rel='stylesheet' type='text/css'> + <link href='https://fonts.googleapis.com/css?family=Open+Sans:300italic,400italic,600italic,700italic,800italic,400,300,600,700,800' rel='stylesheet' type='text/css'> + + <!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries --> + <!-- WARNING: Respond.js doesn't work if you view the page via file:// --> + <!--[if lt IE 9]> + <script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script> + <script src="https://oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js"></script> + <![endif]--> + +</head> + +<body> +<form method="post" action="">{% csrf_token %} + + <!-- Navigation --> + <nav class="navbar navbar-default navbar-custom navbar-fixed-top"> + <div class="container-fluid"> + <!-- Brand and toggle get grouped for better mobile display --> + <div class="navbar-header page-scroll"> + <button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1"> + <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="index.html">MarkZZ</a> + </div> + + <!-- Collect the nav links, forms, and other content for toggling --> + <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1"> + <ul class="nav navbar-nav navbar-right"> + {% for n in navbar %} + <li><a href="/{{ n }}/">{{ n|presentable|title }}</a></li> + {% endfor %} + </ul> + </div> + <!-- /.navbar-collapse --> + </div> + <!-- /.container --> + </nav> + + <!-- Page Header --> + <!-- Set your background image for this header on the line below. --> + <header class="intro-header" style="background: black;"> + <div class="container"> + <div class="row"> + <div class="col-lg-8 col-lg-offset-2 col-md-10 col-md-offset-1"> + <div class="form-heading"> + {{ post_form.title }} +{# <h2 class="subheading">Problems look mighty small from 150 miles up</h2>#} +{# <span class="meta">Posted by {{ selected_post.user.username }} on {{ selected_post.created }}</span>#} + </div> + </div> + </div> + </div> + </header> + + <!-- Post Content --> + <article> + <div class="container"> + <div class="row"> + <div class="col-lg-8 col-lg-offset-2 col-md-10 col-md-offset-1"> + {{ post_form.body }} + <p><label for="{{ post_form.header_image.id_for_label }}">Header Image:</label>{{ post_form.header_image }}</p> + <p><label for="{{ post_form.comments_enabled.id_for_label }}">Comments Enabled:</label>{{ post_form.comments_enabled }}</p> + <div align="center"><input type="submit" class="btn btn-primary btn-lg" value="Save" /></div> + </div> + </div> + </div> + </article> +</form> + + <hr> + + <!-- Footer --> + <footer> + <div class="container"> + <div class="row"> + <div class="col-lg-8 col-lg-offset-2 col-md-10 col-md-offset-1"> + <ul class="list-inline text-center"> + {% for s in social_media %} + <li> + <a href="{{ s.url }}"> + <span class="fa-stack fa-lg"> + <i class="fa fa-circle fa-stack-2x"></i> + <i class="fa fa-{{ s.type }} fa-stack-1x fa-inverse"></i> + </span> + </a> + </li> + {% endfor %} + </ul> + <p class="copyright text-muted"><a rel="license" href="http://creativecommons.org/licenses/by-sa/4.0/"><img alt="Creative Commons License" style="border-width:0" src="https://i.creativecommons.org/l/by-sa/4.0/88x31.png" /></a><br />All works on this site are licensed under a <a rel="license" href="http://creativecommons.org/licenses/by-sa/4.0/">Creative Commons Attribution-ShareAlike 4.0 International License</a> unless otherwise stated.</p> + </div> + </div> + </div> + </footer> + + <!-- jQuery --> + <script src="/static/js/jquery.js"></script> + + <!-- Bootstrap Core JavaScript --> + <script src="/static/js/bootstrap.min.js"></script> + + <!-- Custom Theme JavaScript --> +{# <script src="js/clean-blog.min.js"></script>#} + +</body> + +</html> diff --git a/blog/templates/index.html b/blog/templates/index.html new file mode 100644 index 0000000..dfff388 --- /dev/null +++ b/blog/templates/index.html @@ -0,0 +1,151 @@ +{% load replace %} +{% load staticfiles %} +<!DOCTYPE html> +<html lang="en"> + +<head> + + <meta charset="utf-8"> + <meta http-equiv="X-UA-Compatible" content="IE=edge"> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <meta name="description" content=""> + <meta name="author" content=""> + + <title>MarkZZ - Blog</title> + + <!-- Bootstrap Core CSS --> + <link href="{% static 'css/bootstrap.min.css' %}" rel="stylesheet"> + + <!-- Custom CSS --> + <link href="{% static 'css/clean-blog.min.css' %}" rel="stylesheet"> + <link href="{% static 'css/custom.css' %}" rel="stylesheet"> + + <!-- Custom Fonts --> + <link href="https://maxcdn.bootstrapcdn.com/font-awesome/4.1.0/css/font-awesome.min.css" rel="stylesheet" type="text/css"> + <link href='https://fonts.googleapis.com/css?family=Lora:400,700,400italic,700italic' rel='stylesheet' type='text/css'> + <link href='https://fonts.googleapis.com/css?family=Open+Sans:300italic,400italic,600italic,700italic,800italic,400,300,600,700,800' rel='stylesheet' type='text/css'> + + <!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries --> + <!-- WARNING: Respond.js doesn't work if you view the page via file:// --> + <!--[if lt IE 9]> + <script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script> + <script src="https://oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js"></script> + <![endif]--> + +</head> + +<body> + + <!-- Navigation --> + <nav class="navbar navbar-default navbar-custom navbar-fixed-top"> + <div class="container-fluid"> + <!-- Brand and toggle get grouped for better mobile display --> + <div class="navbar-header page-scroll"> + <button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1"> + <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="/">MarkZZ</a> + </div> + + <!-- Collect the nav links, forms, and other content for toggling --> + <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1"> + <ul class="nav navbar-nav navbar-right"> + {% for n in navbar %} + <li><a href="/{{ n }}/">{{ n|presentable|title }}</a></li> + {% endfor %} + </ul> + </div> + <!-- /.navbar-collapse --> + </div> + <!-- /.container --> + </nav> + + <!-- Page Header --> + <!-- Set your background image for this header on the line below. --> + <header class="intro-header" style="background: {{ blog_page.header_image }};"> + <div class="container"> + <div class="row"> + <div class="col-lg-8 col-lg-offset-2 col-md-10 col-md-offset-1"> + <div class="site-heading"> + <h1>{{ blog_page.title }}</h1> + <hr class="small"> + <span class="subheading">{{ blog_page.subtitle }}</span> + </div> + </div> + </div> + </div> + </header> + + <!-- Main Content --> + <div class="container"> + <div class="row"> + <div class="col-lg-8 col-lg-offset-2 col-md-10 col-md-offset-1"> + {% for p in posts %} + <div class="post-preview"> + <a href="/blog/post/{{ p.id }}/"> + <h2 class="post-title"> + {{ p.title }} + </h2> + <h3 class="post-subtitle"> + {{ p.body|striptags|truncatewords:50 }} + </h3> + </a> + <p class="post-meta">Posted by <b>{{ p.user.username }}</b> on {{ p.created }}</p> + </div> + <hr> + {% endfor %} + <!-- Pager --> + <ul class="pager"> + <li class="next"> + <a href="/blog/page/{{ next }}">Older Posts →</a> + </li> + {% if prev %} + <li class="next"> + <a href="/blog/page/{{ prev }}">← Newer Posts</a> + </li> + {% endif %} + </ul> + </div> + </div> + </div> + + <hr> + + <!-- Footer --> + <footer> + <div class="container"> + <div class="row"> + <div class="col-lg-8 col-lg-offset-2 col-md-10 col-md-offset-1"> + <ul class="list-inline text-center"> + {% for s in social_media %} + <li> + <a href="{{ s.url }}"> + <span class="fa-stack fa-lg"> + <i class="fa fa-circle fa-stack-2x"></i> + <i class="fa fa-{{ s.type }} fa-stack-1x fa-inverse"></i> + </span> + </a> + </li> + {% endfor %} + </ul> + <p class="copyright text-muted"><a rel="license" href="http://creativecommons.org/licenses/by/4.0/"><img alt="Creative Commons License" style="border-width:0" src="https://i.creativecommons.org/l/by/4.0/88x31.png" /></a><br />All works on this site are licensed under a <a rel="license" href="http://creativecommons.org/licenses/by/4.0/">Creative Commons Attribution 4.0 International License</a><br />unless otherwise stated.</p> + </div> + </div> + </div> + </footer> + + <!-- jQuery --> + <script src="/static/js/jquery.js"></script> + + <!-- Bootstrap Core JavaScript --> + <script src="/static/js/bootstrap.min.js"></script> + + <!-- Custom Theme JavaScript --> +{# <script src="js/clean-blog.min.js"></script>#} + +</body> + +</html> diff --git a/blog/templates/post.html b/blog/templates/post.html new file mode 100644 index 0000000..affb32a --- /dev/null +++ b/blog/templates/post.html @@ -0,0 +1,156 @@ +{% load replace %} +{% load staticfiles %} +<!DOCTYPE html> +<html lang="en"> + +<head> + + <meta charset="utf-8"> + <meta http-equiv="X-UA-Compatible" content="IE=edge"> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <meta name="description" content=""> + <meta name="author" content=""> + + <title>MarkZZ - Blog - {{ selected_post.title }}</title> + + <!-- Bootstrap Core CSS --> + <link href="/static/css/bootstrap.min.css" rel="stylesheet"> + + <!-- Custom CSS --> + <link href="/static/css/clean-blog.min.css" rel="stylesheet"> + + <!-- Custom Fonts --> + <link href="https://maxcdn.bootstrapcdn.com/font-awesome/4.1.0/css/font-awesome.min.css" rel="stylesheet" type="text/css"> + <link href='https://fonts.googleapis.com/css?family=Lora:400,700,400italic,700italic' rel='stylesheet' type='text/css'> + <link href='https://fonts.googleapis.com/css?family=Open+Sans:300italic,400italic,600italic,700italic,800italic,400,300,600,700,800' rel='stylesheet' type='text/css'> + + <!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries --> + <!-- WARNING: Respond.js doesn't work if you view the page via file:// --> + <!--[if lt IE 9]> + <script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script> + <script src="https://oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js"></script> + <![endif]--> + +</head> + +<body> + + <!-- Navigation --> + <nav class="navbar navbar-default navbar-custom navbar-fixed-top"> + <div class="container-fluid"> + <!-- Brand and toggle get grouped for better mobile display --> + <div class="navbar-header page-scroll"> + <button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1"> + <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="/">MarkZZ</a> + </div> + + <!-- Collect the nav links, forms, and other content for toggling --> + <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1"> + <ul class="nav navbar-nav navbar-right"> + {% for n in navbar %} + <li><a href="/{{ n }}/">{{ n|presentable|title }}</a></li> + {% endfor %} + </ul> + </div> + <!-- /.navbar-collapse --> + </div> + <!-- /.container --> + </nav> + + <!-- Page Header --> + <!-- Set your background image for this header on the line below. --> + <header class="intro-header" style="background: {{ selected_post.header_image }};"> + <div class="container"> + <div class="row"> + <div class="col-lg-8 col-lg-offset-2 col-md-10 col-md-offset-1"> + <div class="post-heading"> + <h1>{{ selected_post.title }}</h1> +{# <h2 class="subheading">Problems look mighty small from 150 miles up</h2>#} + <span class="meta">Posted by <b>{{ selected_post.user.username }}</b> on {{ selected_post.created }}</span> + </div> + </div> + </div> + </div> + </header> + + <!-- Post Content --> + <article> + <div class="container"> + <div class="row"> + <div class="col-lg-8 col-lg-offset-2 col-md-10 col-md-offset-1"> + {{ selected_post.body|safe }} + </div> + </div> + </div> + </article> + + <hr> + + <div class="container"> + <div class="col-lg-8 col-lg-offset-2 col-md-10 col-md-offset-1"> + <h4>Comments</h4> + <table class="table table-hover"> + <tr><th>Name</th><th>Comment</th></tr> + {% for x in comments %} + <tr><td><b>{{ x.name }}</b><br><sub>{{ x.timestamp|date:"Y-m-d H:i" }}</sub></td><td>{{ x.comment }}</td></tr> + {% endfor %} + </table> + </div> + </div> + + <hr> + <div class="container"> + <div class="col-lg-8 col-lg-offset-2 col-md-10 col-md-offset-1"> + <h4>New Comment</h4> + <form method="POST" action="" class="form form-inline">{% csrf_token %} + <table class="table"> + {{ comment_form.as_table }} + </table> + <div align="center"><input type="submit" class="btn btn-primary btn-lg" value="Add Comment" /></div> + </form> + </div> + </div> + + + <!-- Footer --> + <footer> + <div class="container"> + <div class="row"> + <div class="col-lg-8 col-lg-offset-2 col-md-10 col-md-offset-1"> + <ul class="list-inline text-center"> + {% for s in social_media %} + <li> + <a href="{{ s.url }}"> + <span class="fa-stack fa-lg"> + <i class="fa fa-circle fa-stack-2x"></i> + <i class="fa fa-{{ s.type }} fa-stack-1x fa-inverse"></i> + </span> + </a> + </li> + {% endfor %} + </ul> + <p class="copyright text-muted"><a rel="license" href="http://creativecommons.org/licenses/by/4.0/"><img alt="Creative Commons License" style="border-width:0" src="https://i.creativecommons.org/l/by/4.0/88x31.png" /></a><br />All works on this site are licensed under a <a rel="license" href="http://creativecommons.org/licenses/by/4.0/">Creative Commons Attribution 4.0 International License</a><br />unless otherwise stated.</p> + </div> + </div> + </div> + </footer> + + <!-- jQuery --> + <script src="/static/js/jquery.js"></script> + + <!-- Bootstrap Core JavaScript --> + <script src="/static/js/bootstrap.min.js"></script> + + <script type="text/javascript" src="https://www.google.com/recaptcha/api/js/recaptcha_ajax.js"></script> + + <!-- Custom Theme JavaScript --> +{# <script src="js/clean-blog.min.js"></script>#} + +</body> + +</html> diff --git a/blog/templates/repo.html b/blog/templates/repo.html new file mode 100644 index 0000000..801b1dc --- /dev/null +++ b/blog/templates/repo.html @@ -0,0 +1,140 @@ +{% load replace %} +{% load staticfiles %} +<!DOCTYPE html> +<html lang="en"> + +<head> + + <meta charset="utf-8"> + <meta http-equiv="X-UA-Compatible" content="IE=edge"> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <meta name="description" content=""> + <meta name="author" content=""> + + <title>MarkZZ {% if package_page.name %} - {% endif %}{{ package_page.name|presentable|title }}</title> + + <!-- Bootstrap Core CSS --> + <link href="/static/css/bootstrap.min.css" rel="stylesheet"> + + <!-- Custom CSS --> + <link href="/static/css/clean-blog.min.css" rel="stylesheet"> + <link href="/static/css/custom.css" rel="stylesheet"> + + <!-- Custom Fonts --> + <link href="https://maxcdn.bootstrapcdn.com/font-awesome/4.1.0/css/font-awesome.min.css" rel="stylesheet" type="text/css"> + <!--<link href="/static/css/font-awesome.min.css" rel="stylesheet" type="text/css"> + <link href="/static/css/font1.css" rel="stylesheet" type="text/css"> + <link href="/static/css/font2.css" rel="stylesheet" type="text/css">--> + + <link href='https://fonts.googleapis.com/css?family=Lora:400,700,400italic,700italic' rel='stylesheet' type='text/css'> + <link href='https://fonts.googleapis.com/css?family=Open+Sans:300italic,400italic,600italic,700italic,800italic,400,300,600,700,800' rel='stylesheet' type='text/css'> + + <!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries --> + <!-- WARNING: Respond.js doesn't work if you view the page via file:// --> + <!--[if lt IE 9]> + <script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script> + <script src="https://oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js"></script> + <![endif]--> + +</head> + +<body> + + <!-- Navigation --> + <nav class="navbar navbar-default navbar-custom navbar-fixed-top"> + <div class="container-fluid"> + <!-- Brand and toggle get grouped for better mobile display --> + <div class="navbar-header page-scroll"> + <button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1"> + <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="/">MarkZZ</a> + </div> + + <!-- Collect the nav links, forms, and other content for toggling --> + <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1"> + <ul class="nav navbar-nav navbar-right"> + {% for n in navbar %} + <li><a href="/{{ n }}/">{{ n|presentable|title }}</a></li> + {% endfor %} + </ul> + </div> + <!-- /.navbar-collapse --> + </div> + <!-- /.container --> + </nav> + + <!-- Page Header --> + <!-- Set your background image for this header on the line below. --> + <header class="intro-header" style="background: {{ package_page.header_image }}"> + <div class="container"> + <div class="row"> + <div class="col-lg-8 col-lg-offset-2 col-md-10 col-md-offset-1"> + <div class="page-heading"> + <h1>{{ package_page.title }}</h1> + {% if package_page.subtitle %} + <hr class="small"> + <span class="subheading">{{ package_page.subtitle }}</span> + {% endif %} + </div> + </div> + </div> + </div> + </header> + + <!-- Main Content --> + <div class="container"> + <div class="row"> + <div class="col-lg-12"> + <table class="table"> + <tr><th>Arch</th><th>Name</th><th>Description</th><th>Version</th><th></th></tr> + {% for x in packages %} + <tr><td>{{ x.arch }}</td><td>{{ x.name }}</td><td>{{ x.description }}</td> + <td>{{ x.pkgver }}-{{ x.pkgrel }}</td> + <td><a href="{{ x.download }}">Download</a> (<a href="{{ x.download }}.sig">sig</a>)</td></tr> + {% endfor %} + </table> + </div> + </div> + </div> + + <hr> + + <!-- Footer --> + <footer> + <div class="container"> + <div class="row"> + <div class="col-lg-8 col-lg-offset-2 col-md-10 col-md-offset-1"> + <ul class="list-inline text-center"> + {% for s in social_media %} + <li> + <a href="{{ s.url }}"> + <span class="fa-stack fa-lg"> + <i class="fa fa-circle fa-stack-2x"></i> + <i class="fa fa-{{ s.type }} fa-stack-1x fa-inverse"></i> + </span> + </a> + </li> + {% endfor %} + </ul> + <p class="copyright text-muted"><a rel="license" href="http://creativecommons.org/licenses/by/4.0/"><img alt="Creative Commons License" style="border-width:0" src="https://i.creativecommons.org/l/by/4.0/88x31.png" /></a><br />All works on this site are licensed under a <a rel="license" href="http://creativecommons.org/licenses/by/4.0/">Creative Commons Attribution 4.0 International License</a><br />unless otherwise stated.</p> + </div> + </div> + </div> + </footer> + + <!-- jQuery --> + <script src="/static/js/jquery.js"></script> + + <!-- Bootstrap Core JavaScript --> + <script src="/static/js/bootstrap.min.js"></script> + + <!-- Custom Theme JavaScript --> + <script src="/static/js/clean-blog.min.js"></script> + +</body> + +</html> diff --git a/blog/templates/rindex.html b/blog/templates/rindex.html new file mode 100644 index 0000000..51b46b8 --- /dev/null +++ b/blog/templates/rindex.html @@ -0,0 +1,142 @@ +{% load replace %} +{% load staticfiles %} +<!DOCTYPE html> +<html lang="en"> + +<head> + + <meta charset="utf-8"> + <meta http-equiv="X-UA-Compatible" content="IE=edge"> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <meta name="description" content=""> + <meta name="author" content=""> + + <title>MarkZZ {% if page_content.name %} - {% endif %}{{ page_content.name|presentable|title }}</title> + + <!-- Bootstrap Core CSS --> + <link href="/static/css/bootstrap.min.css" rel="stylesheet"> + + <!-- Custom CSS --> + <link href="/static/css/clean-blog.min.css" rel="stylesheet"> + <link href="/static/css/custom.css" rel="stylesheet"> + + <!-- Custom Fonts --> + <link href="https://maxcdn.bootstrapcdn.com/font-awesome/4.1.0/css/font-awesome.min.css" rel="stylesheet" type="text/css"> + <!--<link href="/static/css/font-awesome.min.css" rel="stylesheet" type="text/css"> + <link href="/static/css/font1.css" rel="stylesheet" type="text/css"> + <link href="/static/css/font2.css" rel="stylesheet" type="text/css">--> + + <link href='https://fonts.googleapis.com/css?family=Lora:400,700,400italic,700italic' rel='stylesheet' type='text/css'> + <link href='https://fonts.googleapis.com/css?family=Open+Sans:300italic,400italic,600italic,700italic,800italic,400,300,600,700,800' rel='stylesheet' type='text/css'> + + <!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries --> + <!-- WARNING: Respond.js doesn't work if you view the page via file:// --> + <!--[if lt IE 9]> + <script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script> + <script src="https://oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js"></script> + <![endif]--> + +</head> + +<body> + + <!-- Navigation --> + <nav class="navbar navbar-default navbar-custom navbar-fixed-top"> + <div class="container-fluid"> + <!-- Brand and toggle get grouped for better mobile display --> + <div class="navbar-header page-scroll"> + <button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1"> + <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="/">MarkZZ</a> + </div> + + <!-- Collect the nav links, forms, and other content for toggling --> + <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1"> + <ul class="nav navbar-nav navbar-right"> + {% for n in navbar %} + <li><a href="/{{ n }}/">{{ n|presentable|title }}</a></li> + {% endfor %} + </ul> + </div> + <!-- /.navbar-collapse --> + </div> + <!-- /.container --> + </nav> + + <!-- Page Header --> + <!-- Set your background image for this header on the line below. --> + <header class="intro-header" style="background: {{ package_page.header_image }}"> + <div class="container"> + <div class="row"> + <div class="col-lg-8 col-lg-offset-2 col-md-10 col-md-offset-1"> + <div class="page-heading"> + <h1>{{ package_page.title }}</h1> + {% if package_page.subtitle %} + <hr class="small"> + <span class="subheading">{{ package_page.subtitle }}</span> + {% endif %} + </div> + </div> + </div> + </div> + </header> + + <!-- Main Content --> + <div class="container"> + <div class="row"> + <div class="col-lg-8 col-lg-offset-2 col-md-10 col-md-offset-1"> + {% for x in operating_systems %} + <table class="table"> + <tr><th>{{ x.operating_system }}</th></tr> + {% for y in repositories %} + <tr><td>{% if y.package_type.operating_system == x.operating_system %} + <a href="/packages/{{ y.package_type.codename }}/{{ y.name }}">{{ y.name }}</a> + {% endif %}</td></tr> + {% endfor %} + </table> + {% endfor %} + </div> + </div> + </div> + + <hr> + + <!-- Footer --> + <footer> + <div class="container"> + <div class="row"> + <div class="col-lg-8 col-lg-offset-2 col-md-10 col-md-offset-1"> + <ul class="list-inline text-center"> + {% for s in social_media %} + <li> + <a href="{{ s.url }}"> + <span class="fa-stack fa-lg"> + <i class="fa fa-circle fa-stack-2x"></i> + <i class="fa fa-{{ s.type }} fa-stack-1x fa-inverse"></i> + </span> + </a> + </li> + {% endfor %} + </ul> + <p class="copyright text-muted"><a rel="license" href="http://creativecommons.org/licenses/by/4.0/"><img alt="Creative Commons License" style="border-width:0" src="https://i.creativecommons.org/l/by/4.0/88x31.png" /></a><br />All works on this site are licensed under a <a rel="license" href="http://creativecommons.org/licenses/by/4.0/">Creative Commons Attribution 4.0 International License</a><br />unless otherwise stated.</p> + </div> + </div> + </div> + </footer> + + <!-- jQuery --> + <script src="/static/js/jquery.js"></script> + + <!-- Bootstrap Core JavaScript --> + <script src="/static/js/bootstrap.min.js"></script> + + <!-- Custom Theme JavaScript --> + <script src="/static/js/clean-blog.min.js"></script> + +</body> + +</html> |
