<% # -*- coding: UTF-8 -*- %> <% @home_repos.each do |repo| %> <% if repo.iceberg %> <% begin %> <% title = repo.title.force_encoding("ASCII-8BIT") %> <% rescue NoMethodError %> <% title = repo.title %> <% end %>

<%= repo.category %>

<%= title %>

<% repo.iceberg[0...3].each_with_index do |img, i| %> <% end %>

Source files

<% ellipse = 0 %> <% previous_commit_date = Time.now %> <% repo.commits[0...3].each_with_index do |commit, i|%> <% if i != 0 %> <% ellipse = (previous_commit_date.to_i - commit.committed_date.to_i) / (24*60*60) %> <% ellipse = ellipse * 3 %> <% end %>
 

<%= commit.author.name %>said

— <%= commit.message %>

<%= commit.committed_date.strftime("%A, %d %B %Y") %>

<% previous_commit_date = commit.committed_date %> <% end %>
<% end %> <% end %>