Permalink
Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
23 lines (22 sloc) 632 Bytes
<% if note? %>
<div class=note>
<%= render self, 'text' %>
</div>
<% else %>
<% case style %>
<% when 'symbols', 'empty' %>
<ul class="<%= style %>"><% for element in elements %>
<li><%= render element %></li>
<% end %></ul>
<% when 'numbers', 'alpha', 'letters', 'format' %>
<ol class="<%= style %>"><% for element in elements %>
<li><%= render element %></li>
<% end %></ol>
<% when 'hanging' %>
<dl><% for element in elements %>
<dt><%== element['hangText'] %></dt>
<dd><%= render element %></dd>
<% end %></dl>
<% else raise "unrecognized list style: #{style.inspect}" %>
<% end %>
<% end %>