1234567891011121314151617181920212223242526 |
- <h1>What's New</h1>
- <div class="card card-block">
- <% @announcements.each_with_index do |announcement, index| %>
- <% if index != 0 %>
- <div class="row"><div class="col"><hr /></div></div>
- <% end %>
- <div class="row announcement" id="<%= dom_id(announcement) %>">
- <div class="col-sm-1 text-center">
- <%= link_to announcements_path(anchor: dom_id(announcement)) do %>
- <strong><%= announcement.published_at.strftime("%b %d") %></strong>
- <% end %>
- </div>
- <div class="col">
- <strong class="<%= announcement_class(announcement.announcement_type) %>"><%= announcement.announcement_type.titleize %>:</strong>
- <strong><%= announcement.name %>.</strong>
- <%= simple_format announcement.description %>
- </div>
- </div>
- <% end %>
- <% if @announcements.empty? %>
- <div>Exciting stuff coming very soon!</div>
- <% end %>
- </div>
|