Better styles + pagination
parent
58092ae50e
commit
b7807c3f0d
@ -0,0 +1,6 @@
|
||||
<li class="asciicast-preview">
|
||||
<h3><%= link_to asciicast_title(asciicast), asciicast %></h3>
|
||||
<% if asciicast.description.present? %>
|
||||
<p class="description"><%= asciicast.description %></p>
|
||||
<% end %>
|
||||
</li>
|
@ -1,9 +1,7 @@
|
||||
<h2>Some title</h2>
|
||||
<h2>Recent asciicasts</h2>
|
||||
|
||||
<ul class="asciicasts">
|
||||
<% @asciicasts.each do |asciicast| %>
|
||||
<li class="asciicast">
|
||||
<a href="/<%= asciicast.id %>"><%= asciicast.id %></a>
|
||||
</li>
|
||||
<% end %>
|
||||
<%= render :partial => "asciicasts/preview", :collection => @asciicasts, :as => :asciicast %>
|
||||
</ul>
|
||||
|
||||
<%= paginate @asciicasts %>
|
||||
|
Loading…
Reference in New Issue