Piotr Sarnacki
e0865756d1
Start running poll whenever isSyncing changes
...
This ensures that timing is not important, ie. if user data is refreshed
later, we can still start running poll() if user is syncing.
2014-06-19 14:40:28 +02:00
Piotr Sarnacki
a64c800423
Bring back refreshUserData when setting user data
...
User data needs to be refreshed on sign in, otherwise we don't have
fresh data regarding isSyncing property and other fields which can
change between refreshing page.
2014-06-19 14:32:48 +02:00
Piotr Sarnacki
2fd1af29ec
Unfold lines before trying to scroll
...
(closes travis-ci/travis-ci#1501 )
2014-06-18 15:36:23 +02:00
Piotr Sarnacki
00ccb07a49
Fix sync button
2014-06-17 16:39:21 +02:00
Piotr Sarnacki
43e9af77d5
Don't close folds when following logs
2014-06-17 00:50:01 +02:00
Piotr Sarnacki
20e3152dba
Bump log.js
2014-06-17 00:31:02 +02:00
Piotr Sarnacki
1f3f06f60e
Make Auth class global
...
It will allow to extend it in travis-pro-web
2014-06-10 09:13:20 +02:00
Piotr Sarnacki
52dea338ee
Refactor handling accounts
...
This commit changes a way we load accounts for profile view:
* instead of using several views with profile controllers, always use
one view to render hooks. This is achieved by redirecting to
individual account page from main profile page (for example when going
into /profile as a user drogus, the effective address will be
/profile/drogus)
* instead of using observers to wait for accounts to load I just use
promise in ProfileRoute#model which effectively ensures that accounts
are loaded at the time we want to select an individual account
* profile controller is split into profile and account controller
2014-05-28 10:23:39 +02:00
Piotr Sarnacki
459089f0cd
Make profiles code a bit simpler
...
We don't need to nest "profile" tab in account view
2014-05-28 10:23:39 +02:00
Piotr Sarnacki
a39d031925
Don't specify index routes
...
They're generated by default
2014-05-28 10:23:39 +02:00
Piotr Sarnacki
cc8219ba7a
No need to add renderFirstSync method
2014-05-28 10:23:39 +02:00
Piotr Sarnacki
42becfc019
Don't specify outlet name for 'pane' outlets
...
Specyfing "pane" as an outlet name here was a legacy thing. In current
form it doesn't give us anything and results in more code, as we need to
specify outlet everytime we want to render something there.
2014-05-28 10:23:38 +02:00
Piotr Sarnacki
de14a03de1
Simplify logic for displaying 'no builds for repository' error
...
We use promise when fetching a repository which means that any nested
routes already have all the repository data loaded. Thanks to that there
is no need to setup observers, we can check what to render right away in
RepoIndexRoute
2014-05-28 10:23:38 +02:00
Piotr Sarnacki
27ae7c4ec2
No need to name outlet 'main'
2014-05-28 10:23:38 +02:00
Piotr Sarnacki
51b9f02da9
Don't render "flash" as an outlet.
...
Just as with "top", we always render "flash" into flash outlet, so we
can render it straight away.
2014-05-28 10:23:38 +02:00
Piotr Sarnacki
338be594bd
No need to keep "top" as an outlet.
...
We render the same thing for "top" part of the site for every layout,
there is no need to keep it as an outlet, we can just render it
directly.
2014-05-28 10:23:37 +02:00
Piotr Sarnacki
3b1cd4f5c4
Bring back afterSignIn and afterSignIn as actions sent to controller
...
It seems that there is more use cases to cover with this behaviour, for
example when someone enters /auth directly and logs in from there.
2014-05-28 10:22:48 +02:00
Piotr Sarnacki
9dd198ed75
Remove auth logic from redirect in Travis.Route
...
Auth check in redirect duplicates beforeModel logic
2014-05-28 10:22:48 +02:00
Piotr Sarnacki
8d393c2cf7
Remove afterSignIn hook from actions in AuthRoute
...
This is a leftover from previous version of auth code. The purpose of
this code was to redirect to index if we're on auth route and user is
already signed in. This may happen only when we use autoSignIn which is
synchronuous, so it should be fine to just check if user is signed in
and redirect to index there.
2014-05-28 10:22:47 +02:00
Piotr Sarnacki
3544d523d7
Refactor auth code
...
* don't use __container__
* register it as a factory on container and inject into routes and
controller
* avoid afterSignIn errors by checking on hooksTarget, ApplicationRoute
should register itself as a hooksTarget
* keep user info on auth
2014-05-28 10:22:47 +02:00
Mathias Meyer
b134f82fab
Scroll #L links to upper third of the screen.
...
Fixes travis-ci/travis-ci#2276
2014-05-27 12:39:53 +02:00
Piotr Sarnacki
3ce79ed3cc
Remove unused code
2014-05-23 16:17:08 +02:00
Martin Charles
aa2539c5e2
Converted Image Assets to SVG
...
Some of these assets are from fontawesome:
Font Awesome by Dave Gandy - http://fontawesome.io
2014-05-22 12:40:39 -04:00
Martin Charles
a62649401b
Cleaned Up public
directory
2014-05-22 09:33:28 -04:00
Piotr Sarnacki
67851cef9e
Merge pull request #273 from simi/clean-spec-env
...
Fix JS spec env.
2014-05-21 14:19:03 +02:00
Mathias Meyer
1f53f9d100
Fix spelling error in cancellation.
2014-05-20 07:50:26 +02:00
Mathias Meyer
ba2f00a09a
URL-encode branch name for status images.
...
Camelcased all entries in the status image selection menu for
consistency.
Fixes travis-ci/travis-ci#2265
2014-05-19 13:15:56 +02:00
Piotr Sarnacki
1a0344eeed
Remove RepoLoadingRoute for now
...
This somehow breaks tests, I need to figure out why that happens
2014-05-14 14:38:26 +02:00
Piotr Sarnacki
b280a42804
Sign out only if request for user data returns 401
2014-05-14 14:38:25 +02:00
Mathias Meyer
494871fe5a
Pull cc.xml URL generation into a helper.
...
Makes it easier to overwrite in pro-web for tokenized URLs.
2014-05-13 08:30:04 +02:00
Josef Šimánek
265dfa1d2d
Fix JS spec env.
...
* remove unnecesary files
* add quint stylesheet
2014-05-12 23:57:08 +02:00
Piotr Sarnacki
7558050062
Change Id header into Request on requests list
2014-05-12 11:17:49 +02:00
Piotr Sarnacki
286b945ba9
Style commit message on requests list to be shortend
2014-05-12 11:03:10 +02:00
Piotr Sarnacki
1a0d004aeb
Link commit on requests list to github
2014-05-12 11:03:10 +02:00
Piotr Sarnacki
57edf811b7
Add requests page
2014-05-12 11:03:10 +02:00
Josh Kalderimis
7db772bc3f
Merge pull request #271 from simi/fix-tests
...
Fix tests broken in 680a0c8
.
2014-05-12 13:07:30 +12:00
Josef Šimánek
862fd4cf1b
Fix tests broken in 680a0c8
.
2014-05-12 03:05:51 +02:00
Josef Šimánek
75d58816ca
Use textarea instead of input for build status images and links.
2014-05-12 02:47:37 +02:00
Josef Šimánek
cf82a50268
Add cc.xml status url.
2014-05-12 02:27:51 +02:00
Josef Šimánek
dfdc392690
Trim status image modal.
...
Closes https://github.com/travis-ci/travis-ci/issues/1900
2014-05-12 02:14:52 +02:00
Mathias Meyer
e093b5b90a
Hide "Show More" when there are no more builds.
...
Fixes travis-ci/travis-ci#1057
2014-05-10 09:39:24 +02:00
Mathias Meyer
e100eea2d8
A lousy attempt at vertically aligning the footer.
...
There's gotta be a better way!
2014-05-09 18:01:22 +02:00
Mathias Meyer
5f46ebbe35
Only show annotations div if there are any.
...
Without any annotations, the div just makes for some good-looking
whitespace.
2014-05-09 13:18:14 +02:00
Mathias Meyer
680a0c8f22
Show running for active jobs, ran when finished.
2014-05-09 12:40:45 +02:00
Mathias Meyer
7e6e5ba00e
Fix tests.
2014-05-09 10:30:00 +02:00
Mathias Meyer
49c794c533
Fine tuning for branch name and subject.
...
In Chrome, it looked slightly off, the line-height adjustment
seems to fix it.
2014-05-09 10:28:35 +02:00
Josef Šimánek
ca2ac4562a
Update jobs summary to new format.
2014-05-09 05:52:18 +02:00
Josef Šimánek
141619c3f5
Show committer in build header only when he's not author.
2014-05-09 04:28:58 +02:00
Josef Šimánek
b8bd3b5fe8
Remove unnecessary ; from spec_helper.
2014-05-09 04:28:44 +02:00
Josef Šimánek
a934267b86
Use gravatar for author and committer avatars.
2014-05-09 02:20:34 +02:00