<h2>Dashboard</h1>

<% if current_user.name.present? %>
  <p>
    Welcome <%= current_user.name %>!
  </p>
  <p>
    Email address: <%= current_user.email || "<no email provided>" %>
  </p>
<% else %>
  <p>
    Welcome! This user has no associated profile.
  </p>
<% end %>

<h2>Solicitors</h2>
<%= render @dashboard.solicitors %>

<h2>Organisations</h2>
<%= render @dashboard.organisations %>

<h2>Dashboard</h1>

<% if current_user.name.present? %>
  <p>
    Welcome to your Defence Service Rota dashboard, <%= current_user.name %>.
    <% if current_user.email.present? %>
      <small>Logged in as: <%= current_user.email %></small>
    <% end %>
  </p>
<% else %>
  <p>
    Welcome to your Defence Service Rota dashboard.
  </p>
<% end %>

<h2>Solicitors</h2>
<%= render @dashboard.solicitors %>

<h2>Organisations</h2>
<%= render @dashboard.organisations %>

Make dashboard message a little more friendly
Make dashboard message a little more friendly
