From 0f910b8da250345f5dfcd8194d262f7a1181ab3a Mon Sep 17 00:00:00 2001 From: Piotr Sarnacki Date: Wed, 28 Jan 2015 17:36:19 +0100 Subject: [PATCH] EmberCLI compat: helper names with dashes --- assets/scripts/app/helpers.coffee | 16 ++++++++-------- assets/scripts/app/templates/account.hbs | 2 +- assets/scripts/app/templates/build.hbs | 10 +++++----- assets/scripts/app/templates/builds.hbs | 6 +++--- assets/scripts/app/templates/dashboard.hbs | 2 +- .../app/templates/dashboard/repositories.hbs | 2 +- assets/scripts/app/templates/events/list.hbs | 2 +- assets/scripts/app/templates/job.hbs | 10 +++++----- assets/scripts/app/templates/jobs.hbs | 2 +- assets/scripts/app/templates/repos.hbs | 2 +- assets/scripts/app/templates/request.hbs | 2 +- assets/scripts/app/templates/requests.hbs | 4 ++-- 12 files changed, 30 insertions(+), 30 deletions(-) diff --git a/assets/scripts/app/helpers.coffee b/assets/scripts/app/helpers.coffee index efc63b17..0a6b6e41 100644 --- a/assets/scripts/app/helpers.coffee +++ b/assets/scripts/app/helpers.coffee @@ -32,14 +32,14 @@ Ember.Handlebars.registerHelper('travis-field', Travis.Handlebars.travisField) Ember.Handlebars.registerHelper('filter-input', Travis.Handlebars.filterInput) Ember.Handlebars.registerBoundHelper('capitalize', Travis.Handlebars.capitalize) -Ember.Handlebars.registerBoundHelper('githubCommitLink', Travis.Handlebars.githubCommitLink) -Ember.Handlebars.registerBoundHelper('formatTime', Travis.Handlebars.formatTime) -Ember.Handlebars.registerBoundHelper('formatDuration', Travis.Handlebars.formatDuration) -Ember.Handlebars.registerBoundHelper('formatCommit', Travis.Handlebars.formatCommit, 'sha', 'branch') -Ember.Handlebars.registerBoundHelper('formatSha', Travis.Handlebars.formatSha) -Ember.Handlebars.registerBoundHelper('formatMessage', Travis.Handlebars.formatMessage) -Ember.Handlebars.registerBoundHelper('formatConfig', Travis.Handlebars.formatConfig) -Ember.Handlebars.registerBoundHelper('shortCompareShas', Travis.Handlebars.shortCompareShas) +Ember.Handlebars.registerBoundHelper('github-commit-link', Travis.Handlebars.githubCommitLink) +Ember.Handlebars.registerBoundHelper('format-time', Travis.Handlebars.formatTime) +Ember.Handlebars.registerBoundHelper('format-duration', Travis.Handlebars.formatDuration) +Ember.Handlebars.registerBoundHelper('format-commit', Travis.Handlebars.formatCommit, 'sha', 'branch') +Ember.Handlebars.registerBoundHelper('format-sha', Travis.Handlebars.formatSha) +Ember.Handlebars.registerBoundHelper('format-message', Travis.Handlebars.formatMessage) +Ember.Handlebars.registerBoundHelper('format-config', Travis.Handlebars.formatConfig) +Ember.Handlebars.registerBoundHelper('short-compare-shas', Travis.Handlebars.shortCompareShas) Ember.Handlebars.registerBoundHelper('mb', Travis.Handlebars.mb) Ember.LinkView.reopen diff --git a/assets/scripts/app/templates/account.hbs b/assets/scripts/app/templates/account.hbs index 37633139..54c9119e 100644 --- a/assets/scripts/app/templates/account.hbs +++ b/assets/scripts/app/templates/account.hbs @@ -20,7 +20,7 @@

{{else}}

- Last synchronized from GitHub: {{formatTime user.syncedAt}} + Last synchronized from GitHub: {{format-time user.syncedAt}} Sync now diff --git a/assets/scripts/app/templates/build.hbs b/assets/scripts/app/templates/build.hbs index ef6ef692..52b3b269 100644 --- a/assets/scripts/app/templates/build.hbs +++ b/assets/scripts/app/templates/build.hbs @@ -14,7 +14,7 @@

- {{formatTime build.finishedAt}} + {{format-time build.finishedAt}}
{{#if build.tagName}} @@ -24,14 +24,14 @@ {{/if}}
- Commit {{formatSha commit.sha}} + Commit {{format-sha commit.sha}}
{{#if build.pullRequest}} #{{build.pullRequestNumber}}: {{build.pullRequestTitle}} {{else}} {{#if build.commit.compareUrl}} - Compare {{shortCompareShas build.commit.compareUrl}} + Compare {{short-compare-shas build.commit.compareUrl}} {{/if}} {{/if}}
@@ -43,11 +43,11 @@
- - {{formatMessage build.commit.subject repoBinding=build.repo}} + - {{format-message build.commit.subject repoBinding=build.repo}}
-
{{formatMessage build.commit.body repoBinding=build.repo pre=true}}
+
{{format-message build.commit.body repoBinding=build.repo pre=true}}
- - {{formatMessage job.commit.subject repoBinding=job.repo}} + - {{format-message job.commit.subject repoBinding=job.repo}}
-
{{formatMessage job.commit.body repoBinding=job.repo pre=true}}
+
{{format-message job.commit.body repoBinding=job.repo pre=true}}