Merge branch 'master' of dev.camin.us:www

Conflicts:
	profiles/models.py
	profiles/views.py
	templates/base_full.html
This commit is contained in:
Trever Fischer
2012-03-04 23:22:47 -05:00
10 changed files with 51 additions and 34 deletions

View File

@@ -35,26 +35,24 @@
<h2 class="title">{{user.username}}</h2>
<div class="userbox">
<div class="avatar">
{% avatar user.minecraftprofile.mc_username %}
<a href="{%url user_profile %}">{% avatar user.minecraftprofile.mc_username %}</a>
</div>
<div class="balance">
<span id="balance-display">{{ user.minecraftprofile.currencyaccount.balance|floatformat:2 }}</span> grist
</div>
<div class="time">
<span id="time-display"></span>
</div>
</div>
<ul>
<li><a href="{% url user_profile %}">Profile</a></li>
<li><a href="{% url user_profile %}">Your Profile</a></li>
<li><a href="{% url profiles.views.logout %}">Logout</a></li>
{% if user.is_staff %}
{% if user.is_staff or user.is_superuser %}
<li><a href="{% url admin:index %}">Admin</a></li>
{% endif %}
</ul>
{% else %}
<h2 class="title">Login</h2>
<p>Welcome! Do you have an invite? <a href="{% url profiles.views.claimInvite %}">Claim it!</a><p>
<form method="POST" action="{%url profiles.views.login %}">
<p><a href="{% url django.contrib.auth.views.password_reset %}">Forgot your password?</a>
<form method="POST" action="{%url django.contrib.auth.views.login %}">
{%csrf_token%}
{{login_form.as_p}}
<input type="submit" value="Login"/>
@@ -91,6 +89,9 @@
<div class="grid_4">
<div id="statbox" class="stat-box">
<h2 class="title">World Status</h2>
<div class="time">
Current time: <span id="time-display"></span>
</div>
{% for server in minecraft_servers %}
<a href="http://{{server.hostname}}/map/">Live Map</a>
<h3>{{server.hostname}}:{{server.port}}</h3>

View File

@@ -1,4 +1,4 @@
{% extends "base.html" %}
{% extends "base_simple.html" %}
{%block title%}Claim an Invite{%endblock%}
{%block content %}

View File

@@ -1,11 +1,17 @@
{% extends "profile_base.html" %}
{%block title%}Your Profile{%endblock%}
{% load minecraft %}
{%block title%}{{user}}{%endblock%}
{% block sectiontitle %}{{user}}{%endblock%}
{%block content %}
<div class="item">
<p>Welcome, {{ user.username }}</p>
{% avatar user %}
<a href="{%url profiles.views.edit %}">Edit profile</a>
<a href="{%url profiles.views.invites %}">Invites</a>
<ul>
<li>Member Since: {{user.date_joined|date:"SHORT_DATE_FORMAT"}}</li>
<li>Last seen: {{user.last_login|date:"SHORT_DATE_FORMAT"}}</li>
</ul>
</div>
{%endblock%}

View File

@@ -1,4 +1,4 @@
{% extends "base.html" %}
{% extends "base_simple.html" %}
{%block title%}Register an Account{%endblock%}
{%block content %}