Skip to content

Commit

Permalink
Linting is being weird.
Browse files Browse the repository at this point in the history
  • Loading branch information
a-maci29 committed Apr 21, 2023
1 parent 60594fd commit 914adec
Showing 1 changed file with 9 additions and 10 deletions.
19 changes: 9 additions & 10 deletions app/views/podcasts/index.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -9,16 +9,15 @@
<a data-bs-toggle="dropdown">
<button class="btn btn-outline-light btn-sm dropdown-toggle">
<span class="material-icons" style="color: green" aria-hidden="true" aria-hidden="true">sort</span>

<% if params[:sort] == 'episode_count' %>
<span class="material-icons" aria-hidden="true">123</span>
<% elsif params[:sort] == 'A-Z'%>
<span>A-Z</span>
<% elsif params[:sort] == 'Z-A' %>
<span>Z-A</span>
<% else %>
<span class="material-icons" aria-hidden="true">timer</span>
<% end %>
<% if params[:sort] == 'episode_count' %>
<span class="material-icons" aria-hidden="true">123</span>
<% elsif params[:sort] == 'A-Z' %>
<span>A-Z</span>
<% elsif params[:sort] == 'Z-A' %>
<span>Z-A</span>
<% else %>
<span class="material-icons" aria-hidden="true">timer</span>
<% end %>
</button>
<ul class="dropdown-menu">
<li><%= link_to "Recent Activity", podcasts_path(sort: "Recent"), class: "dropdown-item active" %></li>
Expand Down

0 comments on commit 914adec

Please sign in to comment.