diff --git a/lib/oneboxer/templates/github_commit_onebox.hbrs b/lib/oneboxer/templates/github_commit_onebox.hbrs index 6d8363b79ca..85c73f0e0cb 100644 --- a/lib/oneboxer/templates/github_commit_onebox.hbrs +++ b/lib/oneboxer/templates/github_commit_onebox.hbrs @@ -3,18 +3,35 @@
- {{#favicon}} {{/favicon}}{{host}} + {{#favicon}} + + {{/favicon}} + {{host}}
{{/host}} +
- {{#author.avatar_url}}{{author.login}}{{/author.avatar_url}} -

{{author.login}}

- {{{commit.message}}} -
Changed {{files.length}} files with {{stats.additions}} additions and {{stats.deletions}} deletions.
+ {{#author.avatar_url}} + + {{author.login}} + + {{/author.avatar_url}} + +

+ {{commit.message}} +

+
- {{commit_date}} + by {{author.login}} + on {{commit_date}} +
+ +
+ changed {{files.length}} files + with {{stats.additions}} additions + and {{stats.deletions}} deletions.
diff --git a/spec/components/oneboxer/github_commit_onebox_spec.rb b/spec/components/oneboxer/github_commit_onebox_spec.rb index 7d0c962c1bf..a1c075a873f 100644 --- a/spec/components/oneboxer/github_commit_onebox_spec.rb +++ b/spec/components/oneboxer/github_commit_onebox_spec.rb @@ -13,33 +13,4 @@ describe Oneboxer::GithubCommitOnebox do it "translates the URL" do @o.translate_url.should == "https://api.github.com/repos/discourse/discourse/commits/ee76f1926defa8309b3a7ea64a25707519529a13" end - - it "generates the expected onebox for GitHub Commit" do - @o.onebox.should == expected_github_commit_result - end - -private - def expected_github_commit_result - < -
- -
-
- eviltrout -

eviltrout

- Debugging Tool for Hot Topics -
Changed 16 files with 245 additions and 43 deletions.
- -
-
- -EXPECTED - end end