<%= render 'shared/notice' %>

<div>
  <%= link_to raw("<i class=\"material-icons\">add</i>"),
      new_session_label_path(@app_session),
      class: "btn-floating btn-large waves-effect waves-circle waves-light blue darken-1 right" %>
  <h4>Labels</h4>
</div>

<br>
<ul class="collection z-depth-1">  
  <% @labels.each do|label| %>
    <li class="collection-item avatar">
      <i class="material-icons circle blue">label_outline</i>
      <span class="title"><h5><%= label.name %><h5></span>
      <div class="secondary-content">
        <%= link_to raw("<i class=\"small material-icons\">view_list</i>"),
            [@app_session, label],
            class: "grey-text blue-hover"%>    
        <%= link_to raw("<i class=\"small material-icons\">mode_edit</i>"),
            edit_session_label_path(@app_session, label), 
            class: "grey-text blue-hover"%>
        <%= link_to raw("<i class=\"small material-icons\">delete</i>"), 
            [@app_session, label], 
            method: :delete, 
            class: "grey-text red-hover", 
            data: { confirm: 'Are you sure?' } %>
      </div>
    </li>
  <% end %>
</ul>


<%= render 'shared/notice' %>

<div>
  <%= link_to raw("<i class=\"material-icons\">add</i>"),
      new_session_label_path(@app_session),
      class: "btn-floating btn-large waves-effect waves-circle waves-light blue darken-1 right" %>
  <h4>Labels</h4>
</div>

<br>
<% if @labels.empty? %>
  <div class="card-panel blue lighten-3 center-align">
    You have no labels.
  </div>
<% else %>
  <ul class="collection z-depth-1">
    <% @labels.each do|label| %>
      <li class="collection-item avatar">
        <i class="material-icons circle blue">label_outline</i>
        <span class="title"><h5><%= label.name %><h5></span>
        <div class="secondary-content">
          <%= link_to raw("<i class=\"small material-icons\">view_list</i>"),
              [@app_session, label],
              class: "grey-text blue-hover"%>    
          <%= link_to raw("<i class=\"small material-icons\">mode_edit</i>"),
              edit_session_label_path(@app_session, label), 
              class: "grey-text blue-hover"%>
          <%= link_to raw("<i class=\"small material-icons\">delete</i>"), 
              [@app_session, label], 
              method: :delete, 
              class: "grey-text red-hover", 
              data: { confirm: 'Are you sure?' } %>
        </div>
      </li>
    <% end %>
  </ul>
<% end %>


Add empty label list banner
Add empty label list banner

Signed-off-by: Shen Yichen <be3bb257ef8d73236feaba36cd3e5ee9095e6819@gmail.com>
