Commit Graph

1480 Commits

Author SHA1 Message Date
Piotr Sarnacki
226b938214 Drop redirect logic for API other than images and/or cc.xml 2013-09-13 13:06:38 +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
340dec5396 Fix sidebar not fully collapsing. 2013-09-10 12:29:24 +02:00
Mathias Meyer
bab7ec4307 Add images. 2013-09-10 10:38:57 +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
24fb869d53 Disable links when permissions isn't granted. 2013-09-08 11:45:40 +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
cebe5b1e1c Revert "Update ember and ember-model"
This reverts commit 408cce2d4f.
2013-09-06 22:14:11 +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
Piotr Sarnacki
408cce2d4f Update ember and ember-model 2013-09-06 19:36:34 +02:00
Piotr Sarnacki
12aaeeef2d Add records to record arrays in a runloop
When adding records just after loading them, the elements in the UI
might have to be updated, which may trigger `get` on associations right
away. As an effect, even if we load a few records on an event (like
repository on build:started event), ember model may end up fetching the
record.

This commit fixes such occurrences by adding record to record arrays in
a run loop, so newly created records will be added at once, after the
event was served.
2013-09-04 21:20:10 +02:00
Mathias Meyer
2b63b8ca71 Remove the Ruby hint from all the locales.
What was that about again? So weird.
2013-09-03 14:33:58 +02:00
Mathias Meyer
daf8e000f3 Remove <br> at the end of the profile page line. 2013-09-03 14:33:58 +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
2c5071bbba Update travis-web-log 2013-08-29 04:05:10 +02:00
Piotr Sarnacki
14d0596249 Update travis-web-log 2013-08-29 03:36:01 +02:00
Piotr Sarnacki
30d273a648 Fix specs 2013-08-29 01:19:35 +02:00
Piotr Sarnacki
27929faf6f Don't render sidebar 2013-08-29 01:15:57 +02:00
Piotr Sarnacki
f82707b832 Always run deferReadiness() 2013-08-29 01:15:46 +02:00
Piotr Sarnacki
358b7cc0c0 Don't add records to expandable array if they're already there 2013-08-29 01:01:28 +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
Piotr Sarnacki
c0397ae5d4 Fix rendering on firefox
Rendering on firefox was broken due to the difference in time when DOM
loads - without deferReadiness it was sometimes failing to add
ember-application element to body
2013-08-27 15:55:29 +02:00
Mathias Meyer
da7cb6f4b0 Add githubLanguage as repository property. 2013-08-27 15:30:42 +02:00
Piotr Sarnacki
33861717ee Update travis-web-log 2013-08-27 10:37:34 +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
Mathias Meyer
9ee426c054 Fix confusing message in profile. 2013-08-26 11:05:50 +02:00