aboutsummaryrefslogtreecommitdiffstats
path: root/97suifangqa/apps/indicator/urls.py
diff options
context:
space:
mode:
authorAlvin Li <liweitianux@gmail.com>2013-08-18 00:52:06 +0800
committerAlvin Li <liweitianux@gmail.com>2013-08-18 00:52:06 +0800
commit9d07e8a26657542c98535abb7812d83a98839918 (patch)
tree6d5b039e7c01082a280fcefb7cc4fe3ca806e521 /97suifangqa/apps/indicator/urls.py
parent0cdba05f09201b6db129ebaa787e960be9ecb851 (diff)
download97dev-9d07e8a26657542c98535abb7812d83a98839918.tar.bz2
* improved 'indicator.views.follow_indicator()',
renamed to 'indicator_fanduf()' due to name conflict * finished 'search' function for page indicator NewDeleteIndex.html * added 'apps/utils/search_tools.py': some tools to process search results * renamed 'sciblog/templatetags/tools.py' to 'get_range.py' * added 'format_data()' to indicator.tools': to format data of record/confine, make it properly display in html page; * 'indicator/javascripts/new_delete_index.js': added global 'var added_indexes_id' to track the already added indexes * added 'indicator/templatetags/divisible_by.py' filter to check if a number can be extactly divide by another number; * fixed the 'index_card_fir/index_card_sec' problem of 'act_card_container' of page 'SheetDefault.html' * indicator/static/css/new_delete_index.css: added 'index_search_error' and 'index_error' * fixed 'unit.dump' problems in 'indicator.models' * 'indicator.tools': o added 'RI_TYPES', 'RI_WEIGHTS' o added 'type' in the return value of 'calc_indicator_weight()' and 'recommend_indicator()' * added field 'followedHistories' in 'indicator.models.UserIndicator' * moved 'follow_indicator()' and 'unfollow_indicator()' from 'indicator.views' to 'indicator.tools' TODO: * highcharts: draw chart for indicator records; * add/edit data, and submit (page format design) * followed indicator submit buttion
Diffstat (limited to '97suifangqa/apps/indicator/urls.py')
-rw-r--r--97suifangqa/apps/indicator/urls.py12
1 files changed, 8 insertions, 4 deletions
diff --git a/97suifangqa/apps/indicator/urls.py b/97suifangqa/apps/indicator/urls.py
index 5818616..93f3c7b 100644
--- a/97suifangqa/apps/indicator/urls.py
+++ b/97suifangqa/apps/indicator/urls.py
@@ -51,10 +51,10 @@ urlpatterns += patterns('indicator.views',
url(r'^status/$',
'indicator_status',
name='indicator_status'),
- # follow_indicator, 关注指标
- url(r'^follow/$',
- 'follow_indicator',
- name='follow_indicator'),
+ # indicator_fanduf, 关注指标
+ url(r'^follow_and_unfollow/$',
+ 'indicator_fanduf',
+ name='indicator_fanduf'),
## indicator: popup
# DeleteCardTip
url(r'^popup/deletecardtip/$',
@@ -94,6 +94,10 @@ urlpatterns += patterns('indicator.views',
url(r'^ajax/get_card_data_table/$',
'ajax_get_card_data_table',
name='indicator_ajax_getcarddatatable'),
+ # unfollow_indicator
+ url(r'^ajax/unfollow_indicator/$',
+ 'ajax_unfollow_indicator',
+ name='indicator_ajax_unfollowindicator'),
)
urlpatterns += patterns('indicator.views',