* Add HTML variants for cta optimization and other nav bar adjustments * Fix 1==1 non-random mistake * Spruce up org call-to-action * Change default text color * Add html variant trial and success request specs * Fix article sidebar caching issue * One line adjustment * Modify schema * Add include ActionView::Helpers::TagHelper to user_tag_spec * Modify follow_button to remove session context * Dummy commit * Change Edit Article to Edit Post * Dummy commit * Fix rubocop concerns * Fix rubocop style
23 lines
993 B
Text
23 lines
993 B
Text
<div class="html-variants-page-single-variant">
|
|
<h3>
|
|
<%= html_variant.name %>
|
|
</h3>
|
|
<%= html_variant.html %>
|
|
<div class="html-variants-page-single-variant-details">
|
|
<% if html_variant.published %>
|
|
<span class='pill published'>published</span>
|
|
<a class='pill' href="/html_variants/new?fork_id=<%= html_variant.id %>">fork</a>
|
|
<% else %>
|
|
<a class='pill' href="/html_variants/<%= html_variant.id %>/edit">edit</a>
|
|
<% end %>
|
|
<a class='pill' href="<%= @preview_path %>?html_variant_id=<%= html_variant.id %>&state=<%= html_variant.updated_at.to_i %>" target="_blank">preview</a>
|
|
<% if html_variant.approved %>
|
|
<span class='pill approved'>approved</span>
|
|
<% elsif admin %>
|
|
<%= form_for(html_variant) do |f| %>
|
|
<%= f.hidden_field :approved, value: "true" %>
|
|
<%= f.submit "APPROVE" %>
|
|
<% end %>
|
|
<% end %>
|
|
</div>
|
|
</div>
|