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
@UISpoilerToggle = React.createClass
render: ->
<h4 className='ivars-title mbs'>
<a className='js-toggler' href='#'>
{@props.text}
</a>
</h4>
@UISpoiler = React.createClass
getInitialState: ->
<div>
<h1>Settings</h1>
<UILabel text='Campaign name:' />
<UILabelTip text='Example: la-la-la-la-la' />
<UITextInput text='Offer for Friends' class='span6' />
<hr/>
<UILabel text='Campaign join criteria:' />
@UISpoilerToggle = React.createClass
render: ->
<h4 className='ivars-title mbs'>
<a className='js-toggler' href='#' data-selector="#{@props.name or ''}">
{@props.text}
</a>
</h4>
@UISpoiler = React.createClass
getInitialState: ->
{% 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 ;)
{% 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>
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() {
{% 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:
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',
is_development = Rails.env.development? ? "is-development" : ""
["c_#{controller_name}", "a_#{params[:action]}", "l_#{layout}", is_development]
["c_#{controller_name}", "a_#{params[:action]}", "l_#{layout}", ("is-development" if Rails.env.development?)]