20 lines of Erb

Erb code posted by Garrett
created at 25 Jan 03:47

Edit | Back
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
<div class="box">
  <div class="alignLeft">
    <a href="<%= list.identifier %>" class="heading"><%= list.title %></a>
    <ul>
    <li class="first"><a href="<%= items.first.identifier %>"><%= items.first.title %></a></li>
<% items[1..-1].each do |item| %>
    <li><a href="<%= item.identifier %>"><%= item.title %></a>
<% item.list_item_relations.each do |relation| %>
| <a href="<%= relation.identifier %>"><%= relation.title %></a>
<% end %>
</li>
<% end %>
    </ul>
  </div>
  <div class="alignRight">
    <a href="<%= items.first.identifier %>"><img class="alignLeft" src="<%= items.first.image %>" width="250" height="168" alt="" /></a>
    <span class="abstract"><%= items.first.description %></span>
  </div>
</div>
743 Bytes in 7 ms with coderay