Advertisement
Guest User

Untitled

a guest
Oct 14th, 2024
25
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Ruby 0.52 KB | Source Code | 0 0
  1.     <a class="btn btn-filter  dropdown-toggle" href="#" role="button" id="dropdownMenuLink" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
  2.       Filter by year
  3.     </a>
  4.     <div class="dropdown-menu" aria-labelledby="dropdownMenuLink">
  5.       <%= for i in Time.zone.now.year..2016 do%>
  6.       <a class="dropdown-item" href="/blog/year/<%i%>"><%i%></a>
  7.       <% end %>
  8.       <a class="dropdown-item" href="/blog/year/2016">2016</a>
  9.       <a class="dropdown-item" href="/blog/none">None</a>
  10.     </div>
  11.  
  12.  
Tags: Ruby
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement