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
<!DOCTYPE html> | |
<html lang='en-US' xml:lang='en-US' xmlns:fb='http://www.facebook.com/2008/fbml' xmlns='http://www.w3.org/1999/xhtml'> | |
<head> | |
<meta content='text/html;charset=UTF-8' http-equiv='Content-Type'> | |
<link href='http://plus.google.com/_/favicon?domain=http://bonobos.com/' rel='shortcut icon'> | |
<title>Curebit</title> | |
<link href="/assets/trueandco_theme.css" media="screen" rel="stylesheet" type="text/css" /> | |
<script src="/assets/bootstrap_offers_show.js" type="text/javascript"></script> | |
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
def custom_text_interpolations | |
if receive_coupon_allowed? | |
coupon = get_coupon_if_available | |
coupon_code = coupon ? coupon.code : 'Unavailable' | |
coupon_usages = (coupon && coupon.usage_limit) ? coupon.usage_limit - coupon.uses : '0' | |
else | |
coupon_code = 'coupon expired' | |
coupon_usages = '0' | |
end | |
{ |
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
.swap-pagination-color(@color, @hover, @active) { | |
ul { | |
background-color: @color; | |
li { | |
&.previous { | |
> a { | |
border-right-color: mix(@color, white, 66%); | |
} | |
} |
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
<style type="text/css"> | |
body{font-family:Geneva, Helvetica, Arial, sans-serif;margin:10px auto;background-color:white;font-size:12px;color:#333333}body.locale-ar{direction:rtl;text-align:right}body.locale-ar td,body.locale-ar table,body.locale-ar p,body.locale-ar div,body.locale-ar span{direction:rtl;text-align:right}h1,h2,h3{color:#333333}a{color:#0981be}p{margin:0;padding:0}.mail{width:720px;margin:auto}.coupon_inner{width:670px;margin:5px 0pt;padding:20px;background-color:#86ad53;background-repeat:no-repeat;border:5px solid #deedcc}.coupon_header{background-color:#313131;color:#fefefe;height:70px;width:100%;padding:10px 0 10px 20px;margin-bottom:4px}.image_cell{padding-right:20px}.coupon_table{width:100%;background-color:white;padding:25px 25px 25px 25px;font-family:Helvetica, Arial, sans-serif}.how_it_works,.rebate_info{padding-right:12px;font-size:14px;line-height:1.3em}.how_it_works .link,.rebate_info .link{margin:5px auto;border:1px solid #4bc1de;width:300px}.how_it_works p,.rebate_info p{margin-bo |
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
.form-field.is-required | |
= f.label :name | |
= f.text_field :name, required: true | |
:css | |
.form-field.is-required > label:first-child:after { | |
content: '*'; | |
margin-left: 2px; | |
} |
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
<html> | |
<head> | |
<meta http-equiv="content-type" content="text/html; charset=utf-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no"> | |
<title>AdoreMe</title> | |
</head> | |
<body style="padding: 0; margin: 0;"> | |
<!-- Begin Curebit integration code --> | |
<script type="text/javascript">// <![CDATA[ | |
try { |
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
/** | |
* @license | |
* MyFonts Webfont Build ID 2714052, 2013-12-26T05:36:00-0500 | |
* | |
*/ | |
@font-face { | |
font-family: 'brandon_grotesque_medium'; | |
src: url("http://curebit.s3.amazonaws.com/static_assets/files/7270/original/brandongrotesque-medium.eot"); | |
src: url("http://curebit.s3.amazonaws.com/static_assets/files/7270/original/brandongrotesque-medium.eot?#iefix") format("embedded-opentype"), url("http://curebit.s3.amazonaws.com/static_assets/files/7273/original/brandongrotesque-medium.woff") format("woff"), url("http://curebit.s3.amazonaws.com/static_assets/files/7272/original/brandongrotesque-medium.ttf") format("truetype"), url("http://curebit.s3.amazonaws.com/static_assets/files/7271/original/brandongrotesque-medium.svg#lhf_avalancheregular") format("svg"); | |
font-weight: normal; |
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
$('[data-editor-toggle]').each(function(index, element) { | |
// some shit inside using only `element` argument | |
// wondering if there is any way to make jshint happy if `index` arg isn't used here? | |
}); |
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 displayMessage = function(data, params) { | |
var timer, | |
notice = params.notice || $('.js-validation'), | |
delay = params.delay || 5000; | |
clearTimeout(timer); | |
notice | |
.html(data) | |
.fadeIn(300); | |
timer = setTimeout(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
- = link_to view_setup.description, site_campaign_view_setup_path(@site, @campaign, view_setup.view_name) | |
+ = link_to site_campaign_view_setup_path(@site, @campaign, view_setup.view_name) do | |
+ = view_setup.description | |
+ - if view_setup.disabled? | |
+ %span.editor-menu-state.is-off{title: "View is disabled"} Off | |
+ - else | |
+ %span.editor-menu-state.is-on{title: "View is enabled"} On |
OlderNewer