diff --git a/static/css/main.css b/static/css/main.css index b7ad30b..3ea977b 100644 --- a/static/css/main.css +++ b/static/css/main.css @@ -141,19 +141,28 @@ tbody tr:nth-child(odd) { background: url(img/adminium.png); } -.forum-post-user { - float: left; - width: 100px; +.user-tile { + display: block; + width: 150px; + height: 150px; text-align: center; } -.forum-post-user .byline { +.post .user-tile { + float: left; +} + +.user-tile .byline { padding: 1em; } +.user-tile a { + color: #fff; +} + .forum-post-content { padding: 1em; - margin-left: 100px; + margin-left: 150px; background: #222; border-left: 3px solid black; } @@ -254,11 +263,13 @@ tr.sticky a:link { .profile-list li { float: left; - border:3px solid black; - padding: 3px; - width: 128px; - height: 128px; + margin: 1em; text-align: center; + background: url(img/wood.png) +} + +.profile-list .user-tile { + border: 3px solid black; } #epicenter ul { @@ -317,10 +328,6 @@ fieldset { color: #f33; } -.forum .avatar { - float: left; -} - .forum .author-info ul { list-style: none; margin-left: 32; @@ -354,10 +361,6 @@ fieldset { border-bottom: #aaa solid 1px; } -.topic .avatar { - float: left; -} - .topic h2 { margin-left: 42px; } @@ -417,3 +420,7 @@ fieldset { #statbox .avatar { padding: 5px; } + +.topic .avatar { + float: left; +} diff --git a/templates/_profile_tile.html b/templates/_profile_tile.html new file mode 100644 index 0000000..2e53b52 --- /dev/null +++ b/templates/_profile_tile.html @@ -0,0 +1,9 @@ +{% load minecraft %} +
+
+ +
{%avatar user%}
+{{user}} +
+
+
diff --git a/templates/base_with_nav.html b/templates/base_with_nav.html new file mode 100644 index 0000000..470fcf6 --- /dev/null +++ b/templates/base_with_nav.html @@ -0,0 +1,17 @@ +{% extends 'base.html' %} +{% block main %} +
+
+
+ {% block localnav %} + {% endblock %} +
+
+
+ {% block content %} + {% endblock %} +
+
+{% include '_sidebar.html' %} +{% endblock main %} + diff --git a/templates/forums/_reply.html b/templates/forums/_reply.html index 4b29bba..db2d9c0 100644 --- a/templates/forums/_reply.html +++ b/templates/forums/_reply.html @@ -1,15 +1,7 @@ {% load markup %} -{% load minecraft %}
-
- -
+{% include "_profile_tile.html" %}
Posted {{post.created}} {% if post.created != post.updated %} diff --git a/templates/forums/topic.html b/templates/forums/topic.html index 802e701..b011ec9 100644 --- a/templates/forums/topic.html +++ b/templates/forums/topic.html @@ -1,21 +1,10 @@ -{% extends "forum_base.html" %} +{% extends "base_with_nav.html" %} {% load minecraft %} {% load mptt_tags %} -{%block title %}{{topic.title}}{%endblock%} -{%block breadcrumb %} -Home -{%for f in topic.forum.get_ancestors%} -> {{f}} -{%endfor%} -> {{topic.forum}} -{%endblock%} +{% block sectiontitle %}Forums{% endblock %} -{%block content %} -
-
{% avatar topic.rootPost.user 32 %}
-

{{topic.title}}

- +{% block localnav %} {% if perms.forums %}
    {% if perms.forums.delete_topic %} @@ -32,6 +21,25 @@ Make Sticky {% endif %}
{% endif %} +{% endblock %} + +{%block title %}{{topic.title}}{%endblock%} + +{%block breadcrumb %} +Home +{%for f in topic.forum.get_ancestors%} +> {{f}} +{%endfor%} +> {{topic.forum}} +{%endblock%} + +{%block content %} +
+
+
{% avatar topic.rootPost.user 32 %}
+

{{topic.title}}

+ +

{% include "forums/_post.html" with post=topic.rootPost %}
diff --git a/templates/local/list.html b/templates/local/list.html index 61a3580..efb0800 100644 --- a/templates/local/list.html +++ b/templates/local/list.html @@ -9,7 +9,7 @@

{{group}}

    {% for user in group.user_set.all %} -
  • {% avatar user %}

    {{user}}

  • +
  • {% include '_profile_tile.html' with user=user %}
  • {% endfor %}

@@ -17,7 +17,7 @@

All Players

{% endblock %} diff --git a/templates/local/profile.html b/templates/local/profile.html index 234fc96..beae087 100644 --- a/templates/local/profile.html +++ b/templates/local/profile.html @@ -1,5 +1,14 @@ -{% extends "profile_base.html" %} +{% extends "base_with_nav.html" %} {% load minecraft %} + +{% block localnav %} +{% if user == profile %} + +{% endif %} +{% endblock%} + {%block title%}{{profile}}{%endblock%} {% block sectiontitle %}{{profile}}{%endblock%} @@ -7,9 +16,6 @@ {%block content %}
{% avatar profile 128 %}
-{% if user == profile %} -Edit profile -{% endif %}
  • Member Since: {{profile.date_joined|date:"SHORT_DATE_FORMAT"}}
  • Last seen: {{profile.last_login|date:"SHORT_DATE_FORMAT"}}