Commit cf3d7839 authored by Michael Rose's avatar Michael Rose

index: nag users that arent authed

parent c72d5b9c
<% if !current_user %>
<div class="alert alert-success" role="alert">
Logged in users gain access to saved searches, story open history, read it later functionality and much much more.
<% if cookies[:dlp_dm] %>
You're a DLP user so you have really have no excuse.
<%= form_tag('', authenticity_token: false, method: :get) do |f| %>
<button class="btn btn-default" type="submit">Sign in with DLP</button>
<% end %>
<% else %>
<%= link_to 'Sign up', new_user_registration_path %> or
<%= link_to 'Login', new_user_session_path %>
<% end %>
<% end %>
<div id="search">
<% if @search.errors.any? %>
<div id="error_explanation">
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment