зеркало из https://github.com/mozilla/batucada.git
Adding placeholder terms of service
This commit is contained in:
Родитель
b694057f32
Коммит
6fe27de546
|
@ -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>
|
||||
|
|
1
urls.py
1
urls.py
|
@ -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')),
|
||||
|
|
Загрузка…
Ссылка в новой задаче