Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <a class="btn btn-filter dropdown-toggle" href="#" role="button" id="dropdownMenuLink" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
- Filter by year
- </a>
- <div class="dropdown-menu" aria-labelledby="dropdownMenuLink">
- <%= for i in Time.zone.now.year..2016 do%>
- <a class="dropdown-item" href="/blog/year/<%i%>"><%i%></a>
- <% end %>
- <a class="dropdown-item" href="/blog/year/2016">2016</a>
- <a class="dropdown-item" href="/blog/none">None</a>
- </div>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement