from django.conf.urls import patterns, include, url
from thimble.apps.Portfolios.views import create, community, render

urlpatterns = patterns('',
    # render
    url(r'^$', render.render_portfolio, name='render_portfolio'),
    url(r'^collection/(?P<collection_id>[0-9]+)-(?P<slug>[\w-]+)/$', render.render_collection, name='render_collection'),
    url(r'^collection-linesheet/(?P<collection_id>[0-9]+)-(?P<slug>[\w-]+)/$', render.render_linesheet, name='render_linesheet'),

    # search
    url(r'^search/$', render.search, name='search'),
    url(r'^filter-buyers/$', render.filter_tags, name='filter_tags'),


    # create
    url(r'^create-collection/$', create.create_collection, name='create_collection'),

    url(r'^create-linesheet/(?P<collection_id>[0-9]+)-(?P<slug>[\w-]+)/$', create.create_linesheet, name='create_linesheet'),

    # community activites
    # like/unlike
    url(r'^liking/$', community.liking, name='liking'),

    # following
    url(r'^following/$', community.following, name='following'),

    # comment
    url(r'^comment/$', community.comment, name='comment'),
)
