2013-02-13 20:42:54 -08:00
|
|
|
{% extends "base.html" %}
|
|
|
|
|
2016-11-01 09:59:35 -07:00
|
|
|
{% load humanize static %}
|
2013-02-17 21:12:13 -08:00
|
|
|
|
2013-02-13 20:42:54 -08:00
|
|
|
{% block sub-header %}{% endblock %}
|
|
|
|
{% block keyboard-shortcuts %}{% endblock %}
|
|
|
|
{% block inline-js %}{% endblock %}
|
|
|
|
{% block snipt-templates %}{% endblock %}
|
|
|
|
{% block preload %}{% endblock %}
|
|
|
|
{% block main-edit %}{% endblock %}
|
|
|
|
{% block body-class %}homepage{% endblock %}
|
|
|
|
{% block html-class %}homepage{% endblock %}
|
2013-02-21 21:29:41 -08:00
|
|
|
{% block css %}
|
2013-02-23 17:11:15 -08:00
|
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
2013-02-21 21:29:41 -08:00
|
|
|
<link rel="stylesheet" type="text/css" href="{{ STATIC_URL }}css/bootstrap-responsive.min.css" />
|
|
|
|
{% endblock %}
|
2013-02-13 20:42:54 -08:00
|
|
|
|
2013-02-15 19:57:45 -08:00
|
|
|
{% block header %}
|
|
|
|
<header class="main">
|
2013-02-21 18:30:03 -08:00
|
|
|
<div class="container">
|
|
|
|
<div class="row">
|
2013-02-21 21:26:47 -08:00
|
|
|
<h1 class="main-logo span2">
|
2013-02-17 21:12:13 -08:00
|
|
|
<a href="/">snip<span>t</span></a>
|
|
|
|
</h1>
|
2013-02-21 21:26:47 -08:00
|
|
|
<nav class="span6 offset4">
|
2013-02-17 21:12:13 -08:00
|
|
|
<ul>
|
2013-05-08 13:42:00 -07:00
|
|
|
{% if request.user.is_authenticated %}
|
|
|
|
<li>
|
|
|
|
<a href="/{{ request.user.username }}/">My snipts</a>
|
|
|
|
</li>
|
|
|
|
{% endif %}
|
2013-02-17 21:12:13 -08:00
|
|
|
<li>
|
2013-05-08 13:42:00 -07:00
|
|
|
<a href="/public/">Public snipts</a>
|
2013-02-17 21:12:13 -08:00
|
|
|
</li>
|
|
|
|
<li>
|
|
|
|
<a href="/search/">Search</a>
|
|
|
|
</li>
|
2013-05-08 13:42:00 -07:00
|
|
|
{% if not request.user.is_authenticated %}
|
|
|
|
<li>
|
|
|
|
<a class="button" href="/login/">Log in</a>
|
|
|
|
</li>
|
|
|
|
{% endif %}
|
2013-02-17 21:12:13 -08:00
|
|
|
</ul>
|
|
|
|
</nav>
|
|
|
|
</div>
|
2013-02-21 18:30:03 -08:00
|
|
|
<div class="row">
|
|
|
|
<div class="sub span12">
|
2016-06-20 08:47:39 -07:00
|
|
|
<h2>Code snippets for teams and individuals.</h2>
|
2013-02-21 18:30:03 -08:00
|
|
|
<h3>Store, share, blog, learn.</h3>
|
|
|
|
</div>
|
2013-02-17 21:12:13 -08:00
|
|
|
</div>
|
2013-02-15 19:57:45 -08:00
|
|
|
</div>
|
|
|
|
</header>
|
2013-02-21 18:30:03 -08:00
|
|
|
{% endblock %}
|
|
|
|
{% block main %}
|
2013-02-17 21:12:13 -08:00
|
|
|
<section class="coders">
|
2013-02-21 21:26:47 -08:00
|
|
|
<div class="container">
|
|
|
|
<div class="row">
|
|
|
|
<div class="span12">
|
2019-01-21 15:21:25 -08:00
|
|
|
<h4>This is a private instance of <a href="https://github.com/siftie/snippets">Siftie Snippets</a>.</h4>
|
2013-02-21 21:26:47 -08:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
2013-05-10 22:13:10 -07:00
|
|
|
{% if request.user.is_authenticated %}
|
|
|
|
<a href="/{{ request.user.username }}/" class="button">My snipts</a>
|
2016-11-03 07:27:08 -07:00
|
|
|
{% else %}
|
|
|
|
<a href="/login/" class="button">Log in</a>
|
2013-05-10 22:13:10 -07:00
|
|
|
{% endif %}
|
2013-02-21 18:30:03 -08:00
|
|
|
</section>
|
2013-02-13 20:42:54 -08:00
|
|
|
{% endblock %}
|