app/views/clipster/clips/clips.html.erb
<%= content_for :head, auto_discovery_link_tag(:atom) %>
<fieldset><legend>
Recent Clips<%= " - #{params[:lang]}" unless params[:lang].nil? %>
<%= link_to "", clips_clips_path(:lang => params[:lang], :format=>:atom), :class=>"image-feed pull-right" %>
</legend></fieldset>
<div class="span7">
<table class="table table-striped table-bordered table-hover span6">
<thead>
<tr>
<th>
Title
</th>
<% if Clipster.config.associates_clip_with_user %>
<th>
User
</th>
<% end %>
<th>
Language
</th>
<th>
Created On
</th>
<th>
Expires
</th>
</tr>
</thead>
<tbody>
<% @clips.each do |clip| %>
<tr>
<td><%= link_to clip.title, clip %></td>
<% if Clipster.config.associates_clip_with_user %>
<td>
<%= link_to(display_user_text(clip.user), clip.user) if clip.user %>
</td>
<% end %>
<td><%= clip.language.capitalize %></td>
<td><%= l clip.created_at, :format => :short %></td>
<td><%= clip.expires_in_words %></td>
</tr>
<% end %>
<% unless @clips.length > 0 %>
<tr>
<td colspan="100%" style="text-align: center;">There are no public clips.</td>
</tr>
<% end %>
</tbody>
</table>
<div class="clearfix"></div>
<%= paginate @clips %>
</div>
<%= render "clipster/common/languages" %>