Skip to content

Instantly share code, notes, and snippets.

if (hasActiveVisualization(report) && report.selectedVisualizationCategory === VIZ_BREAKDOWN) return true;
return false;
def styled_paragraph(content)
content_tag(:p, content, :style =>"color:#505050;font-family:Helvetica;font-size:14px;line-height:150%;text-align:left;")
end
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
* {
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
box-sizing: border-box
}
html {
font-size: 62.5%
}
body {
background: white;
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
<%= f.time_zone_select :time_zone, ActiveSupport::TimeZone.all %>
<% 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 -%>
$%#$^$%&#$%&#%^