Remove the news app
This commit is contained in:
@@ -1,2 +0,0 @@
|
||||
{% load markup %}
|
||||
{{ obj.body|markdown }}
|
@@ -1,24 +0,0 @@
|
||||
{% extends 'news_base.html' %}
|
||||
{% load static %}
|
||||
{% load markup %}
|
||||
{% load minecraft %}
|
||||
|
||||
{% block title %}News{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
{% for post in items.object_list %}
|
||||
<div class='item news-item' itemscope itemtype="http://schema.org/BlogPosting">
|
||||
<h2><a href="{{post.get_absolute_url}}" itemprop="name">{{post.title}}</a></h2>
|
||||
<div class="byline">By <span itemprop="author">{{post.author}}</span> <div class="avatar">{% avatar post.author %}</div></div>
|
||||
<div class="dateline">On {{post.created}}</div>
|
||||
<div class="content" itemprop="articleBody">
|
||||
{{post.body|truncatewords:"100"|markdown}}
|
||||
</div>
|
||||
<div class="commentcount"><a href="{{post.get_absolute_url}}"><span itemprop="interactionCount">{{post.comments.all|length}} comment{{post.comments.all|length|pluralize}}</span> »</a></div>
|
||||
<br style="clear:both"/>
|
||||
</div>
|
||||
{% endfor %}
|
||||
|
||||
{% get_static_prefix as STATIC_PREFIX %}
|
||||
<a href="/news/feed"><img src="{{ STATIC_PREFIX }}/feed.png"/></a>
|
||||
{% endblock %}
|
@@ -1,45 +0,0 @@
|
||||
{% extends 'news_base.html' %}
|
||||
{% load markup %}
|
||||
{% load mptt_tags %}
|
||||
{% load minecraft %}
|
||||
|
||||
{% block title %}News - {{item.title}}{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
<div class="item news-item" itemscope itemtype="http://schema.org/BlogPosting">
|
||||
<h2><a href="{{item.get_absolute_url}}" itemprop="name">{{item.title}}</a></h2>
|
||||
<div class="byline">By <span itemprop="author">{{item.author}}</span> <div class="avatar">{% avatar item.author %}</div></div>
|
||||
<div class="dateline">On {{item.created}}</div>
|
||||
<div class="content" itemprop="articleBody">
|
||||
{{item.body|markdown}}
|
||||
</div>
|
||||
<br style="clear:both"/>
|
||||
</div>
|
||||
<div class="comments">
|
||||
<h3>Comments</h3>
|
||||
{% recursetree item.comments %}
|
||||
<div class="comment-tree">
|
||||
<div class="comment">
|
||||
<a name="c{{ node.id }}" href="#c{{node.id}}">#{{node.id}}</a>
|
||||
<div class="forum-post-user">
|
||||
{%avatar node.author%}
|
||||
{{node.author}}
|
||||
</div>
|
||||
{{node.body|markdown:"safe"}}
|
||||
<form action="{% url news.views.comment parent=node.id %}" method="post">
|
||||
{{ commentForm.as_p }}
|
||||
{% csrf_token %}
|
||||
<input type="submit" name="submit" value="Post">
|
||||
</form>
|
||||
</div>
|
||||
{{children}}
|
||||
</div>
|
||||
{% endrecursetree %}
|
||||
<h4>Add a comment</h4>
|
||||
<form action="{% url news.views.comment id=item.id %}" method="post">
|
||||
{{ commentForm.as_p }}
|
||||
{% csrf_token %}
|
||||
<input type="submit" name="submit" value="Post">
|
||||
</form>
|
||||
</div>
|
||||
{% endblock %}
|
@@ -1,3 +0,0 @@
|
||||
{% extends "base.html" %}
|
||||
{% block sectiontitle %}News{% endblock %}
|
||||
|
@@ -1,3 +0,0 @@
|
||||
{{comment.author}} replied to your comment on {{comment.news_post}}:
|
||||
|
||||
{{comment.body}}
|
Reference in New Issue
Block a user