Rewrite format-message to HTMLBars helper

This commit is contained in:
Piotr Sarnacki 2015-02-17 13:36:40 +01:00
parent 84010f63c4
commit 9b58ff45b6
2 changed files with 5 additions and 5 deletions

View File

@ -1,7 +1,7 @@
`import { formatMessage as _formatMessage, safe } from 'travis/utils/helpers'`
`import Ember from "ember"`
helper = Ember.Handlebars.makeBoundHelper (message, options) ->
safe _formatMessage(message, options.hash)
helper = Ember.HTMLBars.makeBoundHelper (params, hash) ->
safe _formatMessage(params[0], hash)
`export default helper`

View File

@ -14,14 +14,14 @@
{{build.pullRequestTitle}}
{{else}}
<small class="repo-main-branch" {{bind-attr title="build.commit.branch"}}>{{build.commit.branch}}</small>
{{format-message build.commit.subject repoBinding=build.repo}}
{{format-message build.commit.subject repo=build.repo}}
{{/if}}
</h2>
<div class="repo-main-description">
{{#if build.pullRequest}}
<p>{{format-message build.commit.subject repoBinding=build.repo}}</p>
<p>{{format-message build.commit.subject repo=build.repo}}</p>
{{/if}}
<pre class="body">{{format-message build.commit.body repoBinding=build.repo pre=true}}</pre>
<pre class="body">{{format-message build.commit.body repo=build.repo pre=true}}</pre>
</div>
<div class="tile-author">
{{#if commit.authorName}}