calraijintaiko/caltaiko

View on GitHub
erb/performances/index.html.erb

Summary

Maintainability
Test Coverage
<%
   title = "Performances | Cal Raijin Taiko"
   description = "Cal Raijin Taiko's upcoming and past performances."
   image = URI.join(root_url, image_path("logo.png"))

   meta title: title,
   description: description,
   og: {
   title: title,
   description: description,
   image: image,
   url: root_url + "performances"
   }
%>

<header>
  <h2 class="link-header"><%= link_to "UPCOMING PERFORMANCES", '/performances/upcoming' %></h2>
  <% if user_signed_in? %>
  <%= link_to image_tag("icons/add.png"), new_performance_path %>
  <% end %>
</header>
<%= render 'performances_feed', performances: @upcoming %>

<header>
  <h1 class="link-header"><%= link_to "PAST PERFORMANCES", '/performances/past' %></h1>
  <% if user_signed_in? %>
  <%= link_to image_tag("icons/add.png"), new_performance_path %>
  <% end %>
</header>

<% @by_year.keys.each do |year| %>
<h4><%= year %></h4>
<%= render 'thumbnail_feed', performances: @by_year[year] %>
<% end %>

<% if user_signed_in? %>
<div class="add-new">
  <%= link_to image_tag("icons/add.png"), new_performance_path %>
</div>
<% end %>