Allow org. administrators to invite them onto all projects

This commit is contained in:
mlorb 2019-01-08 16:30:52 +01:00
parent 00a3b8b94e
commit 06b1e5cf20
3 changed files with 6 additions and 4 deletions

View file

@ -11,7 +11,7 @@
I18n setupSidebarTree */
//= require comments
(function() {
(function(global) {
var newProjectModal = null;
var newProjectModalForm = null;
var newProjectModalBody = null;
@ -203,7 +203,7 @@
}
// Initialize users editing modal remote loading.
function initUsersEditLink($el) {
global.initUsersEditLink = function($el) {
$el.find('.manage-users-link')
.on('ajax:before', function() {
var projectId = $(this).closest('.panel-default').attr('id');
@ -771,4 +771,4 @@
initProjectsViewModeSwitch();
initSorting();
loadCardsView();
}());
}(window));

View file

@ -783,7 +783,9 @@ ul.double-line > li {
}
.manage-users-link {
display: block;
padding-left: 15px;
margin-bottom: 10px;
}
}

View file

@ -1,6 +1,6 @@
<h5 class="text-center"><%= t("projects.index.users_tab") %></h5>
<hr>
<ul class="no-style content-users">
<ul class="no-style content-users" data-hook="project-users-tab-list">
<% if @users.size == 0 then %>
<li><em><%= t 'projects.index.no_users' %></em></li>
<% else %>