Skip to content

Commit

Permalink
try to make it more resistant
Browse files Browse the repository at this point in the history
  • Loading branch information
phoet committed Jun 2, 2013
1 parent 3edea48 commit 7b50e71
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions app/views/teaser/_github_gists.html.haml
@@ -1,8 +1,8 @@
.box
.box_title=link_to('GitHub Gists', {:controller=>'work', :action=>'github'}, {:title=>'GitHub Gists'})
.box_content
-if gists
-if gists.present?
%ul
-gists[0..4].each() do |gist|
- gists[0..4].compact.each do |gist|
%li
%a{:href=>"http://gist.github.com/#{gist.id}", :title=>gist.description}= gist.description
4 changes: 2 additions & 2 deletions app/views/teaser/_github_repos.html.haml
@@ -1,8 +1,8 @@
.box
.box_title=link_to('GitHub Projekte', {:controller=>'work', :action=>'github'}, {:title=>'GitHub Projekte'})
.box_content
-if repos
-if repos.present?
%ul
-repos[0..4].each() do |repo|
- repos[0..4].compact.each do |repo|
%li
%a{:href=>"http://github.com/phoet/#{repo.name}", :title=>repo.name}= repo.name

0 comments on commit 7b50e71

Please sign in to comment.