Skip to content

Instantly share code, notes, and snippets.

@all4miller
Last active June 4, 2020 21:11
Show Gist options
  • Save all4miller/b803f2e0ec6791aeb6e55cda3aa04a6a to your computer and use it in GitHub Desktop.
Save all4miller/b803f2e0ec6791aeb6e55cda3aa04a6a to your computer and use it in GitHub Desktop.
Before:
<div class="col-12" style='display: flex; flex-direction: row; justify-content: flex-end;'>
<h1 style='display: inline-flex; font-size: 11px; font-weight: 300;'>
<div>
<% @past_years.map(&:year).sort.reverse.each do |year| %>
<%= link_to year.to_i ...., style: 'margin: 0 3px;font-size: 10px;' %>
<% end %>
</div>
</h1>
</div>
After:
<div class="d-flex justify-content-between align-items-baseline">
<div class="p-2"><h4>Upcoming Exhibitions</h4></div>
<div class="p-10">
<% @sorted_past_years.each do |year| %>
<%= link_to year.to_i .... class: 'paging-link' %>
<% end %>
</div>
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment