This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@UISpoilerToggle = React.createClass | |
render: -> | |
<h4 className='ivars-title mbs'> | |
<a className='js-toggler' href='#'> | |
{@props.text} | |
</a> | |
</h4> | |
@UISpoiler = React.createClass | |
getInitialState: -> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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:' /> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@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: -> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{% 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 ;) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{% 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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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() { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{% 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: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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', |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
is_development = Rails.env.development? ? "is-development" : "" | |
["c_#{controller_name}", "a_#{params[:action]}", "l_#{layout}", is_development] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
["c_#{controller_name}", "a_#{params[:action]}", "l_#{layout}", ("is-development" if Rails.env.development?)] |