diff options
author | Alvin Li <liweitianux@gmail.com> | 2013-08-14 00:05:31 +0800 |
---|---|---|
committer | Alvin Li <liweitianux@gmail.com> | 2013-08-14 00:05:31 +0800 |
commit | bb095adf76bddc2f6c5925bcdebb52bff75e6578 (patch) | |
tree | c04b5ef145708e76eccc5b6e703c5742578ca4a8 /97suifangqa/apps/indicator/urls.py | |
parent | 87ed76dd20431eb2a4216f9356b6da417fe003ce (diff) | |
download | 97dev-bb095adf76bddc2f6c5925bcdebb52bff75e6578.tar.bz2 |
* added 'templates/search/search.html'
* updated haystack settings
* updated 'static' files settings
* added 'search function' for 'apps/indicator': IndicatorCategory, Indicator
* merged static files of '97suifang-front' by 'mjymjydark'
* merged pages of '97suifang-front' by 'mjymjydark'
* updated pages to use 'django templates syntax' for the static links
TODO:
to fix the 'static links' of 'indicator/static/javascripts/*.js'
Diffstat (limited to '97suifangqa/apps/indicator/urls.py')
-rw-r--r-- | 97suifangqa/apps/indicator/urls.py | 52 |
1 files changed, 42 insertions, 10 deletions
diff --git a/97suifangqa/apps/indicator/urls.py b/97suifangqa/apps/indicator/urls.py index 0b5b12a..dbfc1ae 100644 --- a/97suifangqa/apps/indicator/urls.py +++ b/97suifangqa/apps/indicator/urls.py @@ -21,22 +21,54 @@ urlpatterns = patterns('indicator.views', DetailView.as_view( model=im.IndicatorCategory, template_name='show_category.html'), - name='show-category'), + name='show_category'), # Indicator, name='show-indicator' url(r'^show/indicator/(?P<pk>\d+)/$', DetailView.as_view( model=im.Indicator, template_name='show_indicator.html'), - name='show-indicator'), - # IndicatorRecord, name='show-record' - # TODO: howto add '@login_required' - url(r'^show/record/(?P<pk>\d+)/$', - DetailView.as_view( - model=im.IndicatorRecord, - template_name='show_record.html'), - name='show-record'), + name='show_indicator'), + ## IndicatorRecord, name='show-record' + ## TODO: howto add '@login_required' + #url(r'^show/record/(?P<pk>\d+)/$', + # DetailView.as_view( + # model=im.IndicatorRecord, + # template_name='show_record.html'), + # name='show_record'), ) +## UI pages +urlpatterns += patterns('', + # indicator_index + url(r'^$', + direct_to_template, {'template': 'indicator/index.html'}, + name='indicator_index'), + # indicator_sidebar + url(r'^sidebar/$', + direct_to_template, {'template': 'indicator/SideBar.html'}, + name='indicator_sidebar'), + # indicator_status, 指标状态 + url(r'^status/$', + direct_to_template, {'template': 'indicator/SheetDefault.html'}, + name='indicator_status'), + # follow_indicator, 关注指标 + url(r'^follow/$', + direct_to_template, {'template': 'indicator/NewDeleteIndex.html'}, + name='follow_indicator'), + ## indicator: popup + # DeleteCardTip + url(r'^popup/deletecardtip/$', + direct_to_template, {'template': 'indicator/popup/DeleteCardTip.html'}, + name='indicator_deletecardtip'), + # EditHistoryData + url(r'^popup/edithistorydata/$', + direct_to_template, {'template': 'indicator/popup/EditHistoryData.html'}, + name='indicator_edithistorydata'), + # IndexDesc + url(r'^popup/indexdesc/$', + direct_to_template, {'template': 'indicator/popup/IndexDesc.html'}, + name='indicator_indexdesc'), +) urlpatterns += patterns('indicator.views', ## test @@ -119,6 +151,6 @@ urlpatterns += patterns('indicator.views', urlpatterns += patterns('', ## done - url(r'^done/$', direct_to_template, { 'template': 'done.html' }), + url(r'^done/$', direct_to_template, { 'template': 'indicator/done.html' }), ) |