Add warning if user own projet but not in team. Also show loading when merge MR

This commit is contained in:
Dmitriy Zaporozhets 2013-01-21 15:05:18 +02:00
parent d1e63c7df2
commit ee43e9248c
4 changed files with 10 additions and 1 deletions

View file

@ -18,7 +18,7 @@ v 4.1.0
- added new classes Team, Repository - added new classes Team, Repository
- Reduce amount of gitolite calls - Reduce amount of gitolite calls
- Ability to add user in all group projects - Ability to add user in all group projects
- remove derecated configs - remove deprecated configs
- replaced Korolev font with open font - replaced Korolev font with open font
- restyled admin/dashboard page - restyled admin/dashboard page
- restyled admin/projects page - restyled admin/projects page

View file

@ -51,6 +51,10 @@ class MergeRequest
this.$('.nav-tabs').on 'click', 'li', (event) => this.$('.nav-tabs').on 'click', 'li', (event) =>
this.activateTab($(event.currentTarget).data('action')) this.activateTab($(event.currentTarget).data('action'))
this.$('.accept_merge_request').on 'click', ->
$('.automerge_widget.can_be_merged').hide()
$('.merge-in-progress').show()
activateTab: (action) -> activateTab: (action) ->
this.$('.nav-tabs li').removeClass 'active' this.$('.nav-tabs li').removeClass 'active'
this.$('.tab-content').hide() this.$('.tab-content').hide()

View file

@ -6,6 +6,9 @@
= render "layouts/head_panel", title: project_title(@project) = render "layouts/head_panel", title: project_title(@project)
- if can?(current_user, :download_code, @project) - if can?(current_user, :download_code, @project)
= render 'shared/no_ssh' = render 'shared/no_ssh'
- unless @project.users.include?(current_user)
= render 'shared/not_in_team'
.container .container
%ul.main_menu %ul.main_menu
= nav_link(html_options: {class: "home #{project_tab_class}"}) do = nav_link(html_options: {class: "home #{project_tab_class}"}) do

View file

@ -0,0 +1,2 @@
%p.error_message.centered
You won't be able to use git over ssh until you join project on #{link_to 'team page', project_team_index_path(@project)}