Adding placeholder terms of service

This commit is contained in:
Paul Osman 2011-01-12 09:07:32 -05:00
Родитель b694057f32
Коммит 6fe27de546
4 изменённых файлов: 20 добавлений и 1 удалений

11
apps/drumbeat/urls.py Normal file
Просмотреть файл

@ -0,0 +1,11 @@
from django.conf.urls.defaults import patterns, url
urlpatterns = patterns('django.views.generic.simple',
url(r'^terms-of-service/$', 'direct_to_template', {
'template': 'drumbeat/terms-of-service.html',
}, name='drumbeat_tos'),
url(r'^about/$', 'direct_to_template', {
'template': 'drumbeat/about.html',
}, name='drumbeat_about'),
)

Просмотреть файл

@ -0,0 +1,7 @@
{% extends "base.html" %}
{% block title %}{{ _('Terms of Service') }}{% endblock %}
{% block pageid %}terms-of-service{% endblock %}
{% block body %}
<h1>{{ _('Terms of Service') }}</h1>
<p>{{ _('Just a placeholder right now.') }}</p>
{% endblock %}

Просмотреть файл

@ -51,7 +51,7 @@
<p>
<label for="id_policy_optin">
{{ form.policy_optin }}
<small>{{ _('I understand that all public content I submit to this site will be available under <a href="http://creativecommons.org/licenses/by/3.0/">Creative Commons Attribution 3.0</a>.') }}</small>
<small>I have read and agree to the <a href="{% locale_url drumbeat_tos %}">Terms of Service</a>.</small>
</label>
{{ form.policy_optin.errors }}
</p>

Просмотреть файл

@ -6,6 +6,7 @@ admin.autodiscover()
urlpatterns = patterns('',
(r'^admin/', include(admin.site.urls)),
(r'', include('drumbeat.urls')),
(r'', include('dashboard.urls')),
(r'', include('wellknown.urls')),
(r'', include('activity.urls')),