Commit Graph

102 Commits

Author SHA1 Message Date
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
Mathias Meyer
e1bd111224 Change summary on job page, fix more tests.
This brings both pages on par, though the duplication isn't ideal.
2014-05-08 16:31:33 +02:00
Mathias Meyer
1373308475 Delete old summary, fix tests for the builds page.
This commit breaks tests for the job page, but bear with me. It
doesn't have the new layout yet.
2014-05-08 16:00:28 +02:00
Mathias Meyer
2172fb705a Trim the commit message. 2014-05-05 10:13:54 +02:00
Piotr Sarnacki
46e325c7bd Disable tailing specs for now 2014-04-16 09:58:36 +02: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
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
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
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
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
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
Damien Mathieu
5ef0302243 automatically unfold lines starting or ending an highlight 2014-01-29 09:10:50 +01: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
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
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
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
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
896c79dd16 Remove the rest of the locales related stuff 2014-01-15 14:40:56 +01: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
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
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
f457a0974c Merge pull request #233 from dmathieu/tailing
Refactor tailing and test it
2013-12-19 09:17:32 -08:00
Piotr Sarnacki
c48f70a38b Finish test for settings-input 2013-12-18 11:02:25 +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
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
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
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
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
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
b5297d7800 Update code for newest ember-model 2013-10-18 13:41:10 +02:00
Josh Kalderimis
c699d48337 Merge branch 'updated-styles' 2013-10-14 17:37:28 +02: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
Aaron Hill
7218655cf4 Added tests for clearing log when a job is started or requeued 2013-10-04 16:51:28 -04: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
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
30d273a648 Fix specs 2013-08-29 01:19:35 +02:00