app/views/playbook/pages/kit_show.html.erb in playbook_ui-7.0.1.pre.alpha8 vs app/views/playbook/pages/kit_show.html.erb in playbook_ui-7.0.1.pre.alpha9
- old
+ new
@@ -1,8 +1,8 @@
<div class="pb--kit-show <%=@kit%>-kit">
<%= pb_rails("title", props: { text: pb_kit_title(@kit), tag: "h1", size: 1 }) %>
- <div class="markdown <%= ENV["dark_mode"] == "true" ? 'dark' : '' %>">
+ <div class="markdown <%= cookies[:dark_mode] == "true" ? 'dark' : '' %>">
<%= markdown(get_kit_description(@kit)) %>
</div>
</div>
<div>
<div class="pb--kit-type-nav">
@@ -16,17 +16,17 @@
<% end %>
<%= pb_rails("section_separator") %>
</div>
<% if (action_name == "kit_show_rails") %>
<%= pb_kit(kit: @kit) %>
- <div class="markdown <%= ENV["dark_mode"] == "true" ? 'dark' : '' %>">
+ <div class="markdown <%= cookies[:dark_mode]== "true" ? 'dark' : '' %>">
<br>
<%= markdown(get_kit_footer(@kit)) %>
</div>
<%= pb_kit_api(@kit) %>
<% else %>
<%= pb_kit(kit: @kit, type: "react") %>
- <div class="markdown <%= ENV["dark_mode"] == "true" ? 'dark' : '' %>">
+ <div class="markdown <%= cookies[:dark_mode] == "true" ? 'dark' : '' %>">
<br>
<%= markdown(get_kit_footer(@kit)) %>
</div>
<% end %>
</div>