Add a placeholder page, tbi.html, and a tbi view /tbi, that can be used to link to when a particular web feature isn't complete yet rather than leaving dead links.

This commit is contained in:
Greg Taylor 2007-07-30 15:23:42 +00:00
parent 6aab3a4145
commit 9db148f98c
5 changed files with 41 additions and 7 deletions

View file

@ -41,4 +41,17 @@ def page_index(request):
}
context_instance = RequestContext(request)
return render_to_response('index.html', pagevars, context_instance)
return render_to_response('index.html', pagevars, context_instance)
def to_be_implemented(request):
"""
A notice letting the user know that this particular feature hasn't been
implemented yet.
"""
pagevars = {
"page_title": "To Be Implemented...",
}
context_instance = RequestContext(request)
return render_to_response('tbi.html', pagevars, context_instance)

View file

@ -18,6 +18,9 @@ urlpatterns = patterns('',
# News stuff
(r'^news/', include('apps.news.urls')),
# Page place-holder for things that aren't implemented yet.
(r'^tbi/', 'apps.website.views.to_be_implemented'),
)
# If you'd like to serve media files via Django (strongly not recommended!),

View file

@ -45,18 +45,18 @@
<div class="headerLinks">
<span class="doNotDisplay">Tools:</span>
<a href="/login">Log In &laquo;</a>
<a href="/tbi">Log In &laquo;</a>
<span class="doNotDisplay">|</span>
<a href="/register">Register &laquo;</a>
<a href="/tbi">Register &laquo;</a>
</div>
</div>
<div class="subHeader">
<span class="doNotDisplay">Navigation:</span>
<a href="/">Home</a> |
<a href="./index.html">About</a> |
<a href="./index.html">Documentation</a> |
<a href="./index.html">Staff List</a> |
<a href="/tbi">About</a> |
<a href="/tbi">Documentation</a> |
<a href="/tbi">Staff List</a> |
<a href="/admin/">Admin Interface</a>
</div>
</div>

View file

@ -27,7 +27,7 @@
<p class="newsSummary">{{entry.body|truncatewords:20}}</p>
{% endfor %}
<div class="more"><a href="./index.html">More News &raquo;</a></div>
<div class="more"><a href="/tbi">More News &raquo;</a></div>
<p class="filler"><!-- Filler para to extend left vertical line --></p>
</div>

View file

@ -0,0 +1,18 @@
{% extends "base.html" %}
{% block header_ext %}
{% endblock %}
{% block sidebar %}
{% endblock %}
{% block content %}
<h1 id="alt-layout">To Be Implemented...</h1>
<p>
This feature has yet to be implemented, but rest assured that it will be!
<br />
<br />
<br />
Eventually...
</p>
{% endblock %}