Skip to content

Commit ee43e92

Browse files
committed
Add warning if user own projet but not in team. Also show loading when merge MR
1 parent d1e63c7 commit ee43e92

File tree

4 files changed

+10
-1
lines changed

4 files changed

+10
-1
lines changed

CHANGELOG

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ v 4.1.0
1818
- added new classes Team, Repository
1919
- Reduce amount of gitolite calls
2020
- Ability to add user in all group projects
21-
- remove derecated configs
21+
- remove deprecated configs
2222
- replaced Korolev font with open font
2323
- restyled admin/dashboard page
2424
- restyled admin/projects page

app/assets/javascripts/merge_requests.js.coffee

+4
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,10 @@ class MergeRequest
5151
this.$('.nav-tabs').on 'click', 'li', (event) =>
5252
this.activateTab($(event.currentTarget).data('action'))
5353

54+
this.$('.accept_merge_request').on 'click', ->
55+
$('.automerge_widget.can_be_merged').hide()
56+
$('.merge-in-progress').show()
57+
5458
activateTab: (action) ->
5559
this.$('.nav-tabs li').removeClass 'active'
5660
this.$('.tab-content').hide()

app/views/layouts/project_resource.html.haml

+3
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@
66
= render "layouts/head_panel", title: project_title(@project)
77
- if can?(current_user, :download_code, @project)
88
= render 'shared/no_ssh'
9+
10+
- unless @project.users.include?(current_user)
11+
= render 'shared/not_in_team'
912
.container
1013
%ul.main_menu
1114
= nav_link(html_options: {class: "home #{project_tab_class}"}) do
+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
%p.error_message.centered
2+
You won't be able to use git over ssh until you join project on #{link_to 'team page', project_team_index_path(@project)}

0 commit comments

Comments
 (0)