Project

General

Profile

« Previous | Next » 

Revision 611fa54e

Added by Bastian Schmidt 3 months ago

Fixes #37002 - Add pagelet anchor for user and usergroup tabs

This feature allows plugins to add pagelets for the users/usergroups
edit page.

View differences:

app/views/users/_form.html.erb
<% if @editing_self || (@user.persisted? && authorized_for(hash_for_api_user_personal_access_tokens_path(user_id: @user))) %>
<li><a href='#personal_access_tokens' data-toggle='tab'><%= _('Personal Access Tokens') %></a></li>
<% end %>
<%= render_tab_header_for(:main_tabs, :subject => @user, :form => f) %>
</ul>
<div class='tab-content'>
......
<%= render 'taxonomies/loc_org_tabs', :f => f, :obj => @user,
:html_options => user_taxonomies_html_options(@user)
%>
<%= render_tab_content_for(:main_tabs, :subject => @user, :form => f) %>
</div>
<%= submit_or_cancel f %>

Also available in: Unified diff