Commit Graph

1544 Commits

Author SHA1 Message Date
Piotr Sarnacki
1d06666357 signOut on refresh user data error 2014-04-09 00:14:28 +02:00
Henrik Hodne
433f5b7318 Use link-to instead of the deprecated linkTo
These were mostly removed in 8d681e85af,
but some where left over.
2014-04-01 00:56:31 -05:00
Piotr Sarnacki
9e167b6603 Calculate position of #tail element rather than setting position fixed
This change ought to be commited along with 535a873, but due to a bit of
chaos with reverts and merging it's not in the master branch. This fixes
a position calculation of #tail element on the log to work even with
right sidebar (which is a problem on Travis Pro)
2014-03-27 12:37:15 +01:00
Jeff Wear
3fb40b4d4b Style the "underline" class. (refs travis-ci/travis-ci#2047)
And remove the unused "underscore" class.
2014-03-23 16:27:08 -07:00
Mathias Meyer
641199cf7d Switch build status image URL to SVG. 2014-03-20 07:25:05 +01:00
Mathias Meyer
34c07325d3 Add a message for travis-ci.com as well.
Switched the logic around to make a bit more sense with the
configuration conditionals.
2014-03-18 10:44:34 +01:00
Mathias Meyer
aaf777ce9d Show a message pointint to travis-ci.com.
Reduces friction a whee bit in finding your private repositories.
2014-03-18 10:40:30 +01:00
Mathias Meyer
c294dcf793 Make explanation box smaller, left-align text. 2014-03-10 12:50:31 +01:00
Mathias Meyer
f44e3eadb3 Provide more copy for insufficient oauth permissions. 2014-03-10 12:45:52 +01:00
Piotr Sarnacki
a141f4b8a4 Update pusher to 2.2.0-rc2 2014-03-05 11:14:34 +01:00
Piotr Sarnacki
10271e2915 Use outerheight when calculating position to take padding into account 2014-03-04 15:34:10 +01:00
Piotr Sarnacki
0ef732557c Remove unneeded console.log 2014-03-04 14:14:00 +01:00
Piotr Sarnacki
535a873dc0 Make "to top" link visible when scrolling through the log
These are the changes by @dmathieu (reverted at d7bef2b) slightly
changed to allow us to use them also on Travis Pro.

The change is to still use onScroll calculations in order to position
elements instead of using "position: fixed". The latter method is harder
to use when element needs to be positioned relatively to other element -
on Pro we would have to still calculate the position because of the
right sidebar.
2014-03-04 14:07:33 +01:00
Piotr Sarnacki
b4f3eac0bf Merge pull request #259 from rjackson/update-ember
Update to Ember 1.4.0.
2014-03-04 11:40:22 +01:00
Mathias Meyer
c8a348c5b6 Set all flex vendor attributes when maximized. 2014-03-03 17:36:08 +01:00
Piotr Sarnacki
a060b08552 Use not minified pusher, it's easier to debut and we minify it anyway 2014-02-27 20:53:24 +01:00
Piotr Sarnacki
046abf397c Don't silence pusher warnings 2014-02-27 19:16:40 +01:00
Piotr Sarnacki
be0f601a4c Subscribe in a way which is currently documented in pusher docs 2014-02-27 19:16:40 +01:00
Piotr Sarnacki
077f555af3 Update pusher to 2.2.0-rc1 2014-02-27 19:16:39 +01:00
Mathias Meyer
c8b6ecb101 Fix link to docs.
[ci skip]
2014-02-26 23:11:14 +01:00
Piotr Sarnacki
b5963ba31d Remove the rest of text stubs in insufficient oauth permissions 2014-02-25 11:17:52 +01:00
Piotr Sarnacki
78ff50ce68 Remove existing user text stub on insufficient oauth permissions page 2014-02-24 23:46:24 +01:00
Piotr Sarnacki
39b8af12f9 Merge branch 'insufficient-oauth-permissions'
Conflicts:
	assets/scripts/app/routes.coffee
2014-02-24 23:33:14 +01:00
Piotr Sarnacki
7ef7da5535 Redirect to getting started only from index route
Also rename renderNoOwnedRepos to redirectToGettingStarted
2014-02-20 15:28:38 +01:00
Piotr Sarnacki
8c513fd7d2 Use action bubbling instead of checking for contructor in AuthRoute 2014-02-19 16:17:31 +01:00
Mathias Meyer
98f1e62047 Decrease line-height for switches.
The label not being vertically centered was driving me mad.
2014-02-18 11:56:20 +01:00
Mathias Meyer
b2bfb6c3e9 Rename properties/bindings for unadministerable hooks. 2014-02-18 11:56:19 +01:00
Mathias Meyer
81cf02cd3b It's GitHub. 2014-02-18 11:56:19 +01:00
Piotr Sarnacki
f123162627 Use Em.computed.sort and Em.computed.limit instead of nesting proxies
With new array computed helpers we can simplify code and get rid of
nested array proxies.
2014-02-18 10:13:41 +01:00
Piotr Sarnacki
36db80d45f Add Ember.computed.limit and use it in LimitedArray
arrayComputed was added recently in order to make array computations
easier. Using arrayComputed we can improve LimitedArray which now uses
an isolated multipurpose Ember.computed.limit.
2014-02-18 10:00:33 +01:00
Piotr Sarnacki
8e040912ec Still redirect to getting started, but render it in 'main' outlet
Rendering views outside of routes cycle seems problematic at the moment,
so redirection is our best bet. However, the way I initially did it in
cc90200 causes problems for people who don't have any own repositories
set up for Travis CI, but still want to log in and browse around -
rendering getting started page as a full page hides left sidebar with a
list of repositories.

This commit changes getting started page to render in the main outlet,
just as before redirection changes.
2014-02-17 11:26:28 +01:00
Robert Jackson
69d566b1a1 Update to Ember 1.4.0. 2014-02-15 21:28:02 -05:00
Piotr Sarnacki
cc90200d66 Instead of rendering getting started page, just redirect to it
It would be nice to allow to just render getting started page, but
because of the way we manage layouts, it's hard to get it running
without weird bugs popping up now and then. This should be easier to
achieve once the templates are cleaned up to use better laout
management.
2014-02-13 15:51:38 +01:00
Piotr Sarnacki
a1c42482b6 Render getting started page into application level 2014-02-13 15:26:52 +01:00
Piotr Sarnacki
9bd9ab2b0a Make sure that menu is on top 2014-02-13 12:28:55 +01:00
Piotr Sarnacki
bbba892e7b Don't automatically toggle hook switches
Hook switches are toggled in the controller "toggle" action, so if we
toggle them in the component and then in the controller, it will just
return to the original state.
2014-02-12 17:58:19 +01:00
Piotr Sarnacki
0679fc260c Revert "Revert "Use switches on settings pane""
This reverts commit e5ae06afeb.
2014-02-12 17:33:42 +01:00
Henrik Hodne
e5ae06afeb Revert "Use switches on settings pane"
This reverts commit 357b176f93.

This commit seems to be where the bug with enabling hooks was
introduced, and reverting this commit seems to fix that bug.

Conflicts:
	assets/scripts/app/controllers.coffee
	assets/scripts/app/templates/repo/settings.hbs
2014-02-12 09:55:24 -06:00
Henrik Hodne
2450f9fe9d Revert previous revert
I found the commit that caused the bug that caused me to do the last
revert. I'm therefore reverting the previous revert and I will be
committing a revert that reverts the commit that introduced the bug. See
next commit.

This reverts commit db2d38a7af.
2014-02-12 09:54:24 -06:00
Henrik Hodne
db2d38a7af
Revert setting panel deploy
This seems to have caused issues with enabling the hooks for
repositories.
2014-02-12 09:14:47 -06:00
Piotr Sarnacki
3426a8b95f Notify only on error when saving settings 2014-02-12 13:17:26 +01:00
Piotr Sarnacki
8d19410264 Merge remote-tracking branch 'origin/settings-pane'
Conflicts:
	assets/scripts/app/controllers.coffee
	assets/scripts/app/routes.coffee
	assets/scripts/app/views/repo/show.coffee
2014-02-12 11:52:01 +01:00
Piotr Sarnacki
f29ee2372a Fix specs
Change in mocks.coffee broken specs - using repos variable was shadowing
global repos array.
2014-02-12 10:37:07 +01:00
Piotr Sarnacki
ce74220f28 Don't reopen Ember.Route
A better way is to provide Travis.Route, which will be used by default
when generating route objects.

There is also no need to define actions for all the routes as they are
needed only in ApplicationRoute (ie. when they're not handled by other
routes).
2014-02-12 08:55:55 +01:00
Piotr Sarnacki
e5749b0629 Fix handling not existing repos
Also ensure that we don't break it again with an integration test.
2014-02-12 08:02:47 +01:00
Piotr Sarnacki
a8784a58fa Use index/loading template instead of IndexLoadingRoute
By default Ember.js will use either IndexLoadingRoute or index/loading
template. Before this commit we were specyfing IndexLoadingRoute, which
was renderring index_loading template. This is not needed as long as we
use index/loading template - the effect is the same, but we use a
default.
2014-02-12 07:48:44 +01:00
Piotr Sarnacki
03e8745dc3 Bubble the error to top if we don't handle it in Ember.Route
A proper thing to do when an error is not handled is to bubble it up
rather than using throw (which we were using before this commit).
2014-02-12 07:46:56 +01:00
Piotr Sarnacki
71e5959f4e Properly handle notFound URL
We handled notFound URL using an old hack, which no longer works. The
proper way now is to handle a "catch all" route.
2014-02-12 07:45:32 +01:00
Henrik Hodne
31d77c1ad9 Merge pull request #255 from travis-ci/hh-switch-restart-endpoint
fix(models): update the endpoint used to restart jobs and builds
2014-02-10 14:15:46 -06:00
Robert Jackson
10d9317f5f Update Ember to mitigate CVE-2014-0046.
Details here:

https://groups.google.com/forum/#!topic/ember-security/1h6FRgr8lXQ
2014-02-07 15:36:44 -05:00
Henrik Hodne
1b7aba494a
fix(models): update the endpoint used to restart jobs and builds
/requests is deprecated
2014-01-30 17:19:15 -06:00
Piotr Sarnacki
8e3134d495 Update log engine 2014-01-29 14:43:44 +01:00
Piotr Sarnacki
803c7d0278 Fix flex CSS
We used flex CSS features from both old and new specification.
Furthermore, we weren't using moz and ms prefixes for a new model, which
may have also made it worse in IE and Firefox.

This commit changes CSS to use new flexbox implementation with all the
prefixes (which should not be needed for current versions, but it won't
hurt to keep them for a while).
2014-01-29 14:35:59 +01:00
Piotr Sarnacki
0d40f2322e Merge pull request #245 from dmathieu/refactor_folder
Refactor the log folder and test the logs view
2014-01-29 02:49:58 -08:00
Damien Mathieu
5ef0302243 automatically unfold lines starting or ending an highlight 2014-01-29 09:10:50 +01:00
Henrik Hodne
e716c5d569
feat(repo-tools): show status image popup to everyone
If you can see the repository, then you should also be able to see the
status of said repository (and status image), so you should also be able
to copy the link to a status image.

Close travis-ci/travis-ci#1881.
2014-01-28 19:46:30 -06:00
Piotr Sarnacki
5562e72492 Update ember-model 2014-01-28 22:41:51 +01:00
Piotr Sarnacki
c808d3d3b8 Add sideloaded records to record arrays 2014-01-28 22:41:50 +01:00
Mathias Meyer
af07dfb29e Remove console.log of language. 2014-01-28 20:58:01 +01:00
Hiro Asari
1987a97ec1 Add missing header for pull request 2014-01-28 12:21:11 -05:00
Hiro Asari
1cbf3ffc1e Fix message that got mangled by the locale removal [skip ci] 2014-01-28 12:06:47 -05:00
Damien Mathieu
9571ce09e3 add integration specs to the log view 2014-01-28 17:23:15 +01:00
Damien Mathieu
6608032652 refactor and test the log folder 2014-01-28 17:23:15 +01:00
Hiro Asari
2c079ae937 Label Rst and POD correctly 2014-01-28 09:57:54 -05:00
Piotr Sarnacki
c3008c1f78 Add mappings for sideloading annotations 2014-01-28 15:33:22 +01:00
Mathias Meyer
36ee4c183c Fix links to point to new documentation site. 2014-01-28 12:42:26 +01:00
Mathias Meyer
6254fa9664 It's GitHub. 2014-01-28 12:42:17 +01:00
Hiro Asari
853a59141f Remove top border for annotations [skip ci] 2014-01-27 14:15:34 -05:00
Hiro Asari
e00b938f4d Merge pull request #190 from travis-ci/hh-annotations
Annotation support (#1220)
2014-01-27 08:41:52 -08:00
Piotr Sarnacki
82b9df2fef Capitalize labels in job and build headers 2014-01-27 13:24:50 +01:00
Piotr Sarnacki
360b32a4f2 Merge branch 'updated-styles'
Conflicts:
	assets/scripts/app/templates/layouts/top.hbs
	assets/scripts/app/templates/repos/list.hbs
2014-01-27 13:02:05 +01:00
Hiro Asari
634fca454e Use bind-attr instead of the deprecated bindAttr 2014-01-25 17:29:56 -05:00
Hiro Asari
62fd40f51e Tell TravisApplication about the Annotation model 2014-01-25 17:14:35 -05:00
Hiro Asari
26c5cf2a05 Add status image example for POD
Fixes https://github.com/travis-ci/travis-web/issues/235

Note the height attribute is removed from `#status-image`.
We now let browser decide how tall the popup will be.
2014-01-25 09:06:25 -05:00
Hiro Asari
364fb119c9 Add newline 2014-01-24 10:32:42 -05:00
Hiro Asari
715b1a2d36 Drop image and add status for Annotation 2014-01-24 10:32:11 -05:00
Hiro Asari
9e2a8cb218 Merge branch 'master' into hh-annotations
Conflicts:
	assets/scripts/app/controllers/job.coffee
	assets/scripts/app/models/job.coffee
2014-01-24 10:18:58 -05:00
Justine Arreche
7d9db8cbae restyled general settings 2014-01-24 10:04:12 -05:00
Piotr Sarnacki
357b176f93 Use switches on settings pane 2014-01-21 18:46:36 +01:00
Piotr Sarnacki
d41d6de175 Merge branch 'master' into settings-pane
Conflicts:
	assets/scripts/app/templates/profile/tabs/hooks.hbs
2014-01-21 18:01:42 +01:00
Piotr Sarnacki
8e5111da88 Convert switches in profile to components 2014-01-21 17:57:35 +01:00
Piotr Sarnacki
d7bef2b94e Revert tailing changes 2014-01-20 15:00:34 +01:00
Piotr Sarnacki
492802920e Use pushState to set urls
It seems that directly setting location.hash directly doesn't play nice
with Ember.js URL handling - using it to handle line numbers results in
weird bugs (URL stops being updated after setting hash manually).

This commit gets back to using window.history.pushState() which was
changed to direct hash manipulation in ff1aad3
2014-01-20 14:24:05 +01:00
Mathias Meyer
84037fb3c3 Fix links to blog and docs. 2014-01-20 12:50:08 +01:00
Hiro Asari
8b6be08ef4 Merge branch 'master' into settings-pane
Conflicts:
	assets/scripts/app/routes.coffee
	assets/scripts/app/templates/profile/tabs/hooks.hbs
2014-01-17 07:09:04 -05:00
Piotr Sarnacki
eb54463d35 Remove reference to I18n 2014-01-16 21:08:47 +01:00
Piotr Sarnacki
896c79dd16 Remove the rest of the locales related stuff 2014-01-15 14:40:56 +01:00
Piotr Sarnacki
8801fe7e6c Replace all of the uses of translation helper with plain text
We're removing translations from Travis, the substitution was done using
this script: https://gist.github.com/drogus/8436273
2014-01-15 14:35:01 +01:00
Justine Arreche
f6491297c1 removed instances of locales in current_user and user 2014-01-14 14:01:40 -05:00
Piotr Sarnacki
4cf6f0542e Update Ember to 1.3.1 2014-01-14 18:25:36 +01:00
Justine Arreche
35e7fc4f55 removed instances of locales from app and auth coffeescript files 2014-01-13 15:03:18 -05:00
Justine Arreche
67b970015f removed set and default locale from app.coffee 2014-01-13 13:53:33 -05:00
Justine Arreche
5500dbb31c removed locales from profile.coffee 2014-01-13 12:05:32 -05:00
Hiro Asari
f5b49f4af7 Add specs for link-ifying commit references 2014-01-13 09:08:26 -05:00
Hiro Asari
4e24d9835a HTTPS everywhere for github.com 2014-01-11 15:11:03 -05:00
Hiro Asari
2b65686636 Rearrange github link helpers
So that regex and transformation appear together.
2014-01-11 13:42:34 -05:00
Hiro Asari
9ed3e66206 Detect and link-ify github commit ref in log
Addresses https://github.com/travis-ci/travis-ci/issues/1470
2014-01-11 13:40:23 -05:00
Hiro Asari
97d73ad98c Tweak ANSI cyan values
to values indicated in Standard VGA colors in https://en.wikipedia.org/wiki/ANSI_escape_code

Fixes https://github.com/travis-ci/travis-ci/issues/1667
2014-01-11 13:04:50 -05:00
Hiro Asari
496e67070f Darken ANSI green
Fixes https://github.com/travis-ci/travis-ci/issues/1217
2014-01-10 23:37:17 -05:00
Justine Arreche
072e89ad8e removed locale dropdown in profile and removed colon separators 2014-01-10 14:32:30 -05:00
Justine Arreche
e8c6bc3745 Removed duplicate duration icon 2014-01-10 13:42:51 -05:00
Justine Arreche
007c53c909 removed duration-icon span to resolve duplicate clock icons 2014-01-10 13:34:49 -05:00
Piotr Sarnacki
2c6c09e88b Update ember.js with 1.3.0 without conflicts 2014-01-10 18:04:49 +01:00
Piotr Sarnacki
7ddeb5cfa8 Remove the conflict from tools.hbs 2014-01-10 17:33:46 +01:00
Justine Arreche
8fb194b557 Merge branch 'master' of https://github.com/travis-ci/travis-web into updated-styles 2014-01-10 10:49:43 -05:00
Justine Arreche
909da95d0f Updating branch from master 2014-01-09 15:19:42 -05:00
Hiro Asari
6ec13ceee1 Merge pull request #240 from dmathieu/multiple_lines
Highlight multiple lines
2014-01-09 10:41:28 -08:00
Damien Mathieu
228afe9a63 store the last selected line and use it as the other end for multiple selection 2014-01-09 17:31:47 +01:00
Damien Mathieu
ff1aad3f03 extract the log lines selector into a separate component 2014-01-09 15:53:33 +01:00
Piotr Sarnacki
e0c062ad15 Add ember.prod.js 2014-01-09 13:19:29 +01:00
Piotr Sarnacki
34a8ed64de Update log.js 2014-01-09 12:44:38 +01:00
Philip Arndt
4330aa48ed Fixes #236 by setting #top min-width to 930px to match #left plus #main 2014-01-09 08:55:21 +13:00
Piotr Sarnacki
c8cc13df59 Change submit to save 2014-01-08 12:17:57 +01:00
Robert Jackson
8d681e85af Use link-to instead of deprecated linkTo. 2014-01-07 21:02:24 -05:00
Robert Jackson
cb3d41739b Use bind-attr instead of deprecated bindAttr. 2014-01-07 21:00:26 -05:00
Robert Jackson
5260fac6dc Update to Ember 1.3.0. 2014-01-07 20:51:01 -05:00
Damien Mathieu
c9e0f07a5a highlight multiple lines
We can now highlight multiple lines, adding #L1-L2 to the hash.
We can select the ending line with shift + click.

Closes travis-ci/travis-ci#1829
2014-01-07 21:46:19 +01:00
Piotr Sarnacki
c80a4e4160 No need to abort transition: rejecting will abort automatically 2014-01-07 21:17:20 +01:00
Justine Arreche
69ed05b181 changed gravatar size to 200 for optimized retina displays 2014-01-03 20:24:40 -05:00
Justine Arreche
d324319a96 changes made to profile page including increased type size for readability, color styling and gravatar border radius increase 2014-01-03 19:10:58 -05:00
Mathias Meyer
d569938687 Fix typo in Code Climate popup. 2014-01-02 12:26:34 +01:00
Hiro Asari
4d83e1a4cb Remove urlAuthor and urlCommitter fields
No longer in views, so no need to keep these.
2013-12-31 23:21:10 -05:00
Hiro Asari
80510badff Remove mailto: URLs
Addresses https://github.com/travis-ci/travis-ci/issues/1807
2013-12-31 19:47:28 -05:00
Piotr Sarnacki
f457a0974c Merge pull request #233 from dmathieu/tailing
Refactor tailing and test it
2013-12-19 09:17:32 -08:00
Piotr Sarnacki
536866d7d6 Get config headers only from jobs when preparing jobs table
After changes in travis-core, irrelevant headers are removed when matrix
is expanded. For example python version is removed from a ruby build.
Build's config is not altered, so in order to get only effective keys,
we need to iterate over jobs.
2013-12-19 14:05:23 +01:00
Piotr Sarnacki
cc026b75a8 Make settings header link to repo page 2013-12-18 11:19:06 +01:00
Piotr Sarnacki
c48f70a38b Finish test for settings-input 2013-12-18 11:02:25 +01:00
Piotr Sarnacki
8aafb8d4e6 Bring back 'outlet pane' and 'outlet pane'
For some reason (I haven't had time to debug it) when we don't use named
outlet rendering "into" does not work in certain circumstances (for
example in index current view, where repos are changed automatically).
2013-12-18 11:02:25 +01:00
Piotr Sarnacki
c8575b3f63 Forgot to add repo-settings.png 2013-12-18 11:02:24 +01:00
Piotr Sarnacki
3a15b037da Link to repo settings from a hooks page 2013-12-18 11:02:24 +01:00
Piotr Sarnacki
8482c4c286 Move settings out of the profile page 2013-12-18 11:02:24 +01:00
Piotr Sarnacki
ac6b394ec4 Display settings link in the cog menu 2013-12-18 11:02:23 +01:00
Piotr Sarnacki
c18222ea51 Settings pane
This commit contains a settings pane implementation. There are a couple
of things here, which are not used yet, like advanced form helpers. I'm
leaving them here, because the plan is to add support for more settings
soon (like: include/exclude branch patterns), which will need these
helpers.

There is also tabs support, although in the current version there is
only one tab (initially it was created for supporting general tab and
notifications tab).
2013-12-18 11:02:23 +01:00
Hiro Asari
eb3ec57be1 Merge pull request #234 from travis-ci/ha-feature-gh234-pretty_build_key_headers
Build Matrix keys should be more flexible than just being camelized
2013-12-16 07:23:05 -08:00
Hiro Asari
c2db169b4a Fix typo [skip ci] 2013-12-15 00:54:19 -05:00
Hiro Asari
ade98c7e44 Polish build matrix table header
Instead of uniformly camelizing the headers, use a map of headers
each build matrix key should display in the table
2013-12-15 00:50:48 -05:00
Damien Mathieu
1920785f50 fix regression when going below the log zone
Since a431b68c28, when going below the max
of the log files, the position button would remain in fixed position.
This fixes it.
2013-12-13 17:09:15 +01:00
Damien Mathieu
10d49c6983 refactor and add tests to tailing 2013-12-13 15:27:33 +01:00
Piotr Sarnacki
7a93a9f915 Move events to _actions hash 2013-12-12 15:06:58 +01:00
Hiro Asari
f8370a2236 Display 'os' as build matrix dimension 2013-12-11 16:51:11 -05:00
Piotr Sarnacki
a252e34771 Fix github mention regexp
While merging a pull request I haven't noticed that the first part of
regexp will always match a beginning of the line.
2013-12-11 14:56:15 +01:00
Piotr Sarnacki
86f660310f Add index_loading template 2013-12-11 12:43:11 +01:00
Piotr Sarnacki
b016ba2293 More logging 2013-12-11 12:43:10 +01:00
Piotr Sarnacki
bfdc2d7e6c Comment sync spec
I can't get it working because of mockjax shortcomings (ie. overwriting
existing entries doesn't work).
2013-12-11 12:43:10 +01:00
Piotr Sarnacki
1f0b068992 Pass ids as params to ajax to make it easier to debug it in chrome 2013-12-11 12:43:10 +01:00
Piotr Sarnacki
a2bc840292 Use more fetch instead of find
fetch method returns a promise instead of an actual object. We used find
before, because this was the way we did things before upgrade to Ember
Model. Returning a promise from a model hook pauses router rendering for
the time a resource is loading, which makes it much easier to deal with
asynchronous requests. Thanks to that we can remove parts of the code,
which dealt with it manually.
2013-12-11 12:43:09 +01:00
Piotr Sarnacki
c751b7a8a4 Fix specs
After update specs fail when there is an unexpected ajax query, because
the response is not an ajax response.

A long term solution is to remove mockjax from specs, because it makes
them brittle and they usually fail after small changes. A better
approach would be to use fixtures, which are available for ember model
2013-12-11 12:43:09 +01:00
Piotr Sarnacki
5b5a9d7839 Update Ember Model 2013-12-11 12:43:09 +01:00
Piotr Sarnacki
edb4e19309 Run lastBuildDidChange only once for a runloop run
When a lot of pusher events come with build updates, lastBuildDidChange
can run quite frequently. We can avoid that by using scheduleOnce, which
will ensure that only the last invocation of lastBuildDidChange will be
run for a given runloop run.
2013-12-11 12:43:08 +01:00
Piotr Sarnacki
21fecf855a Reference lastBuildId instead of lastBuild when checking for existance
Referencing lastBuildId will not trigger loading a build record, which
will lower ajax queries number.
2013-12-11 12:43:08 +01:00
Piotr Sarnacki
4f31ce57cf Update Ember.js to 1.2.0 2013-12-11 12:43:08 +01:00
Piotr Sarnacki
18a7f9b09e Merge pull request #227 from dmathieu/fluid_scrolling_buttons
Fluid scrolling buttons
2013-12-11 03:42:43 -08:00
David Celis
aeebe85308 Do not githubify sign-off messages
Don't successfully `githubify` strings prepended with an `@` symbol if
what's matched actually resembles an email address. @mentions should
only be githubified if there is a word boundary before it.

This fixes travis-ci/travis-ci#1591

Signed-off-by: David Celis <me@davidcel.is>
2013-12-10 12:54:06 -08:00
Dmitry Malikov
1041b59246 Add ghc to CONFIG_KEYS 2013-12-09 22:09:37 +04:00
Damien Mathieu
a431b68c28 make the back to top fixed and fluidify the follow scrolls
Fixes #89
2013-12-05 16:01:51 +01:00
Piotr Sarnacki
07e0620b23 Fix duplicated broadcasts 2013-12-04 16:20:16 +01:00
Damien Mathieu
347cb0f887 actions need in views need to be in their own namespace, not in events anymore 2013-12-04 15:32:52 +01:00
Hiro Asari
f86a7f8973 Merge pull request #223 from travis-ci/ha-bug-ci_gh1659
Style 'grey' class
2013-12-02 05:35:16 -08:00
Piotr Sarnacki
4ddee83cc5 Merge pull request #220 from travis-ci/ps-allow-to-cancel-on-pull-permissions
Allow to cancel build on pull permissions
2013-11-28 03:55:15 -08:00
Hiro Asari
9c2be87ac2 Lighten $ansi-grey 2013-11-27 01:20:55 -05:00
Hiro Asari
9e3700752e Style 'grey' class 2013-11-22 08:32:02 -05:00
Greg Karékinian
d5bb233df0 Align line numbers with CSS
It looks good up to 9999

Refs #222
2013-11-20 13:01:37 +01:00
Piotr Sarnacki
6f3d291d3e Allow to cancel build on pull permissions 2013-11-13 12:07:00 +01:00
Piotr Sarnacki
46e04c4f3f Restarts should be available for pull permissions as well 2013-11-12 17:41:27 +01:00
Sven Fuchs
eaf260a516 Revert "Display repos with no builds, but which are active in 'My repositories'"
This reverts commit fbed80f166.

Conflicts:
	assets/scripts/app/templates/repos/list.hbs
2013-11-12 16:06:26 +01:00
Hiro Asari
758ad40349 Fix typo 2013-11-07 11:50:12 -05:00
Hiro Asari
b72cc319cc Reduce number of AJAX requests 2013-11-06 15:57:16 -05:00
Hiro Asari
3f30eecc7d Add granular permission levels to User
Display buttons for job control only if the user has permission to do
so.
2013-11-06 15:00:46 -05:00
Sven Fuchs
6d52827576 timeago: assume "now" when date is in the future 2013-11-05 15:48:30 +01:00
Piotr Sarnacki
06d90dbc9b Merge branch 'master' into insufficient-oauth-permissions
Conflicts:
	assets/scripts/app/routes.coffee
2013-10-31 15:52:59 +01:00
Nick Schonning
b21f9f82fb travisci.com to travis-ci.com
travisci.com emits a 301
2013-10-30 13:15:41 -04:00
Piotr Sarnacki
190bf9e837 Use lastBuildHash on repo, not lastBuild
lastBuildHash uses information for last build, which is available on the
repo object, so it will not trigger an ajax request if we haven't
fetched a build yet.
2013-10-30 14:36:32 +01:00
Piotr Sarnacki
018eafe84b Fix problem with getting started template rendering on first sync
When first sync template is displayed, user usually doesn't have any
repos, which also triggers rendering of getting started template. The
fix for this is to handle the action to render getting started page on
first sync and do nothing in such case.

I also added a test to ensure that it works correctly.
2013-10-29 20:48:27 +01:00
Piotr Sarnacki
fbed80f166 Display repos with no builds, but which are active in 'My repositories'
When user activates a repository in the profile page, we now will
display this repository on the 'My Repositories' list. When user chooses
this repository, she will see an explenation why there is no builds and
what could be done to fix this.

Conflicts:
	assets/scripts/app/controllers.coffee
	assets/scripts/app/models/repo.coffee
	assets/scripts/app/templates/repos/list.hbs
2013-10-29 18:05:23 +01:00
Justine Arreche
b100565048 removed smile from crying travis 2013-10-28 17:56:00 -04:00
Justine Arreche
745e2da628 modified travis-crying icon to have sad beard 2013-10-28 12:26:18 -04:00
Justine Arreche
de02f0d028 styling to github oauth error page and added travis-crying icon 2013-10-28 11:55:25 -04:00
Piotr Sarnacki
7363a1d7ef Render builds/not_found and repo/not_found in the next runloop run
This is done to make sure that if something else render just after
not_found, not_found will still be rendered.
2013-10-27 00:32:58 +02:00
Piotr Sarnacki
796e830a36 Add page about insufficient oauth permissions 2013-10-25 13:10:22 +02:00
Piotr Sarnacki
6a9510413d Use loading_link class instead of default loading on links
loading class conflicts with some of our CSS entries
2013-10-24 18:03:14 +02:00
Justine Arreche
15dc5ff921 added vertical align top to .slug 2013-10-21 21:19:37 -04:00
Justine Arreche
75ae8d7d14 Merge branch 'master' of https://github.com/travis-ci/travis-web 2013-10-21 20:04:30 -04:00
Justine Arreche
1210d07a90 changed #right .slug to inline 2013-10-21 20:04:13 -04:00
Piotr Sarnacki
b5297d7800 Update code for newest ember-model 2013-10-18 13:41:10 +02:00
Piotr Sarnacki
b3ce14cc22 Update ember to 1.1.beta and ember-model to newest version 2013-10-18 13:41:10 +02:00
Piotr Sarnacki
9958de3191 Add record to record arrays in adapter
Ember Model does not do it automatically. I had a patch, which was
changing that, but after giving it more thought, I think it's not a good
idea - this should be up to adapter if the records are going into
record arrays.
2013-10-18 13:41:09 +02:00
Justine Arreche
af65c668d1 bringing in darker #left div bg color for master app.css 2013-10-16 13:09:48 -04:00
Justine Arreche
9fb54749be darkened #left div a bit to reduce amount of white on page for people with less repos 2013-10-16 12:55:35 -04:00
Justine Arreche
14d7c0405c adding white color for anchors in flash messages 2013-10-15 13:58:46 -04:00
Justine Arreche
4bde44e40e added color white to flash class anchor tag 2013-10-15 13:45:56 -04:00
Justine Arreche
e5363fc64d added stylesheet ref for google fonts and added backup helvetica and sans-serif to app sass and getting started 2013-10-14 17:34:14 -04:00
Josh Kalderimis
4abee5edca remove some duplicated content due to a bad merge 2013-10-14 23:17:02 +02:00
Josh Kalderimis
c699d48337 Merge branch 'updated-styles' 2013-10-14 17:37:28 +02:00
Justine Arreche
b9a7916cf4 changed colors of build error/success messages to fit new color scheme, adjusted message positioning and added a white version of the close icon 2013-10-10 18:39:28 -04:00
Justine Arreche
3c90e42ecf fixed positioning of #profile right bar 2013-10-10 01:06:58 -04:00
Justine Arreche
3d8a72a074 fixed border colors for all tip boxes 2013-10-09 14:13:50 -04:00
Justine Arreche
3278b1e308 centerd tab titles 2013-10-09 13:14:11 -04:00
Justine Arreche
ced2bc63f6 fixed alignmnt of Mr. T 2013-10-08 16:57:17 -04:00
Justine Arreche
bdc84746f8 WIP - added inline-block to both span and .mascot in attemps to fix Mr. T 2013-10-08 15:48:09 -04:00
Justine Arreche
a57952e2f8 WIP fixing auth page, successfully fixed firefox button bug 2013-10-08 15:11:27 -04:00
Justine Arreche
68d71c33b5 lightened show more button to closer reflect tools buttons 2013-10-08 01:28:40 -04:00
Justine Arreche
588536e360 styled show more builds button 2013-10-08 01:26:11 -04:00
Justine Arreche
dda961c117 fixed profile left cells to be clickable 2013-10-07 18:30:55 -04:00
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
9c078575c1 Merge branch 'updated-styles' of https://github.com/travis-ci/travis-web into updated-styles 2013-10-05 14:25:43 -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
Josh Kalderimis
78c53dd500 change the log font size to 12 2013-10-05 15:46:19 +02: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
Aaron Hill
7218655cf4 Added tests for clearing log when a job is started or requeued 2013-10-04 16:51:28 -04:00
Justine Arreche
0feb1684dc added new screenshot for build email notification img 2013-10-04 16:01:06 -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
d75a2f64a6 increased width of #left to account for longer repo users/names 2013-10-03 18:09:21 -04:00
Justine Arreche
b5a27c5d21 reduced width of #left to 260px 2013-10-03 18:05:46 -04:00
Justine Arreche
9d39402f2d additional styling to auth page and new icon for finished label 2013-10-03 18:00:54 -04:00
Justine Arreche
872ebca991 removed overflow scroll to fix dropdowns 2013-10-02 17:40:47 -04:00
Justine Arreche
f1163977e6 adjustments to #top and #right bars for increased responsiveness in all browsers 2013-10-02 16:55:12 -04:00
Justine Arreche
45b37345ba added a min width to #top to prevent the user wrapping 2013-10-02 13:15:52 -04:00
Justine Arreche
e59ed8766a replaced box-flex and altered #left min/max width 2013-10-02 12:14:35 -04:00
Justine Arreche
87046b60f1 Added max and min width to #left to fix chrome bug 2013-10-02 12:02:00 -04:00
Justine Arreche
d972c81eb1 changed min-widths on #left and #main to resolve sidebar bugs 2013-10-02 10:21:25 -04:00
Mathias Meyer
3b3d36a98a Make build email ever so slightly wider. 2013-10-02 15:55:19 +02:00
Justine Arreche
3ebeb3b262 fixed top logged in profile right margin to align with the rest of the app 2013-10-02 09:44:56 -04:00
Justine Arreche
3f5c5a0a50 Changed bg color of #right to match search_box, removed border radius and changed margin-top to align with #main h3 2013-10-02 09:34:18 -04:00
Justine Arreche
6a011f3c88 Removed radius on buttons and profile message container, styled buttons to new colors, increased top-padding on profile #main div 2013-10-02 09:25:30 -04:00
Justine Arreche
6492fdccb1 replaced first build and first project no recent screen shots and started re-styling switch class 2013-10-02 08:19:00 -04:00
Justine Arreche
4bf98f5515 removed opacity on build message 2013-10-01 19:52:06 -04:00
Justine Arreche
df139ec475 fixed line height on nav to align with travis logo 2013-10-01 19:16:37 -04:00
Justine Arreche
64e10f4f61 fixed spinner height to be inline with avatar 2013-10-01 19:06:18 -04:00
Justine Arreche
0dea38af7c replaced #left back to 380px wide 2013-10-01 17:44:01 -04:00
Justine Arreche
d4ae21251e lightened up the log bg by 10% 2013-10-01 17:42:31 -04:00
Justine Arreche
593f3425bd increased size and fixed positioning of avatar 2013-10-01 17:18:42 -04:00
Justine Arreche
82c8ac67dc adjusted positioning on topbar dropdown to remove overlap 2013-10-01 17:10:30 -04:00
Justine Arreche
70c0d02d2e reduced max-width of #left to 350px 2013-10-01 17:07:09 -04:00
Justine Arreche
c63461f6c3 fixed positioning on logged in img avatar 2013-10-01 16:34:27 -04:00
Justine Arreche
314b0e9dff removed gradient and border radius from tools and updated tools-button.png to reflect the rest of the tools changes 2013-10-01 16:02:03 -04:00
Justine Arreche
6bc3c66f78 changed repo title to warm grey, changed odd list bg color two very light warm grey 2013-10-01 12:35:41 -04:00