Henrik Hodne
e3e96aca73
Remove more trailing whitespace
2013-10-07 17:07:33 -05:00
Josh Kalderimis
63c8c59744
remove some whitespace
2013-10-07 23:52:17 +02:00
Justine Arreche
51c1b4dcee
Took out linkTo in list.hbs and fixed cursor to pointer on li elements for left repo list view
2013-10-07 17:16:54 -04:00
Justine Arreche
b0415a7148
Fixed list.coffee so repo cell to be entirely clickable, all the credit goes to @bastilian
2013-10-07 17:04:31 -04:00
Josh Kalderimis
0d4babb07e
wrap the contents of the li, not the whole collection
2013-10-07 21:00:35 +02:00
Justine Arreche
32c1f31241
attempt to make entire repo cell clickable
2013-10-07 13:48:55 -04:00
Piotr Sarnacki
972fb6fb43
Always subscribe to log updates
...
When the job is restart, we will not get any updates unless we're
subscribed to job updates - that's why we need to subscribe even if the
job is already finished.
The other option to fix this would be to subscribe and unsubscribe also
based on the status, but since subscribing to finished jobs does not
cost us anything, I prefer the simpler solution.
2013-10-07 17:15:59 +02:00
Piotr Sarnacki
d0998a8fc5
Remove unused observer
...
log property in Travis.Job does not change - we create Log instance
when it's accessed and don't refresh it on any occasion, that's why the
observer on log is not needed.
2013-10-07 16:43:09 +02:00
Piotr Sarnacki
ae0db5780a
Merge pull request #214 from Aaron1011/clear_log
...
Clear log when a job is restarted
2013-10-07 07:41:50 -07:00
Justine Arreche
0500ab1168
Rearranged some copy for first_sync to increase readability and added mascot to success message
2013-10-05 15:19:46 -04:00
Justine Arreche
515a0861ba
new loading spinner gif, header styles and columns for first_sync page
2013-10-05 14:04:52 -04:00
Justine Arreche
1bc7bbee67
changed layout of getting_started to two columns and reorganized typographic styles and heirarchy
2013-10-04 23:27:30 -04:00
Justine Arreche
1cd544ad3b
new screenshots for getting started steps and new styles and centered alignment
2013-10-04 15:40:46 -04:00
Mathias Meyer
f6867e8a4c
Move title attributes into <li> elements.
...
The icon pictures are smaller than the li, reducing the surface
to show the title as a tooltip.
2013-10-04 16:27:51 +02:00
Aaron Hill
2a83215fdc
Fixed clearing log
2013-10-03 21:23:49 -04:00
Justine Arreche
0cfb44868c
added in 'step' headlines to break down the info a bit better
2013-10-03 19:46:40 -04:00
Justine Arreche
b78dec5091
increased width of getting started div and took away align right on images
2013-10-03 19:11:35 -04:00
Justine Arreche
0b01dd6278
fixed styling on auth and added mascot above copy
2013-10-03 18:46:48 -04:00
Justine Arreche
9d39402f2d
additional styling to auth page and new icon for finished label
2013-10-03 18:00:54 -04:00
Mathias Meyer
3b3d36a98a
Make build email ever so slightly wider.
2013-10-02 15:55:19 +02:00
Mathias Meyer
c40aacb1b0
Update build email image.
2013-10-01 15:19:57 +02:00
Piotr Sarnacki
9c7606ff96
Don't try to format date if it does not exist
2013-10-01 14:29:55 +02:00
Piotr Sarnacki
4bb331686c
Fix finishedAt tooltips and show dates in local time zone
2013-10-01 11:25:40 +02:00
Piotr Sarnacki
1ea19a7cbd
Properly detect if user is logged in for broadcasts
2013-09-24 14:17:19 +02:00
Mathias Meyer
d5474b5588
Remove config from build page too.
2013-09-24 14:01:32 +02:00
Mathias Meyer
9d7e610f52
Remove config line, which is now empty everywhere.
2013-09-23 19:16:12 +02:00
Mathias Meyer
47f84d5b5b
Move build status image button to the top right.
...
It takes up quite a bit of room on the tabs list, and it makes
more sense to have it up there, as it belongs to the repository.
2013-09-23 13:19:43 +02:00
Gosha Arinich
62322318da
get rid of 'controllerFor' deprecation warnings
2013-09-21 21:31:12 +03:00
Piotr Sarnacki
194080cc43
Treat build number as number
...
I changed it to be a Number along with Job's number, but it's wrong -
Build's number should be treated as an integer (to not screw up
ordering) and Job's number can be treated as a string (because it has a
format "\d.\d")
2013-09-19 00:04:09 +02:00
Piotr Sarnacki
fc77800f8e
Build.number and Job.number should be treated as strings
2013-09-16 18:53:14 +02:00
Piotr Sarnacki
19a6b29b35
Reload hooks if they're not available
2013-09-16 18:53:13 +02:00
Piotr Sarnacki
3d6fd53883
Ember Model sets primaryKey on class
2013-09-16 18:53:13 +02:00
Piotr Sarnacki
199f236b23
Merge pull request #205 from Aaron1011/fix_duration
...
Fix duration being incremented after a build/job is finished
2013-09-12 14:29:38 -07:00
Piotr Sarnacki
0327d39e2c
Move observing last build to controller
...
We observe last build on the repo in order to show the freshest build on
repo page. I moved it to router in order to keep such observers in the
same place, but this was not a wise move. To make it work properly
observer needs to be removed when moving to some other part (like
build's page). The problem is that deactivate function is not called
when we move to the other route in the same nesting. We have our own
'activate' function on repoController, which is better suited for
handling this task.
2013-09-12 23:23:21 +02:00
Henrik Hodne
688f8a0bb9
Fix typo in cancellation flash message
2013-09-12 10:01:01 -05:00
Mathias Meyer
3e7b9eadeb
Include proper link.
2013-09-11 10:59:18 +02:00
Mathias Meyer
59de081cb7
Update instructions for Code Climate token.
2013-09-11 10:53:14 +02:00
Mathias Meyer
0c9a49ab51
Rework Code Climate integration for action icon bar.
2013-09-11 10:53:02 +02:00
Mathias Meyer
8d3fa21665
Merge branch 'master' into mm-code-climate-window
...
Conflicts:
assets/scripts/app/templates/repos/show/tools.hbs
assets/scripts/app/views/repo/show.coffee
2013-09-10 14:32:20 +02:00
Mathias Meyer
eaf258f033
Use status image helper to determine the URL.
2013-09-10 12:46:33 +02:00
Mathias Meyer
84130350bd
Merge branch 'mm-extract-actions-from-menu'
2013-09-10 10:30:36 +02:00
Mathias Meyer
e7d4b284cd
Make action links actual icons.
...
This change pushes the cog menu to the top, where it belongs, as it
now only includes repository-relevant actions. The icons now reflect
things relating to the build/job itself, and have replace the cog
meny.
2013-09-09 16:40:23 +02:00
Mathias Meyer
451894bcec
Pull some bindings into build and job controllers.
2013-09-08 10:11:20 +02:00
Mathias Meyer
2cc35556ab
Pull job/repository actions out of cog menu.
...
It's very hard to notice where something is, when it's hidden in
that menu.
2013-09-08 09:21:37 +02:00
Aaron Hill
c1dcaa2715
Fix duration being incremented after a build/job is finished
2013-09-07 20:49:53 -04:00
Piotr Sarnacki
1a0e378732
Fix rendering job when moving from index route
...
The hack which is needed for wrong outlet behaviour renders a template
when outlet is not rendered automatically, but it was done immediately.
Because of that when changing routes from index to job route, sometimes
the hack was kicking in and rendering build instead of job template.
This commit fixes it to check if rendering is needed in "afterRender"
phase on runloop.
2013-09-07 17:44:43 +02:00
Piotr Sarnacki
92616251bb
Revert "Update code for newest ember-model"
...
This reverts commit 1594130ff3
.
2013-09-06 22:14:06 +02:00
Piotr Sarnacki
7c161069f5
Fix problems with transitioning to job
2013-09-06 22:04:25 +02:00
Piotr Sarnacki
1594130ff3
Update code for newest ember-model
2013-09-06 19:37:06 +02:00
Mathias Meyer
f4acc21d06
WIP: Code Climate UI integration.
2013-09-03 14:26:02 +02:00
Piotr Sarnacki
4b7f9bb14a
Delegate CurrentUserController#updateLocale to user instance
2013-09-01 14:22:48 +02:00
Lukasz Sarnacki
226c5bb42b
More github references replaced with links
...
Github links will be created for following references:
* @username
* gh-1 (for issue #1 )
2013-09-01 13:43:21 +02:00
Lukasz Sarnacki
4ab6a90b66
Simplified code in github refference linking
2013-09-01 13:36:33 +02:00
Lukasz Sarnacki
44c7c627fb
Replace github refference with link travis-ci/travis-ci#1266
...
Github issue refference is now replaced with github issue url.
This covers following refferences:
* #Num
* User#Num
* User/Project#Num
2013-09-01 13:36:24 +02:00
Piotr Sarnacki
072a5de579
Show first_sync page after routerTransitions
...
This code ensures that we send an event after router is fully
initialized, otherwise it could cause an error.
2013-08-29 16:33:09 +02:00
Piotr Sarnacki
27929faf6f
Don't render sidebar
2013-08-29 01:15:57 +02:00
Piotr Sarnacki
fb120af69e
Use pullRequestNumber from build, not from commit
2013-08-29 01:01:03 +02:00
Piotr Sarnacki
18ba86eca0
Remove stuff not used in travis-web anymore
2013-08-28 14:17:26 +02:00
Piotr Sarnacki
34ae33f087
Fix filtering for queue and running jobs
2013-08-27 23:26:08 +02:00
Piotr Sarnacki
08d17fdf2b
Check also for superclass of Travis.AuthRoute
...
Ember.js creates subclasses of given class in container, so we need to
check also superclass
2013-08-27 18:23:17 +02:00
Piotr Sarnacki
b56fa7b9df
Fix getting hooks on profile page
...
Hooks were sometimes not loaded, because user property on
ProfileController was not available. This commit tries one additional
way to get a login - Travis.lookup with controller:currentUser.
2013-08-27 16:11:56 +02:00
Mathias Meyer
da7cb6f4b0
Add githubLanguage as repository property.
2013-08-27 15:30:42 +02:00
Piotr Sarnacki
7be461758c
Fix specs
2013-08-26 17:01:27 +02:00
Mathias Meyer
04545cc066
Add synchronization spinner.
2013-08-26 12:55:11 +02:00
Mathias Meyer
581f9f6858
Include a mustached spinner.
2013-08-26 12:47:35 +02:00
Piotr Sarnacki
d5038a4855
Fix allBuilds for ember-model
2013-08-25 14:54:55 +02:00
Piotr Sarnacki
eb35a0e1c6
Merge branch 'master' into ui-improvements
...
Conflicts:
assets/scripts/app/controllers.coffee
2013-08-25 14:46:03 +02:00
Piotr Sarnacki
d3ded51a16
Automatically redirect away from 'first_sync' after synced is finished
2013-08-25 14:13:46 +02:00
Piotr Sarnacki
d2ebf4cbcf
Remove indicator from first sync for now
2013-08-25 13:13:58 +02:00
Piotr Sarnacki
b6c2ee418a
Don't require sidebar controller
2013-08-22 16:05:08 +02:00
Piotr Sarnacki
d18cffd1a7
When observing all builds don't request them
...
We use `allBuilds` to observe new incoming builds, so we can put new
builds into the lists (for example when build is started). We use it for
observing purposes only, so we actually don't need to get builds from
the server, we can just register record array and use it later on.
2013-08-22 15:29:12 +02:00
Mathias Meyer
f479cac505
Add copy for the first sync page.
2013-08-21 15:18:06 +02:00
Piotr Sarnacki
766f4e8907
Properly handle job:canceled event
2013-08-13 01:09:02 +02:00
Piotr Sarnacki
c9e677fd86
Allow to cancel jobs after they're started
2013-08-12 17:35:12 +02:00
Piotr Sarnacki
8f91eee610
Display 0 instead of blank field if reposCount is null
2013-08-12 13:16:58 +02:00
Piotr Sarnacki
0217b20943
Implement missing pieces for cancel build
...
We allow to cancel only created builds at this point.
2013-08-09 23:06:19 +02:00
Piotr Sarnacki
8c3e92faea
Merge branch 'master' into ui-improvements
...
Conflicts:
assets/scripts/app/controllers/repo.coffee
assets/scripts/app/templates/builds/show.hbs
assets/scripts/app/templates/jobs/show.hbs
2013-08-06 13:16:56 +02:00
Piotr Sarnacki
c92720f280
Fix displaying pull request number on builds' list
...
Commit sometimes does not have information about pull request (probably
when payload is coming from pusher).
2013-08-06 13:05:25 +02:00
Piotr Sarnacki
d94816ec8f
Remove unneeded code
...
This piece of code was used in order to load repos associated to jobs
when the latter were loaded from pusher. This was needed because jobs
events do not have repository record passed in pusher payload, so when
job was added with pusher and link to the job was displayed in "Running
Jobs" or in workers on right sidebar, Ember was loading missing repos.
We don't need this code anymore as there is no right sidebar.
Additionally after changes in Ember.js, it's possible to pass primitives
to linkTo. Previously the link to record needed to be constructed as
following:
{{#linkTo "job" job.repo job}}Link to repo{{/linkTo}}
The drawback of such code is that repo would have been instantiated in
such case. Now, we can do something like this:
{{#linkTo "job" job.repositorySlug job}}Link to repo{{/linkTo}}
so as long as we have information about repository slug in the job data,
such hacks are not be needed.
2013-08-05 13:14:58 +02:00
Piotr Sarnacki
33bce774a3
Add first_sync template
...
First sync will be displayed when user is logged in and first sync is
still taking place
2013-08-05 03:29:19 +02:00
Piotr Sarnacki
b40d0acf9c
Return empty array from userRepos when there is no user
2013-08-05 03:28:43 +02:00
Piotr Sarnacki
acf5d8e9be
Redirect to root after signin in on auth page
2013-08-05 03:27:47 +02:00
Piotr Sarnacki
c79725d0e9
Refactor sign in related templates, fix indicator in auth template
2013-08-05 03:24:33 +02:00
Piotr Sarnacki
d248fd11a6
Fix messages on empty repos list
2013-08-05 02:35:47 +02:00
Piotr Sarnacki
218a078164
Fix messages on empty repos list
2013-08-05 02:35:28 +02:00
Piotr Sarnacki
9170795639
Improve auth code in router by using new async stuff ( ❤️ @machty)
2013-08-03 20:48:59 +02:00
Piotr Sarnacki
d9d833d1b4
No need to prefetch repos in recentRepos
...
Repo#withLastBuilds already does a fetch, so this is redundant
2013-08-03 15:11:23 +02:00
Piotr Sarnacki
b2f543f3a2
Don't require sidebar and running jobs, it's not used anyway
2013-08-03 15:10:55 +02:00
Piotr Sarnacki
66ed172888
Refactor the way we insert new records with pusher
...
Previousy I was using find to ensure that the record is materialized,
but the new version is much lighter - it uses Model#load to load the
record directly
2013-08-03 15:09:18 +02:00
Piotr Sarnacki
53951c3691
Don't reload user repositories each time my repos tab is clicked
2013-07-31 16:18:37 +02:00
Piotr Sarnacki
07d2d1ff2a
Check if record is in a record array before adding it
2013-07-31 15:06:06 +02:00
Piotr Sarnacki
42470fd416
Wrap updateTimes in Ember.run
2013-07-31 13:59:03 +02:00
Piotr Sarnacki
fb41820917
Remove ticker require
2013-07-31 13:57:49 +02:00
Piotr Sarnacki
96066709b4
Simplify permissions CP code
2013-07-31 13:55:04 +02:00
Piotr Sarnacki
0ac5b6855e
Use isPullRequest instead of eventType
2013-07-31 13:54:02 +02:00
Piotr Sarnacki
1951752f47
Wrap ajax callbacks in Ember.run
2013-07-31 13:52:08 +02:00
Piotr Sarnacki
c0cb223aeb
Update Travis.Model to work with Ember Model
2013-07-31 13:51:28 +02:00
Piotr Sarnacki
ccfd116f08
Use Handlebars.helper instead of registerBoundHelper
2013-07-31 13:49:46 +02:00
Piotr Sarnacki
f92c592f2d
Add pusher receive related stuff to App (previously it was in store)
2013-07-31 13:47:55 +02:00
Piotr Sarnacki
8082d3a6d3
Update loading user to EmberModel's version
2013-07-31 13:45:52 +02:00