From aea43758604a9ec955f1d2e886e963c4e698d004 Mon Sep 17 00:00:00 2001 From: Sven Fuchs Date: Sun, 24 Jun 2012 03:39:33 +0200 Subject: [PATCH] add a readme --- README.md | 16 ++++++++++++++++ .../lib/travis/data_store/rest_adapter.coffee | 4 ++-- public/javascripts/application.js | 2 +- 3 files changed, 19 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index ed29abab..17e85dde 100644 --- a/README.md +++ b/README.md @@ -2,4 +2,20 @@ See https://gist.github.com/e4728d00bfd1d6559f4a +### Running the app +This is a static html/js app so you shouldn't need to install anything. + + git clone git://github.com/svenfuchs/travis-ember.git + cd travis-ember + open public/index.html + +### Compiling assets manually + + bundle install + bundle exec rakep + +### Compiling assets on change + + bundle install + bundle exec guard diff --git a/assets/javascripts/lib/travis/data_store/rest_adapter.coffee b/assets/javascripts/lib/travis/data_store/rest_adapter.coffee index 15ad6df6..02c0d396 100644 --- a/assets/javascripts/lib/travis/data_store/rest_adapter.coffee +++ b/assets/javascripts/lib/travis/data_store/rest_adapter.coffee @@ -14,7 +14,7 @@ find: (store, type, id) -> url = '/' + type.buildURL(id) - console.log "find: #{url} (#{id})" + console.log "find: #{url}" @ajax url, 'GET', success: (json) -> @@ -26,7 +26,7 @@ findMany: (store, type, ids) -> url = '/' + type.buildURL() - console.log "findMany: #{url} (#{ids})" + console.log "findMany: #{url}" @ajax url, 'GET', data: diff --git a/public/javascripts/application.js b/public/javascripts/application.js index 6f41cb2c..658be9f5 100644 --- a/public/javascripts/application.js +++ b/public/javascripts/application.js @@ -1 +1 @@ -minispade.register('templates', "(function() {Ember.TEMPLATES['application']=Ember.Handlebars.compile(\"
\\n Travis CI\\n #\\n
\\n\\n
\\n {{outlet left}}\\n
\\n\\n
\\n {{outlet main}}\\n
\\n\");Ember.TEMPLATES['builds/list']=Ember.Handlebars.compile(\"\\n \\n \\n \\n \\n \\n \\n \\n \\n \\n\\n \\n {{#each build in content}}\\n {{#view Travis.BuildsItemView contextBinding=\\\"build\\\"}}\\n \\n \\n \\n \\n \\n \\n \\n {{/view}}\\n {{/each}}\\n \\n
{{t builds.name}}{{t builds.commit}}{{t builds.message}}{{t builds.duration}}{{t builds.finished_at}}
{{number}}{{formatCommit commit}}{{{formatMessage commit.message short=\\\"true\\\"}}}{{formatDuration duration}}{{formatTime finished_at}}
\\n\\n

\\n \\n

\\n\");Ember.TEMPLATES['builds/show']=Ember.Handlebars.compile(\"
\\n
\\n
\\n
{{t builds.name}}
\\n
{{number}}
\\n
{{t builds.finished_at}}
\\n
{{formatTime finished_at}}
\\n
{{t builds.duration}}
\\n
{{formatDuration duration}}
\\n
\\n\\n
\\n
{{t builds.commit}}
\\n
{{formatCommit commit}}
\\n {{#if commit.compareUrl}}\\n
{{t builds.compare}}
\\n
{{pathFrom commit.compareUrl}}
\\n {{/if}}\\n {{#if commit.authorName}}\\n
{{t builds.author}}
\\n
{{commit.authorName}}
\\n {{/if}}\\n {{#if commit.committerName}}\\n
{{t builds.committer}}
\\n
{{commit.committerName}}
\\n {{/if}}\\n
\\n\\n
{{t builds.message}}
\\n
{{{formatMessage commit.message}}}
\\n\\n {{#unless isMatrix}}\\n
{{t builds.config}}
\\n
{{formatConfig config}}
\\n {{/unless}}\\n
\\n\\n {{#if isLoaded}}\\n {{#if view.isMatrix}}\\n {{view Travis.JobsView}}\\n {{else}}\\n {{view Travis.LogView contextBinding=\\\"jobs.firstObject\\\"}}\\n {{/if}}\\n {{/if}}\\n
\\n\");Ember.TEMPLATES['jobs/list']=Ember.Handlebars.compile(\"\\n \\n \\n \\n {{#each configKeys}}\\n \\n {{/each}}\\n \\n \\n \\n {{#each view.requiredJobs}}\\n \\n \\n \\n \\n {{#each configValues}}\\n \\n {{/each}}\\n \\n {{/each}}\\n \\n
{{t jobs.build_matrix}}
{{this}}
#{{number}}{{formatDuration duration}}{{formatTime finished_at}}{{this}}
\\n\\n{{#if view.isFailureMatrix}}\\n \\n \\n \\n \\n {{#each configKeys}}\\n \\n {{/each}}\\n \\n \\n \\n {{#each allowedFailureJobs}}\\n \\n \\n \\n \\n {{#each configValues}}\\n \\n {{/each}}\\n \\n {{/each}}\\n \\n
\\n {{t jobs.allowed_failures}}{{whats_this allow_failure_help}}\\n
{{this}}
#{{number}}{{formatDuration duration}}{{formatTime finished_at}}{{this}}
\\n\\n
\\n
{{t \\\"jobs.allowed_failures\\\"}}
\\n
\\n

\\n Allowed Failures are items in your build matrix that are allowed to\\n fail without causing the entire build to be shown as failed. This lets you add\\n in experimental and preparatory builds to test against versions or\\n configurations that you are not ready to officially support.\\n

\\n

\\n You can define allowed failures in the build matrix as follows:\\n

\\n
\\n    matrix:\\n      allow_failures:\\n        - rvm: ruby-head\\n      
\\n
\\n
\\n{{/if}}\\n\\n\");Ember.TEMPLATES['jobs/log']=Ember.Handlebars.compile(\"
{{{formatLog log.body}}}
\\n\\n{{#if sponsor.name}}\\n

\\n {{t builds.messages.sponsored_by}}\\n {{sponsor.name}}\\n

\\n{{/if}}\\n\");Ember.TEMPLATES['jobs/show']=Ember.Handlebars.compile(\"
\\n
\\n
\\n
Job
\\n
{{number}}
\\n
{{t jobs.finished_at}}
\\n
{{formatTime finished_at}}
\\n
{{t jobs.duration}}
\\n
{{formatDuration duration}}
\\n
\\n\\n
\\n
{{t jobs.commit}}
\\n
{{formatCommit commit}}
\\n {{#if commit.compare_url}}\\n
{{t jobs.compare}}
\\n
{{pathFrom commit.compare_url}}
\\n {{/if}}\\n {{#if commit.author_name}}\\n
{{t jobs.author}}
\\n
{{commit.author_name}}
\\n {{/if}}\\n {{#if commit.committer_name}}\\n
{{t jobs.committer}}
\\n
{{commit.committer_name}}
\\n {{/if}}\\n
\\n\\n
{{t jobs.message}}
\\n
{{formatMessage commit.message}}
\\n
{{t jobs.config}}
\\n
{{formatConfig config}}
\\n
\\n\\n {{view Travis.LogView}}\\n
\\n\\n\");Ember.TEMPLATES['loading']=Ember.Handlebars.compile(\"loading stuff ...\\n\");Ember.TEMPLATES['repositories/list']=Ember.Handlebars.compile(\"{{#if content.lastObject.isLoaded}}\\n