summaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
Diffstat (limited to 'templates')
-rw-r--r--templates/admin/login.html50
-rw-r--r--templates/base.html44
-rw-r--r--templates/blog/base.html5
-rw-r--r--templates/blog/posts.html42
-rw-r--r--templates/blog/tags.html19
-rw-r--r--templates/home.html88
-rw-r--r--templates/links/links.html20
-rw-r--r--templates/projects/base.html3
-rw-r--r--templates/projects/project_detail.html52
-rw-r--r--templates/projects/project_list.html20
10 files changed, 343 insertions, 0 deletions
diff --git a/templates/admin/login.html b/templates/admin/login.html
new file mode 100644
index 0000000..eba271f
--- /dev/null
+++ b/templates/admin/login.html
@@ -0,0 +1,50 @@
+{% 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>&nbsp;</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
new file mode 100644
index 0000000..e910a76
--- /dev/null
+++ b/templates/base.html
@@ -0,0 +1,44 @@
+<!-- -*- 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="container">
+ <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="body">
+ <div class="clearleft"></div>
+ <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 />
+ <a href="/links/">links</a>
+ </div>
+
+ {% block submenu %}{% endblock %}
+ </div>
+ <div id="content">
+ {% block content %}
+ {% endblock %}
+ <div class="clear"></div>
+ </div>
+ </div>
+ <div id="footer">
+ Copyright &copy; 2011 Tom Willemsen
+ </div>
+ </div>
+ </body>
+</html>
diff --git a/templates/blog/base.html b/templates/blog/base.html
new file mode 100644
index 0000000..2eadc88
--- /dev/null
+++ b/templates/blog/base.html
@@ -0,0 +1,5 @@
+{% extends "base.html" %}
+
+{% block subtitle %}
+ blog
+{% endblock %}
diff --git a/templates/blog/posts.html b/templates/blog/posts.html
new file mode 100644
index 0000000..d9bc72d
--- /dev/null
+++ b/templates/blog/posts.html
@@ -0,0 +1,42 @@
+<!-- -*- 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/tags.html b/templates/blog/tags.html
new file mode 100644
index 0000000..a180634
--- /dev/null
+++ b/templates/blog/tags.html
@@ -0,0 +1,19 @@
+<!-- -*- 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
new file mode 100644
index 0000000..a34a0d8
--- /dev/null
+++ b/templates/home.html
@@ -0,0 +1,88 @@
+{% 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="http://gitorious.org/~ryuslash">Gitorious</a>
+ - This is where I host most of my projects.
+ </li>
+ <li>
+ <a href="https://github.com/ryuslash">Github</a>
+ - Sometimes I host projects here as well, but I prefer
+ Gitorious.
+ </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/links/links.html b/templates/links/links.html
new file mode 100644
index 0000000..b911d80
--- /dev/null
+++ b/templates/links/links.html
@@ -0,0 +1,20 @@
+{% extends "base.html" %}
+
+{% block subtitle %}
+ links
+{% endblock %}
+
+{% block content %}
+ <div class="container">
+ <div class="header">
+ <span class="title">links</span>
+ </div>
+ {% if bookmarklist %}
+ {% for link in bookmarklist %}
+ <a href="{{ link.url }}">{{ link.name }}</a><br/>
+ {% endfor %}
+ {% else %}
+ No links, no where...
+ {% endif %}
+ </div>
+{% endblock %}
diff --git a/templates/projects/base.html b/templates/projects/base.html
new file mode 100644
index 0000000..d3654cc
--- /dev/null
+++ b/templates/projects/base.html
@@ -0,0 +1,3 @@
+<!-- -*- Mode: django-html-mumamo -*- -->
+
+{% extends "base.html" %}
diff --git a/templates/projects/project_detail.html b/templates/projects/project_detail.html
new file mode 100644
index 0000000..1c19f4f
--- /dev/null
+++ b/templates/projects/project_detail.html
@@ -0,0 +1,52 @@
+<!-- -*- 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
new file mode 100644
index 0000000..1ab750c
--- /dev/null
+++ b/templates/projects/project_list.html
@@ -0,0 +1,20 @@
+<!-- -*- 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 %}