File tree Expand file tree Collapse file tree 6 files changed +5
-21
lines changed Expand file tree Collapse file tree 6 files changed +5
-21
lines changed Original file line number Diff line number Diff line change 195
195
json (1.8.0 )
196
196
jwt (0.1.8 )
197
197
multi_json (>= 1.5 )
198
- kgio (2.7.4 )
198
+ kgio (2.8.1 )
199
199
launchy (2.1.0 )
200
200
addressable (~> 2.2.6 )
201
201
letter_opener (0.0.2 )
286
286
activesupport (= 4.0.0 )
287
287
rake (>= 0.8.7 )
288
288
thor (>= 0.18.1 , < 2.0 )
289
- raindrops (0.8 .0 )
289
+ raindrops (0.12 .0 )
290
290
rake (10.1.0 )
291
291
redcarpet (2.2.2 )
292
292
redis (3.0.2 )
373
373
uglifier (2.1.1 )
374
374
execjs (>= 0.3.0 )
375
375
multi_json (~> 1.0 , >= 1.0.2 )
376
- unicorn (4.2.1 )
376
+ unicorn (4.6.3 )
377
377
kgio (~> 2.6 )
378
378
rack
379
379
raindrops (~> 0.7 )
Original file line number Diff line number Diff line change @@ -21,13 +21,6 @@ def sidebar_statistics
21
21
render
22
22
end
23
23
24
- # 热门节点
25
- cache :sidebar_hot_nodes , :expires_in => 1 . days
26
- def sidebar_hot_nodes
27
- @hot_nodes = Node . hots . limit ( 10 )
28
- render
29
- end
30
-
31
24
# 置顶话题
32
25
cache :sidebar_suggest_topics do |cell |
33
26
CacheVersion . topic_last_suggested_at
Original file line number Diff line number Diff line change 3
3
<%= render_cell :topics, :sidebar_suggest_topics %>
4
4
<%= render_cell :topics, :tips %>
5
5
<%= raw SiteConfig.topic_index_sidebar_html %>
6
- <%= render_cell :topics, :sidebar_hot_nodes %>
7
6
<%= render_cell :topics, :sidebar_statistics %>
Original file line number Diff line number Diff line change 1
1
<%= render "sidebar_box_node_new_topic" %>
2
- <%= raw SiteConfig.topic_index_sidebar_html %>
3
- <%= render_cell :topics, :sidebar_hot_nodes %>
2
+ <%= raw SiteConfig.topic_index_sidebar_html %>
Original file line number Diff line number Diff line change 1
1
<%= render "sidebar_box_new_topic" %>
2
- <%= raw SiteConfig.topic_index_sidebar_html %>
3
- <%= render_cell :topics, :sidebar_hot_nodes %>
2
+ <%= raw SiteConfig.topic_index_sidebar_html %>
Original file line number Diff line number Diff line change 21
21
end
22
22
end
23
23
24
- describe "sidebar_hot_nodes" do
25
- it "should render sidebar hot nodes" do
26
- render_cell ( :topics , :sidebar_hot_nodes ) . should have_css ( "div.hot_nodes li" , :count => 1 )
27
- end
28
- end
29
-
30
24
describe "sidebar_suggest_topics" do
31
25
it "should render sidebar_suggest_topics" do
32
26
render_cell ( :topics , :sidebar_suggest_topics ) . should have_css ( "div.suggest_topics" , :count => 1 )
You can’t perform that action at this time.
0 commit comments