Skip to content

Commit 095d91e

Browse files
committed
disabling production stream
1 parent 0d2860e commit 095d91e

File tree

1 file changed

+18
-18
lines changed

1 file changed

+18
-18
lines changed

app/views/protips/show.html.haml

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -100,24 +100,24 @@
100100
%a{href: popular_topic_path(topic: topic)}
101101
.bold=t(topic, scope: :categories)
102102

103-
- if Stream.any_broadcasting?
104-
- cache ['v1', 'protips', 'featured-stream', expires_in: 1.minute ] do
105-
.clearfix.ml3.mt3.md-show
106-
=render 'streams/preview', stream: Stream.broadcasting.sample
107-
108-
- else
109-
- cache ['v1', @protip, 'featured-jobs', expires_in: 1.day ] do
110-
.clearfix.ml3.mt3.md-show
111-
.bg-white.rounded.p1
112-
%h5.mt0.mb1
113-
=icon('diamond', class: 'mr1')
114-
Featured Programming Job
115-
%hr.mt1
116-
-Job.featured(1).each do |job|
117-
=render 'jobs/mini', job: job
118-
119-
%a.block.mt2.bold{href: jobs_path}
120-
Search all programming jobs
103+
-# - if Stream.any_broadcasting?
104+
-# - cache ['v1', 'protips', 'featured-stream', expires_in: 1.minute ] do
105+
-# .clearfix.ml3.mt3.md-show
106+
-# =render 'streams/preview', stream: Stream.broadcasting.sample
107+
-#
108+
-# - else
109+
- cache ['v1', @protip, 'featured-jobs', expires_in: 1.day ] do
110+
.clearfix.ml3.mt3.md-show
111+
.bg-white.rounded.p1
112+
%h5.mt0.mb1
113+
=icon('diamond', class: 'mr1')
114+
Featured Programming Job
115+
%hr.mt1
116+
-Job.featured(1).each do |job|
117+
=render 'jobs/mini', job: job
118+
119+
%a.block.mt2.bold{href: jobs_path}
120+
Search all programming jobs
121121

122122
-if show_ads?
123123
.clearfix.ml3.mt3

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy