Skip to content

Commit

Permalink
Finishing the Overlay
Browse files Browse the repository at this point in the history
  • Loading branch information
lukx committed May 17, 2013
1 parent 7fb0016 commit 71f4e47
Show file tree
Hide file tree
Showing 4 changed files with 486 additions and 288 deletions.
7 changes: 5 additions & 2 deletions src/GitList/Controller/NetworkController.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,16 32,19 @@ public function connect(Application $app)

// format the commits for the json reponse
$jsonFormattedCommits = array();

foreach( $commits as $commit ) {
/** @var $commit Commit */

$jsonFormattedCommits[$commit->getHash()] = array(
'hash' => $commit->getHash(),
'parentsHash' => $commit->getParentsHash(),
'date' => $commit->getDate()->format('U'),
'message' => htmlentities( $commit->getMessage() ),
'author' => array(
'name' => $commit->getAuthor()->getName(),
'email' => $commit->getAuthor()->getEmail()
'email' => $commit->getAuthor()->getEmail(),
// due to the lack of a inbuilt javascript md5 mechanism, build the full avatar url on the php side
'image' => 'http://gravatar.com/avatar/' . md5(strtolower( $commit->getAuthor()->getEmail()) ) . '?s=40'
)
);
}
Expand Down
2 changes: 1 addition & 1 deletion web/css/style.css

Large diffs are not rendered by default.

Loading

0 comments on commit 71f4e47

Please sign in to comment.