Commit Graph

101 Commits

Author SHA1 Message Date
Piotr Sarnacki
23dd688d09 [pro-merge] Add token to log urls when in pro mode 2014-12-29 18:17:58 +01:00
Piotr Sarnacki
66be22af68 Fix actions on views
Almost all actions on views were not properly handled, because they were still
methods directly on a view object rather than in `actions` property. This commit
fixes it.
2014-12-29 18:17:55 +01:00
Piotr Sarnacki
5f2f4c3852 First stab at fixing weird view errors
This commit starts refactoring of one of the remaining areas where we do weird
tricks to get the desired behaviour. Namely, we were treating "my_repositories"
and "recent" not as individual routes with separate URLs, but only different
states on the repos controller. Such approach leads to various problem with
connecting outlets on rerenders (ie. we don't explicitly connect outlets when
changing from one view to another programatically).

A new cleaner way is to change both tabs into routes.
2014-12-29 18:17:55 +01:00
Piotr Sarnacki
09eeeaff1b Revert "Revert "Merge pull request #308 from rwjblue/update-ember""
This reverts commit 840ce5a47d.
2014-12-29 18:16:14 +01:00
Mathias Meyer
b5276ef4a6 Hacky fix to make the status images work again.
The bindings are a bit odd in this setup. The status images view
reaches into the repos/show view to fetch relevant information.
2014-12-12 18:21:46 +01:00
Sven Fuchs
8a3c05fe36 fix repo settings menu to not display the "regenerate key" item when user does not have admin access 2014-12-10 21:30:46 +01:00
Piotr Sarnacki
abb5f422f2 Fix status badge icon 2014-12-10 21:30:43 +01:00
Piotr Sarnacki
c3a843a886 Add button for removing logs 2014-12-10 21:30:43 +01:00
Piotr Sarnacki
840ce5a47d Revert "Merge pull request #308 from rwjblue/update-ember"
After upgrading ember to 1.8.1 tests pass, but I found a few cases where
things break (for example when navigating between certain routes). I'm
reverting for now.

This reverts commit fa5e9179af, reversing
changes made to 978c887123.
2014-11-12 12:11:53 +01:00
Robert Jackson
e66ccfdfcd
Remove view.state checks (in favor of _state). 2014-11-05 12:50:40 -05:00
Piotr Sarnacki
9741ede075 Merge branch 'ps-env-vars'
Conflicts:
	assets/scripts/app/controllers.coffee
	assets/scripts/app/helpers/handlebars.coffee
	assets/scripts/app/templates/repo/settings.hbs
	assets/scripts/app/views/repo/show.coffee
	assets/styles/tabs.sass
	config.ru
2014-08-21 16:02:07 +02:00
Piotr Sarnacki
eecd5187a3 Revert "Revert "Page for displaying caches""
This reverts commit 3d6931c523.
2014-08-12 16:05:21 +02:00
Sven Fuchs
3d6931c523 Revert "Page for displaying caches"
This reverts commit a58688b451.
2014-08-12 15:53:19 +02:00
Piotr Sarnacki
a58688b451 Page for displaying caches 2014-08-05 18:09:24 +02:00
Piotr Sarnacki
568c0e14b8 Display settings in repo pane 2014-07-31 12:26:33 +02:00
Mathias Meyer
1f53f9d100 Fix spelling error in cancellation. 2014-05-20 07:50:26 +02:00
Piotr Sarnacki
57edf811b7 Add requests page 2014-05-12 11:03:10 +02:00
Piotr Sarnacki
31cb3c0bb5 Prevent sending double restart request
When requeue icon was clicked 2 times it was sometimes the case that we
sent 2 requests. This commit prevents that and also adds a little nice
indicator instead of restart button while we're sending the request.
2014-05-05 15:37:08 +02: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
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
Mathias Meyer
af07dfb29e Remove console.log of language. 2014-01-28 20:58:01 +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
Robert Jackson
cb3d41739b Use bind-attr instead of deprecated bindAttr. 2014-01-07 21:00:26 -05:00
Piotr Sarnacki
ac6b394ec4 Display settings link in the cog menu 2013-12-18 11:02:23 +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
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
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
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
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
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
Mathias Meyer
f4acc21d06 WIP: Code Climate UI integration. 2013-09-03 14:26:02 +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
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
92da0c8034 Simplify build/job and tools templates 2013-07-31 13:43:06 +02:00
Piotr Sarnacki
50cdc4cf98 Move checking for errors to router rather than template
Previously we were checking if we should display an error message by
adding if statements in a template. This is not the best way to do
it, because it clutters a template and makes code harder to follow.

In this commit I move rendering error templates to the router. Code for
rendering error when there is no builds is not the best way to do it
either, but it can be improved when new router changes are merged to
Ember's master and a way Ember Data is handling promises is revised and
improved.
2013-06-05 11:37:29 +02:00
Piotr Sarnacki
b432a39fb4 Don't try to connect outlet if current view is desteoyed 2013-05-16 01:56:05 +02:00
Piotr Sarnacki
563c1f8773 destroyed -> isDestroyed 2013-05-16 01:51:57 +02:00
Piotr Sarnacki
685cf1074f Initialize _outlets if it's null 2013-05-16 01:48:06 +02:00
Piotr Sarnacki
df9db80c42 A few improvements for tabs on repos list
* if user is logged out, the default tab should be 'recent'
* when user logs in, the tab is switched to 'my repositories'
* when user logs out, my repositories is hidden again and tab is
  switched to 'recent'
2013-04-30 02:45:16 +02:00
Piotr Sarnacki
8a69df0126 For some reason passing event breaks on chrome 2013-04-05 19:42:53 +02:00