diff options
Diffstat (limited to 'templates')
-rw-r--r-- | templates/.gitignore | 1 | ||||
-rw-r--r-- | templates/admin/login.html | 50 | ||||
-rw-r--r-- | templates/base.html | 61 | ||||
-rw-r--r-- | templates/blog/base.html | 19 | ||||
-rw-r--r-- | templates/blog/posts.html | 42 | ||||
-rw-r--r-- | templates/blog/rss.xml | 25 | ||||
-rw-r--r-- | templates/blog/tags.html | 19 | ||||
-rw-r--r-- | templates/home.html | 87 | ||||
-rw-r--r-- | templates/pages/index.html | 8 | ||||
-rw-r--r-- | templates/projects/base.html | 3 | ||||
-rw-r--r-- | templates/projects/project_detail.html | 52 | ||||
-rw-r--r-- | templates/projects/project_list.html | 20 |
12 files changed, 0 insertions, 387 deletions
diff --git a/templates/.gitignore b/templates/.gitignore deleted file mode 100644 index c46f106..0000000 --- a/templates/.gitignore +++ /dev/null @@ -1 +0,0 @@ -html_pages diff --git a/templates/admin/login.html b/templates/admin/login.html deleted file mode 100644 index eba271f..0000000 --- a/templates/admin/login.html +++ /dev/null @@ -1,50 +0,0 @@ -{% extends "base.html" %} -{% load i18n %} - -{% block extrastyle %}{% load adminmedia %}{{ block.super }}<link rel="stylesheet" type="text/css" href="/static/css/login.css" />{% endblock %} - -{% block bodyclass %}login{% endblock %} - -{% block nav-global %}{% endblock %} - -{% block content_title %}{% endblock %} - -{% block breadcrumbs %}{% endblock %} - -{% block content %} -{% if form.errors and not form.non_field_errors and not form.this_is_the_login_form.errors %} -<p class="errornote"> -{% blocktrans count form.errors.items|length as counter %}Please correct the error below.{% plural %}Please correct the errors below.{% endblocktrans %} -</p> -{% endif %} - -{% if form.non_field_errors or form.this_is_the_login_form.errors %} -{% for error in form.non_field_errors|add:form.this_is_the_login_form.errors %} -<p class="errornote"> - {{ error }} -</p> -{% endfor %} -{% endif %} - -<div id="content-main"> -<form action="{{ app_path }}" method="post" id="login-form">{% csrf_token %} - <div class="form-row"> - {% if not form.this_is_the_login_form.errors %}{{ form.username.errors }}{% endif %} - <label for="id_username" class="required">{% trans 'Username:' %}</label> {{ form.username }} - </div> - <div class="form-row"> - {% if not form.this_is_the_login_form.errors %}{{ form.password.errors }}{% endif %} - <label for="id_password" class="required">{% trans 'Password:' %}</label> {{ form.password }} - <input type="hidden" name="this_is_the_login_form" value="1" /> - <input type="hidden" name="next" value="{{ next }}" /> - </div> - <div class="submit-row"> - <label> </label><input type="submit" value="{% trans 'Log in' %}" /> - </div> -</form> - -<script type="text/javascript"> -document.getElementById('id_username').focus() -</script> -</div> -{% endblock %} diff --git a/templates/base.html b/templates/base.html deleted file mode 100644 index c6d6c26..0000000 --- a/templates/base.html +++ /dev/null @@ -1,61 +0,0 @@ -<!-- -*- Mode: django-html-mumamo -*- --> - -<!DOCTYPE html> -<html> - <head> - <title>ryuslash | {% block subtitle %}linux and coding{% endblock %}</title> - <link href="/static/css/main.css" type="text/css" rel="stylesheet" /> - {% block extrastyle %}{% endblock %} - </head> - <body> - <div id="header"> - <img id="logo" src="/static/img/logo.png" width="100" height="100" /> - - <h1 id="title"> - <span id="ryu">ryu</span><span id="slash">slash</span> - </h1> - </div> - - <div id="subheader"> - <tt>This might just be my website.</tt> - </div> - - <div id="container"> - <div id="body"> - <div id="menu"> - <div class="container"> - <div class="header"> - root - </div> - - <a href="/">home</a><br /> - <a href="/blog/">blog</a><br /> - <a href="/Projects/">projects</a><br /> - </div> - - {% block submenu %}{% endblock %} - </div> - - <div id="content"> - {% block content %} - {% endblock %} - <div class="clear"></div> - </div> - </div> - - <div id="footer"> - Created by <a href="http://ryuslash.org">Tom Willemsen</a> - - <div class="emblems"> - <a href="http://www.djangoproject.com"> - <img src="/static/img/django.gif" alt="django emblem" /> - </a> - - <a href="http://www.catb.org/hacker-emblem/"> - <img src="/static/img/hacker.png" alt="hacker emblem" /> - </a> - </div> - </div> - </div> - </body> -</html> diff --git a/templates/blog/base.html b/templates/blog/base.html deleted file mode 100644 index e5caf88..0000000 --- a/templates/blog/base.html +++ /dev/null @@ -1,19 +0,0 @@ -{% extends "base.html" %} - -{% block subtitle %} - blog -{% endblock %} - -{% block extrastyle %} -<link href="/blog/atom/" type="application/atom+xml" rel="alternate" - title="Blog ATOM feed" /> -{% endblock %} - -{% block submenu %} -<div class="container"> - <div class="header"> - blog - </div> - <a href="/blog/atom/">feed</a> -</div> -{% endblock %} diff --git a/templates/blog/posts.html b/templates/blog/posts.html deleted file mode 100644 index d9bc72d..0000000 --- a/templates/blog/posts.html +++ /dev/null @@ -1,42 +0,0 @@ -<!-- -*- Mode: django-html-mumamo -*- --> - -{% extends "blog/base.html" %} - -{% block content %} - {% if postlist %} - {% for post in postlist %} - <div class="container"> - <div class="header"> - <a href="/blog/post/{{ post.pk }}/"> - <span class="title">{{ post.subject }}</span> - </a> - </div> - {% autoescape off %} - {{ post.body|linebreaksbr }} - {% endautoescape %} - <div class="footer"> - Date posted: {{ post.postdate|date:"r" }} - Tags: - {% for tag in post.tags.all %} - {% if forloop.counter > 1 %}, {% endif %} - <a href="/blog/tag/{{ tag.name }}">{{ tag.name }}</a> - {% empty %} - None - {% endfor %} - </div> - </div> - {% endfor %} - - <div class="navigation"> - {% if has_next %} - <a class="next" href="/blog/{{ next_page }}/">next</a> - {% endif %} - - {% if has_previous %} - <a class="previous" href="/blog/{{ previous_page }}/">previous</a> - {% endif %} - </div> - {% else %} - Yeah I know, I'm boring. - {% endif %} -{% endblock %} diff --git a/templates/blog/rss.xml b/templates/blog/rss.xml deleted file mode 100644 index 9cc6df3..0000000 --- a/templates/blog/rss.xml +++ /dev/null @@ -1,25 +0,0 @@ -<?xml version="1.0" encoding="UTF-8" ?> -<feed xmlns="http://www.w3.org/2005/Atom"> - <title>ryuslash.org</title> - <link href="http://ryuslash.org/feed/rss/" rel="self" /> - <link href="http://ryuslash.org/" /> - <id>http://ryuslash.org/blog/</id> - <author> - <name>Tom Willemsen</name> - </author> - <updated>2011-10-29T23:16:00+01:00</updated> - - {% for post in postlist %} - <entry> - <title>{{ post.subject }}</title> - <link href="http://ryuslash.org/blog/post/{{ post.pk }}/" /> - <id>http://ryuslash.org/blog/post/{{ post.pk }}/</id> - <updated>{{ post.postdate|date:"c" }}</updated> - <content type="xhtml" xml:base="http://ryuslash.org/"> - <div xmlns="http://www.w3.org/1999/xhtml"> - {{ post.body|linebreaksbr }} - </div> - </content> - </entry> - {% endfor %} -</feed> diff --git a/templates/blog/tags.html b/templates/blog/tags.html deleted file mode 100644 index a180634..0000000 --- a/templates/blog/tags.html +++ /dev/null @@ -1,19 +0,0 @@ -<!-- -*- Mode: django-html-mumamo -*- --> - -{% extends "blog/base.html" %} - -{% block subtitle %} - blog/tags -{% endblock %} - -{% block content %} - <ul> - {% for tag in taglist %} - <li> - <a href="/blog/tag/{{ tag.name }}">{{ tag.name }}</a> - </li> - {% empty %} - Sorry, no tags here. - {% endfor %} - </ul> -{% endblock %} diff --git a/templates/home.html b/templates/home.html deleted file mode 100644 index e5c2fed..0000000 --- a/templates/home.html +++ /dev/null @@ -1,87 +0,0 @@ -{% extends "base.html" %} - -{% block content %} - This will, hopefully, eventually, become my website. - <strong>Rejoice!</strong> - <p> - Some places you can already find me: - <ul> - <li> - <a href="https://diasp.org/u/ryuslash">Diaspora*</a> - I'm here - all the time. - </li> - <li> - <a href="http://identi.ca/ryuslash">Identi.ca</a> - Don't post - much, but I'm usually there. - </li> - <li> - <a href="http://stackoverflow.com/users/459915/slash">Stack Overflow</a> - - Don't really do much there, but I did just get my - first reputation points. - <br/> - <a href="http://stackoverflow.com/users/459915/slash"> - <img src="http://stackoverflow.com/users/flair/459915.png?theme=dark" - width="208" height="58" - alt="profile for slash at Stack Overflow, Q&A - for professional and enthusiast - programmers" - title="profile for slash at Stack Overflow, Q&A - for professional and enthusiast programmers" /> - </a> - </li> - </ul> - </p> - - {% for activity in activitylist %} - <div class="activity_{% cycle 'even' 'uneven' %} - {% if forloop.last %}activity_last{% endif %}"> - {{ activity.date|date:'d M H:i:' }} - {% if activity.actcategory == "blog" %} - {% if activity.acttype == "add" %} - I ranted about - {% endif %} - {% if activity.acttype == "edit" %} - I changed my opinion about - {% endif %} - {% if activity.acttype == "delete" %} - I lost my opinion about - {% endif %} - {% if activity.objpk %} - <a href="/blog/post/{{ activity.objpk }}/"> - {% endif %} - {% endif %} - {% if activity.actcategory == "project" %} - {% if activity.acttype == "add" %} - I started a project named - {% endif %} - {% if activity.acttype == "edit" %} - I updated the info on project - {% endif %} - {% if activity.acttype == "delete" %} - I quit project - {% endif %} - {% if activity.objpk %} - <a href="/projects/{{ activity.objpk }}/"> - {% endif %} - {% endif %} - {% if activity.actcategory == "link" %} - {% if activity.acttype == "add" %} - I found - {% endif %} - {% if activity.acttype == "edit" %} - I corrected - {% endif %} - {% if activity.acttype == "delete" %} - I unlinked - {% endif %} - {% if activity.objpk %} - <a href="/links/"> - {% endif %} - {% endif %} - {{ activity.actdescription }} - {% if activity.objpk %} - </a> - {% endif %} - </div> - {% endfor %} -{% endblock %} diff --git a/templates/pages/index.html b/templates/pages/index.html deleted file mode 100644 index 0f295e7..0000000 --- a/templates/pages/index.html +++ /dev/null @@ -1,8 +0,0 @@ -{% extends "base.html" %} - -{% block content %} -<div class="markdown"> - {% include page %} -</div> -<br/> -{% endblock %} diff --git a/templates/projects/base.html b/templates/projects/base.html deleted file mode 100644 index d3654cc..0000000 --- a/templates/projects/base.html +++ /dev/null @@ -1,3 +0,0 @@ -<!-- -*- Mode: django-html-mumamo -*- --> - -{% extends "base.html" %} diff --git a/templates/projects/project_detail.html b/templates/projects/project_detail.html deleted file mode 100644 index 1c19f4f..0000000 --- a/templates/projects/project_detail.html +++ /dev/null @@ -1,52 +0,0 @@ -<!-- -*- Mode: django-html-mumamo -*- --> - -{% extends "projects/base.html" %} - -{% block subtitle %} - projects/{{ object.name }} -{% endblock %} - -{% block content %} - <div class="container"> - <div class="header"> - <span class="title">{{ object.name }}</span> - <span class="tagline">{{ object.tagline }}</span> - </div> - - - <p> - {% autoescape off %} - {{ object.description|linebreaksbr }} - {% endautoescape %} - </p> - </div> - - <div class="container"> - <div class="header"> - <span class="title">Stats</title> - </div> - {% for key, value in stats.items %} - {% if value %} - {{ key }}: {{ value }}<br/> - {% endif %} - {% endfor %} - </div> - - <div class="container"> - <div class="header"> - <span class="title">Links</title> - </div> - {% for key, value in links.items %} - {% if value %} - <a href="{{ value }}">{{ key }}</a><br/> - {% endif %} - {% endfor %} - </div> - - {% if object.screenshots %} - <p> - Screenshots here - </p> - {% endif %} - -{% endblock %} diff --git a/templates/projects/project_list.html b/templates/projects/project_list.html deleted file mode 100644 index 1ab750c..0000000 --- a/templates/projects/project_list.html +++ /dev/null @@ -1,20 +0,0 @@ -<!-- -*- Mode: django-html-mumamo -*- --> - -{% extends "projects/base.html" %} - -{% block subtitle %} - projects -{% endblock %} - -{% block content %} - {% if object_list %} - <dl> - {% for project in object_list %} - <dt><a href="/projects/{{ project.slug }}/">{{ project.name }}</a></dt> - <dd>{{ project.tagline }}</dd> - {% endfor %} - </dl> - {% else %} - Well, you know me, I'm lazy. Got nothing going on. - {% endif %} -{% endblock %} |