|
100 | 100 | %a{href: popular_topic_path(topic: topic)}
|
101 | 101 | .bold=t(topic, scope: :categories)
|
102 | 102 |
|
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 |
121 | 121 |
|
122 | 122 | -if show_ads?
|
123 | 123 | .clearfix.ml3.mt3
|
|
0 commit comments