|
100 | 100 | %a{href: popular_topic_path(topic: topic)}
|
101 | 101 | .bold=t(topic, scope: :categories)
|
102 | 102 |
|
103 |
| - - cache ['v1', @protip, 'featured-jobs', expires_in: 1.day ] do |
104 |
| - .clearfix.ml3.mt3.md-show |
105 |
| - .bg-white.rounded.p1 |
106 |
| - %h5.mt0.mb1 |
107 |
| - =icon('diamond', class: 'mr1') |
108 |
| - Featured Programming Job |
109 |
| - %hr.mt1 |
110 |
| - -Job.featured(1).each do |job| |
111 |
| - =render 'jobs/mini', job: job |
112 |
| - |
113 |
| - %a.block.mt2.bold{href: jobs_path} |
114 |
| - 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 |
115 | 121 |
|
116 | 122 | -if show_ads?
|
117 | 123 | .clearfix.ml3.mt3
|
118 |
| - #bsap_1305410.bsarocks.bsap_74f50e679004d8f4d62fec4b0f74ccf1 |
| 124 | + #bsap_1305410.bsarocks.bsap_74f50e679004d8f4d62fec4b0f74ccf1 |
119 | 125 |
|
120 | 126 |
|
121 | 127 | %script{ src: "https://cdn.rawgit.com/google/code-prettify/master/loader/run_prettify.js" }
|
0 commit comments