|
63 | 63 | .sm-col.md-col-7.sm-col-12
|
64 | 64 | -if show_ads?
|
65 | 65 | .mt2.md-right.sm-center
|
66 |
| - -# .adunit#v1_protip{'data-dimensions'=>"320x100"} |
67 |
| - -# :javascript |
68 |
| - -# $.dfp('181068894'); |
69 |
| - |
70 |
| - -# %script{async: true, src: "//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"} |
71 |
| - -# %ins{"class" => "adsbygoogle", "style" => "display:inline-block;width:320px;height:100px", "data-ad-client" => "ca-pub-6075623866293464", "data-ad-slot" => "3507958237"} |
72 |
| - -# :javascript |
73 |
| - -# (adsbygoogle = window.adsbygoogle || []).push({}); |
74 |
| - |
75 |
| - :javascript{id: 'mNCC'} |
76 |
| - medianet_width = "300"; |
77 |
| - medianet_height = "250"; |
78 |
| - medianet_crid = "777595362"; |
79 |
| - medianet_versionId = "111299"; |
80 |
| - (function() { |
81 |
| - var isSSL = 'https:' == document.location.protocol; |
82 |
| - var mnSrc = (isSSL ? 'https:' : 'http:') + '//contextual.media.net/nmedianet.js?cid=8CU5XGBHT' + (isSSL ? '&https=1' : ''); |
83 |
| - document.write('<scr' + 'ipt type="text/javascript" id="mNSC" src="' + mnSrc + '"></scr' + 'ipt>'); |
84 |
| - })(); |
85 | 66 |
|
86 | 67 | -if signed_in?
|
87 | 68 | #new-comment.new-comment.mt2.mb2.px2
|
|
90 | 71 | = form_for Comment.new do |form|
|
91 | 72 | .border.rounded
|
92 | 73 | = form.hidden_field :protip_id, value: @protip.id
|
93 |
| - = form.text_area :body, rows: 1, class: 'field block col-12 focus-no-border focus-pb3', placeholder: "Enter your response here. Smile and don't forget to be nice.", style: 'border: none; outline: none', value: flash[:data] |
| 74 | + = form.text_area :body, rows: 1, class: 'field block col-12 focus-no-border focus-pb3', placeholder: "Enter a response here. Smile and be nice.", style: 'border: none; outline: none', value: flash[:data] |
94 | 75 | .text-area-footer.px1.py1.font-sm
|
95 | 76 | Markdown is totally
|
96 | 77 | =icon('thumbs-o-up')
|
|
107 | 88 | %h4=pluralize(@protip.comments.size, 'Response')
|
108 | 89 | =render @protip.comments
|
109 | 90 |
|
110 |
| - .md-col.md-show.md-col-4 |
| 91 | + .sm-col.sm-col.sm-col-12.md-col-4 |
111 | 92 | -if @protip.related_topics.present?
|
112 | 93 | .clearfix.ml3.mt3.p1
|
113 | 94 | %h5.mt0.mb1
|
|
120 | 101 | .bold=t(topic, scope: :categories)
|
121 | 102 |
|
122 | 103 | - cache ['v1', @protip, 'featured-jobs', expires_in: 1.day ] do
|
123 |
| - .clearfix.ml3.mt3 |
| 104 | + .clearfix.ml3.mt3.md-show |
124 | 105 | .bg-white.rounded.p1
|
125 | 106 | %h5.mt0.mb1
|
126 | 107 | =icon('diamond', class: 'mr1')
|
|
132 | 113 | %a.block.mt2.bold{href: jobs_path}
|
133 | 114 | Search all programming jobs
|
134 | 115 |
|
| 116 | + -if show_ads? |
| 117 | + .clearfix.ml3.mt3 |
| 118 | + #bsap_1305410.bsarocks.bsap_74f50e679004d8f4d62fec4b0f74ccf1 |
| 119 | + -if Rails.env.development? |
| 120 | + %img{src: 'http://placehold.it/350x200'} |
| 121 | + |
| 122 | + |
| 123 | + |
135 | 124 |
|
136 | 125 | %script{ src: "https://cdn.rawgit.com/google/code-prettify/master/loader/run_prettify.js" }
|
0 commit comments