Commit Graph

100 Commits

Author SHA1 Message Date
Piotr Sarnacki
8ccd95e0b0 Fix build view and links on left sidebar 2013-02-21 23:22:51 +01:00
Piotr Sarnacki
f0e95ddd3f Main view mostly works on new router 2013-02-21 23:22:51 +01:00
Piotr Sarnacki
829e1a4001 Fix routes code if google analytics is not loaded 2013-02-18 23:46:42 +01:00
Sven Fuchs
fb96164db8 just depend on the ga code 2013-02-08 15:30:49 +01:00
Sven Fuchs
2e8a197933 relax checking for non-production hosts 2013-02-08 15:22:32 +01:00
Sven Fuchs
0322e1a3c8 extract ga code and setup 2013-02-08 14:49:46 +01:00
Piotr Sarnacki
f3b37b9aaf Add redirect on /jobs/:id/log.txt and /builds/:id/log.txt 2013-01-16 13:14:46 +01:00
Piotr Sarnacki
ae9ff005d3 Don't throw error when repo can't be find
When visiting page of repo that doesn't exist, we should not throw an
error. It still does not work as expected, redirecting to
/undefined/undefined, which should be addressed as well, but at least we
don't throw errors now.
2013-01-08 15:01:49 +01:00
Randy Morgan
91812fb21c Connected flash outlet for profile 2012-12-11 13:17:24 +09:00
Sven Fuchs
d005f241ba fix things after rebase 2012-12-09 15:16:27 +01:00
Piotr Sarnacki
834e45ceb5 Don't require loading repos when dislaying queues and workers 2012-11-27 22:36:15 +01:00
Piotr Sarnacki
cdbfac1166 Add google analytics 2012-11-17 12:19:30 +01:00
Piotr Sarnacki
3084dacaef Update Ember.js from drogus/ember.js and fix routes
Default regexp used in ember does not work well for us. With repos
starting with 'stats', ember will match such url for /stats/ page, even
though the rest of the url is different, I added ability to overwrite
default regexp.
2012-11-16 17:36:13 +01:00
Piotr Sarnacki
cbd25b8821 Revert "Slugs are case insensitive now (closes #51)"
This reverts commit 8fb481cdd0.
2012-11-16 15:42:50 +01:00
Piotr Sarnacki
8fb481cdd0 Slugs are case insensitive now (closes #51) 2012-11-16 15:16:57 +01:00
Sven Fuchs
216724af64 changes for pro 2012-11-15 16:31:54 +01:00
Piotr Sarnacki
231f3b8723 Load worker related records from pusher payload 2012-10-24 11:28:01 +02:00
Piotr Sarnacki
a63ac52458 Remove layout views, just change template on application 2012-10-23 01:40:05 +02:00
Piotr Sarnacki
72f14fb594 Do not trigger unnecessary reloads when locale *could* have changed 2012-10-22 21:29:51 +02:00
Piotr Sarnacki
c02f4d860b Fix errors with reload 2012-10-22 19:54:53 +02:00
Piotr Sarnacki
60740a8d3d Remove router hacks
I've implemented things that we need into Ember. We're running from my
fork for now, ideally those changes will be merged into official repo.
2012-10-20 16:36:53 +02:00
Sven Fuchs
853606bcc6 moar routing/auth refactorings 2012-10-19 22:20:45 +02:00
Sven Fuchs
c4b91108a0 refactor routes/auth interaction so that it always calls afterSignIn() 2012-10-19 21:24:18 +02:00
Piotr Sarnacki
82163346b9 We don't have to transitionTo('root') here 2012-10-18 03:38:45 +02:00
Piotr Sarnacki
cb76de3718 Move afterSignIn to auth Route
If we keep it only on states lower than root and afterSignIn is sent
when app is still in root.loading (which is often the case as we need to
wait for repository deserialization), it will try to find afterSignIn on
root.
2012-10-18 03:28:29 +02:00
Sven Fuchs
f91622e7e8 add an events tab 2012-10-16 02:00:24 +02:00
Sven Fuchs
95b7ea03d2 set the reposController to the repoController in connectOutlets 2012-10-13 22:03:10 +02:00
Piotr Sarnacki
7ccbba2959 Don't redirect user if we're already in state that's not auth 2012-10-13 19:00:56 +02:00
Sven Fuchs
d84b5dfd0a add autoSignIn to fix that after signOut it would always re-signin on pages that require auth 2012-10-13 15:52:27 +02:00
Sven Fuchs
44d81af450 make sure we go through the auth check after signout 2012-10-13 15:07:35 +02:00
Sven Fuchs
4689545547 camelize to afterSignIn and add afterSignOut 2012-10-13 15:02:23 +02:00
Sven Fuchs
2485a7bcb9 fix router after_signin behaviour 2012-10-13 14:51:12 +02:00
Sven Fuchs
dee3591147 some tweaks 2012-10-13 04:34:30 +02:00
Piotr Sarnacki
87bccccde8 Fix routing to build/job when object is already loaded 2012-10-12 18:46:27 +02:00
Piotr Sarnacki
2575218ddb Fix logs to always point to build or job view 2012-10-12 18:32:25 +02:00
Sven Fuchs
f16c83d10f somewhat more consistent naming 2012-10-12 02:34:54 +02:00
Piotr Sarnacki
6a487c8fd8 Actually fix profile view when reloading page - no need to redirect 2012-10-11 01:25:18 +02:00
Piotr Sarnacki
3c303e5a86 Reload page when locale for user changes, also cache it in cookie 2012-10-10 22:37:44 +02:00
Piotr Sarnacki
ed2ddc04f6 Fix back button
Repo.bySlug can return loaded items if they were loaded previously,
that's why it will not trigger isLoaded property change.
2012-10-10 19:07:32 +02:00
Piotr Sarnacki
233e95b18d Use empty function instead of Ember.K
Technically it's the same thing, but since in coffeescript it's just a
few characters, there is no need to use something that does not
explicitly say what it does.
2012-10-09 13:18:24 +02:00
Piotr Sarnacki
64fc6ce717 Don't trigger state change on signin if already in authenticated state 2012-10-09 13:08:57 +02:00
Piotr Sarnacki
3a999e8598 If there is no path, route to '/' 2012-10-09 04:11:23 +02:00
Piotr Sarnacki
e6106a236a Remove initialState properties from most of the routes
initialState in some of the routes where needed because router was
behaving incorrectly when going to 'default state'. Now it is fixed, so
initialState entries are not needed anymore in those places.
2012-10-09 03:56:26 +02:00
Piotr Sarnacki
186ba1dd45 Fix links to log line numbers
This is working implementation of links on log line numbers. Although it
does the job, it's really hacky and involves overriding some of the
ember's methods (resolvePath, routeMatcher) beacuse currently
HistoryLocation can't handle hash additions in an easy way.

This code should be fixed as soon as ember's router gets more powerful
and gives much more granular control over matching routes.
2012-10-09 03:54:11 +02:00
Sven Fuchs
521fc3112d add flash messages and styles 2012-10-08 16:27:55 +02:00
Sven Fuchs
6e4413d5a2 finally rename repository to repo 2012-10-06 20:08:46 +02:00
Sven Fuchs
41ff493131 rename goTo* to show* 2012-10-06 18:07:48 +02:00
Sven Fuchs
f6ac7b9c30 showUnauthenticated after signout 2012-10-06 15:27:49 +02:00
Sven Fuchs
152dde6e05 make things even more generic 2012-10-03 19:29:44 +02:00
Sven Fuchs
7b47863014 extract paths in Assetfile; rename javascripts to scripts, stylesheets to styles 2012-10-03 17:13:02 +02:00