Skip to content
Browse files

do not show github link if repo is not on github

  • Loading branch information...
1 parent 440c9e9 commit aec90e422c40de096794b7f0e623ffb7c7a34734 @juzna committed Mar 8, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 app/templates/Homepage/default.latte
View
2 app/templates/Homepage/default.latte
@@ -27,7 +27,7 @@
<tr n:foreach="$repos as $repo">
<td n:class="notImportant">{$repo->id}</td>
<td><a n:tag-if="$repo->lastGenerated" href="{$basePath}/doc/{$repo->dir}">{$repo->name}</a></td>
- <td><small><a href="https://github.com/{$repo->dir}{= $repo->branch ? "/tree/$repo->branch" : ''}">{$repo->dir}</a></td>
+ <td><small><a n:tag-if="strpos($repo->url, 'github.com') !== false" href="https://github.com/{$repo->dir}{= $repo->branch ? "/tree/$repo->branch" : ''}">{$repo->dir}</a></td>
<td n:class="branch, $repo->branch ?: default">{= $repo->branch ?: 'master'}</td>
<td>{!$repo->lastPull|timeAgoInWordsEx}</td>
<td>{!$repo->lastGenerated|timeAgoInWordsEx}</td>

0 comments on commit aec90e4

Please sign in to comment.
Something went wrong with that request. Please try again.