Guest User

Untitled

a guest
May 24th, 2018
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.45 KB | None | 0 0
  1. <ul>
  2. <li><%= link_to 'View all specials', business_specials_url(@the_user.link_name) %></li>
  3. <div class="special_days">
  4. <% 0.upto(6) do |day| %>
  5. <% if @the_user.specials_by_day[day] %>
  6. <li<%= ' class="current"' if day == Date.today.wday %>><%= link_to_function Date::DAYNAMES[day].first(3), "showSpecials(this, #{day})" %></li>
  7. <% end %>
  8. <% end %>
  9. </div>
  10. </ul>
Add Comment
Please, Sign In to add comment