Performers index and detailed info page.

This commit is contained in:
codevictory
2021-06-02 00:43:32 +03:00
parent 526beedbe9
commit c8bf8efced
8 changed files with 57 additions and 39 deletions

View File

@@ -4,8 +4,9 @@
<%= if length(@performers) == 0 do %>
<i>Lisätietoja tulossa myöhemmin!</i>
<% end %>
<%= for performer <- @performers do %>
<h2><%= performer.name %></h2>
<p><%= performer.desc %></p>
<% end %>
<div class="performers-container">
<%= for performer <- @performers do %>
<%= link "#{performer.name}", to: Routes.performer_path(@conn, :show, performer), class: "performer-name" %>
<% end %>
</div>
</section>