<% if notice.present? %>
  <div class="notice_wrapper">
    <p class="notice">
      <%= notice %>
    </p>
  </div>
<% end %>

<header>
  <div class="header_area">
    <div class="header_root_wrapper">
      <%= link_to 'ActivityNotification', root_path %>
    </div>
    <div class="header_menu_wrapper">
      <p>
        <% if user_signed_in? %>
          <%= current_user.name %>
          <%= "(admin)" if current_user.admin? %>
          <%= link_to 'Logout', destroy_user_session_path, method: :delete %>
        <% else %>
          <%= link_to 'Login', new_user_session_path %>
        <% end %>
      </p>
    </div>
    <div class="header_notification_wrapper">
      <% if user_signed_in? %>
        <%= render_notifications_of current_user, fallback: :default, index_content: :with_attributes %>
      <% end %>
    </div>
    <div class="header_menu_wrapper">
      <p>
        <%= link_to 'Preview email', "rails/mailers" %>
        <%= " · " unless user_signed_in? %>
      </p>
    </div>
  </div>
</header>
<% if notice.present? %>
  <div class="notice_wrapper">
    <p class="notice">
      <%= notice %>
    </p>
  </div>
<% end %>

<header>
  <div class="header_area">
    <div class="header_root_wrapper">
      <%= link_to 'ActivityNotification', root_path %>
    </div>
    <div class="header_menu_wrapper">
      <p>
        <% if user_signed_in? %>
          <%= current_user.name %>
          <%= "(admin)" if current_user.admin? %>
          <%= link_to 'Logout', destroy_user_session_path, method: :delete %>
        <% else %>
          <%= link_to 'Login', new_user_session_path %>
        <% end %>
      </p>
    </div>
    <div class="header_notification_wrapper">
      <% if user_signed_in? %>
        <%= render_notifications_of current_user, fallback: :default, index_content: :with_attributes %>
      <% end %>
    </div>
    <div class="header_menu_wrapper">
      <p>
        <%= link_to 'Preview email', "/rails/mailers" %>
        <%= " · " unless user_signed_in? %>
      </p>
    </div>
  </div>
</header>
Fix link to preview notification email
Fix link to preview notification email
