Commit graph

19 commits

Author SHA1 Message Date
Bob Van Landuyt
299c543973 Redirect to an already forked project if it exists
Before the we would try to `POST` to the project path, which would
result in a 404, because that `POST` is not supported.

By changing this back to a normal link, not not handled in JS, we can
immeadiatly redirect.
2017-11-29 15:41:22 +01:00
Phil Hughes
193bc52686
fixed specs 2017-10-02 14:46:56 +01:00
Phil Hughes
075f5ed9fc
Cleanup the fork layout
- Cleans the fork project layout by removing the grid & reverting back
to full flexbox to allow for the layout to correctly expand.
- Removes duplicated markup
- Fixes a bug where the forked project would trigger the load indicator
2017-10-02 14:36:20 +01:00
Phil Hughes
93aa6d04c2
moved fork checks into policies 2017-09-29 12:14:39 +01:00
Phil Hughes
8585ae61e7
Fix fork button being disabled for users who can fork to group
Previously the fork button was disabled for all users if they have
exceeded their project limit. This fixes that by changing the check
to see if the user can fork to a group instead of their own namespace.

This behaviour is already possible by visiting the new fork page
directly, so this just fixes the button being disabled.

Closes #38462
2017-09-29 10:51:26 +01:00
Douwe Maan
fe13f11041 Create and use project path helpers that only need a project, no namespace 2017-07-05 11:11:59 -05:00
Luke "Jared" Bennett
1b83fa7130
Added custom no_avatar icon 2016-07-15 20:01:22 +01:00
Luke "Jared" Bennett
e4a90e393f
Updated fork page 2016-07-15 20:01:22 +01:00
Arinde Eniola
367818d293 change the css class has_tooltip to has-tooltip universally 2016-03-20 21:37:22 +01:00
Rubén Dávila
7765ce1875 Setup new fork link in sidebar and routes. #2406 2016-01-20 00:14:58 -05:00
Douwe Maan
d9c82d679f Automatically fork a project when not allowed to edit a file. 2015-12-18 10:03:34 +01:00
Drew Blessing
fce4f13803 Show message if user tries to fork and has no available namespaces 2015-10-08 15:20:19 -05:00
Dmitriy Zaporozhets
df51b029ab
Improve project fork page
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
2015-09-10 13:14:25 +02:00
Douwe Maan
26ad250989 Add a page title to every page. 2015-04-30 19:12:15 +02:00
Vinnie Okada
76aad9b76e Upgrade to Rails 4.1.9
Make the following changes to deal with new behavior in Rails 4.1.2:

* Use nested resources to avoid slashes in arguments to path helpers.
2015-02-14 11:09:23 -07:00
Dmitriy Zaporozhets
f2f7b5a18e Better wording 2015-01-28 15:37:20 -08:00
Dmitriy Zaporozhets
34b7472b33 Improve wording for fork project page 2015-01-28 14:20:00 -08:00
Dmitriy Zaporozhets
2388fdd7c6
Improve fork to namespaces feature
* Show namespace thumbnail differently if project was already forked
* Show loading spinner when click on fork
* Fork link navigates to personal namespace only if no manageable groups exists

Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
2014-11-14 16:06:39 +02:00
Dmitriy Zaporozhets
e08e405ac4
Select namespace where to fork project
Now you can fork project into group or personal namespace.
Also I moved fork logic from ProjectsController to own fork resource

Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
2014-11-13 22:06:19 +02:00