<% provide(:title, @user.name) %>

<h1>Home</h1>

<div class="stdcontainer">

  <%= link_to 'Leave feedback', new_feedback_path %>

  <% @user.initiatives.each do |i| %>

      <h3><%= link_to i.name, i %></h3>
      <% i.users.each do |x| %>
          <%= link_to x.name, x %>
          <% if x.privilege == 1 %>
              <%= x.telephone %>
          <% end %>
      <% end %>
      <h2><%= i.location %></h2>
      <h2><%= i.description %></h2>
  <% end %>
</div>

<% provide(:title, @user.name) %>

<h1>Home</h1>

<div class="stdcontainer">

  <%= @user.feedback_due %>
  <% if @user.feedback_due <= Date.today %>
      Your feedback was due <%= (Date.today - @user.feedback_due).to_i %> day(s) ago <br>
      <%= link_to 'Leave feedback', new_feedback_path %>
  <% else %>
      Your feedback is due in <%= (@user.feedback_due - Date.today).to_i %> day(s)
  <% end %>

  <% @user.initiatives.each do |i| %>

      <h3><%= link_to i.name, i %></h3>
      <% i.users.each do |x| %>
          <%= link_to x.name, x %>
          <% if x.privilege == 1 %>
              <%= x.telephone %>
          <% end %>
      <% end %>
      <h2><%= i.location %></h2>
      <h2><%= i.description %></h2>
  <% end %>
</div>

Format service users homepage to display when a feedback is due, and let them leave feedback if this date has been met.
Format service users homepage to display when a feedback is due, and let them leave feedback if this date has been met.
