docbrown/app/views/html_variants/index.html.erb
Ben Halpern 302e8f202d
Add HTML variants for cta optimization and other nav bar adjustments (#970)
* 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
2018-10-22 17:03:57 -04:00

15 lines
483 B
Text

<%= render "page_styles" %>
<div class="html-variants-page" >
<h1>
HTML Variants <a href="/html_variants/new">New</a>
</h1>
<h2>Your HTML Variants</h2>
<% @user_variants.each do |html_variant| %>
<%= render "single_html_variant", html_variant: html_variant, admin: false %>
<% end %>
<h2>All Published</h2>
<% @all_published_variants.each do |html_variant| %>
<%= render "single_html_variant", html_variant: html_variant, admin: true %>
<% end %>
</div>