<%= link_to 'Delete Collection', @collection, method: :delete %>
<h1>Collection: <%= @collection.name %></h1>
<% @code_snippets.each do |code_snippet| %>
  <p><h3>Github Path: </h3><%= code_snippet.path %></p>
  <p><h3>Github Url: </h3>
    <p><a href="<%= code_snippet.code_url %>"><%= code_snippet.code_url %></a></p>
  <h3>Code Content: </h3>
  <%= link_to 'Delete from Collection', code_snippet, method: :delete %>
  <pre class="codeDisplay"><code>
    <label><%= code_snippet.code_content %></label>
  </code></pre>
  <br>
<% end %>

<% if current_user %>
  <%= link_to 'Delete Collection', @collection, method: :delete %>
<% end %>
<h1>Collection: <%= @collection.name %></h1>
<% @code_snippets.each do |code_snippet| %>
  <p><h3>Github Path: </h3><%= code_snippet.path %></p>
  <p><h3>Github Url: </h3>
    <p><a href="<%= code_snippet.code_url %>"><%= code_snippet.code_url %></a></p>
  <h3>Code Content: </h3>
  <% if current_user %>
    <%= link_to 'Delete from Collection', code_snippet, method: :delete %>
  <% end %>
  <pre class="codeDisplay"><code>
    <label><%= code_snippet.code_content %></label>
  </code></pre>
  <br>
<% end %>

Add restrictions for collection deletion
Add restrictions for collection deletion
