Add a small, minimal popup tray for future expansion.

This commit is contained in:
Trever Fischer
2012-08-29 22:50:42 -04:00
parent eed9a6df1b
commit 97da13000c
6 changed files with 123 additions and 2 deletions

View File

@@ -27,7 +27,7 @@ $(function() {
{% endif %}
<div class="item">
{% block form %}
<form method="POST" action="{%url forums.views.reply post.id %}">
<form method="POST" action="{%url forums.views.reply parent.id %}">
{% csrf_token %}
{{form.as_p}}
<input type="submit" value="Submit"/>

View File

@@ -2,6 +2,18 @@
{% load minecraft %}
{% load mptt_tags %}
{% block extrahead %}
<script type="text/javascript" language="javascript"
src="{{STATIC_PREFIX}}/js/lockScroll.js"></script>
<script type="text/javascript">
$(document).ready(function() {
$('topic-header').lockScroll({
'triggerElement': $('topic.item:first'),
});
});
</script>
{% endblock %}
{% block sectiontitle %}Forums{% endblock %}
{% block localnav %}
@@ -34,7 +46,7 @@ Home
{%endblock%}
{%block content %}
<div class="topic item">
<div class="topic item" id="topic-header">
<div class="avatar">{% avatar topic.rootPost.user 32 %}</div>
<h2>{{topic.title}}</h2>
<div class="byline">Started by <span itemprop="author">{{topic.rootPost.user}}</span> {{ topic.created|timesince }} ago.<br />Last updated {{topic.updated|timesince}} ago.</div>