from django.conf.urls.defaults import *

urlpatterns = patterns('curricula.views',
    url(r'^activity/(?P<slug>[-\w]*)/$', 
        'activity_detail',
        name="activity-detail"),
    url(r'^preview/activity/(?P<slug>[-\w]*)/$', 
        'activity_detail', 
        {'preview': True},
        name="activity-preview"),
    url(r'^lesson/(?P<slug>[-\w]*)/$', 
        'lesson_detail',
        name="lesson-detail"),
    url(r'^preview/lesson/(?P<slug>[-\w]*)/$', 
        'lesson_detail', 
        {'preview': True},
        name="lesson-preview"),
    url(r'objectives/(?P<id>\d+)/$', 
        'learning_objectives',
        name='learning-objectives'),
    url(r'^lesson/(?P<slug>[-\w]*)/materials/$', 
        'lesson_detail', 
        {'template_name': 'curricula/fragments/materials.html'},
        name='lesson-materials'),
    url(r'^lesson/(?P<slug>[-\w]*)/preparation/$', 
        'lesson_detail', 
        {'template_name': 'curricula/fragments/preparation.html'},
        name='lesson-preparation'),
    url(r'background-information/(?P<id>\d+)/$', 
        'background_information',
        name='background-information'),
    url(r'get_breakout_terms/(?P<id>\d+)/$', 
        'get_breakout_terms',
        name='get-breakout-terms'),
)
