Skip to content

Instantly share code, notes, and snippets.

View iurevych's full-sized avatar
💭
Helping great companies grow 🚀

Sergii Iurevych iurevych

💭
Helping great companies grow 🚀
View GitHub Profile
diff --git a/app/grids/view_setups_grid.rb b/app/grids/view_setups_grid.rb
index ef610d7..54cdeb1 100644
--- a/app/grids/view_setups_grid.rb
+++ b/app/grids/view_setups_grid.rb
@@ -32,7 +32,7 @@ class ViewSetupsGrid
end
end
- column(:description) do |view_setup|
+ column(:view) do |view_setup|
window.CurebitIntegration = {};
(function() {
CurebitIntegration.receiveMessage = function(callback) {
if (window.addEventListener) {
window.addEventListener("message", callback);
} else {
window.attachEvent("onmessage", callback)
}
};
@mixin close-button($size: 24px) {
height: $size;
font-size: $size;
line-height: $size - 2;
padding: 10px;
position: absolute;
right: 0;
text-align: center;
top: 0;
width: $size;
["c_#{controller_name}", "a_#{params[:action]}", "l_#{layout}", ("is-development" if Rails.env.development?)]
is_development = Rails.env.development? ? "is-development" : ""
["c_#{controller_name}", "a_#{params[:action]}", "l_#{layout}", is_development]
config.assets.precompile += ['admin.js',
'affiliates_new.js',
'offers_show.js',
'bootstrap_offers_show.js',
'offers_claim.js',
'offers_show.css',
'offers_claim.css',
'affiliate_offers_show.css',
'bonobos_winter2012_theme.css',
'bonobos_guideshop_theme.css',
{% if sharing_channel == "email"%}
http://www.tinyprints.com/?utm_source=RAF&utm_medium=email&utm_campaign=evergreen-friendoffem-20ff&cid=SM-FAN-TP-RAF_EVERGREEN_FRIENDOFFEM_20OFF
{% elsif sharing_channel == "reminder" %}
http://www.tinyprints.com?utm_source=RAF&utm_medium=email&utm_campaign=evergreen-friendoffremem-20ff&cid=SM-FAN-TP-RAF_EVERGREEN_FRIENDOFFREMEM_20OFF
{% else %}
http://www.tinyprints.com/?utm_source=RAF&utm_medium=claimpage&utm_campaign=evergreen-claimpage-20off&cid=SM-FAN-TP-RAF_EVERGREEN_CLAIMPAGE_20OFF
{% endif %}
EXPIRED:
var json_string = JSON.stringify(js_object);
$.ajax({
url: "//cameratag.com/videos/"+video.uuid+"/form_data.json",
data:{form_data: json_string},
type:"get",
dataType: "jsonp",
success: function(response) {
return true
},
error: function() {
{% capture template1 %}
<div class="headline">
<h1>
<b>
{% if advocate_info.sub_choice == false %}
Template 1 :(
{% elsif advocate_info.sub_choice == true %}
Template 1 ;)
{% endif %}
</b>
{% capture template_split_test %}{{ "advocate_share_page_template" | split_test: "template1", "template2" }}{% endcapture %}
{% if template_split_test == "template1" %}
<div class="headline">
<h1>
<b>
{% if advocate_info.sub_choice == false %}
Template 1 :(
{% elsif advocate_info.sub_choice == true %}
Template 1 ;)