This file contains hidden or 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 current_account.subscription.plan?(:small) || current_account.subscription.plan?(:medium) -%> | |
<% content_for :script_onload do -%> | |
upsell("<%= @controller.controller_name%>") | |
<% end -%> | |
<some thing to display> | |
<% end -%> | |
$%#$^$%&#$%&#%^ | |
This file contains hidden or 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
<%= f.time_zone_select :time_zone, ActiveSupport::TimeZone.all %> |
This file contains hidden or 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
in the test: | |
context "upgrade" do | |
setup {@account = users(:minimum_agent)} | |
should "not display plus+ cost details" do | |
assert_select "p.agent-upgrade" | |
end | |
end | |
on the page |
This file contains hidden or 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
* { | |
-webkit-box-sizing: border-box; | |
-moz-box-sizing: border-box; | |
box-sizing: border-box | |
} | |
html { | |
font-size: 62.5% | |
} | |
body { | |
background: white; |
This file contains hidden or 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 email_image_tag(source, options = {}) | |
opts = options.symbolize_keys | |
style = "#{opts[:style]}display: block;border-style: none;" | |
image_tag(source, opts.merge({:style => style})) | |
end |
This file contains hidden or 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 styled_paragraph(content) | |
content_tag(:p, content, :style =>"color:#505050;font-family:Helvetica;font-size:14px;line-height:150%;text-align:left;") | |
end | |
This file contains hidden or 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 (hasActiveVisualization(report) && report.selectedVisualizationCategory === VIZ_BREAKDOWN) return true; | |
return false; |