Skip to content

Commit

Permalink
prematurely fix issue #629 by applying fix from DMPRoadmap/roadmap#3047
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolasfranck committed Jan 12, 2022
1 parent 5b6b67c commit 71dce2a
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
15 changes: 15 additions & 0 deletions app/views/branded/devise/registrations/edit.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,12 @@
<a href="#personal-details" role="tab" class="nav-link"
aria-controls="personal-details" data-toggle="tab"><%= _('Personal Details') %></a>
</li>
<% if @user.can_use_api? %>
<li role="api-details" class="nav-item">
<a href="#api-details" role="tab" class="nav-link"
aria-controls="api-details" data-toggle="tab"><%= _('API Access') %></a>
</li>
<% end %>
<li role="notification-preferences" class="nav-item">
<a href="#notification-preferences" role="tab" class="nav-link"
aria-controls="notification-preferences" data-toggle="tab"><%= _('Notification Preferences') %></a>
Expand All @@ -26,6 +32,15 @@
</div>
</div>
</div>
<% if @user.can_use_api? %>
<div id="api-details" role="tabpanel" class="tab-pane">
<div class="panel panel-default">
<div class="panel-body">
<%= render partial: 'devise/registrations/api_token', locals: { user: @user } %>
</div>
</div>
</div>
<% end %>
<div id="notification-preferences" role="tabpanel" class="tab-pane">
<div class="panel panel-default">
<div class="panel-body">
Expand Down
3 changes: 3 additions & 0 deletions ugent/CHANGES.txt
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,9 @@

removed tab (and tab content) for password

prematurely fix issue #629 by applying fix from https://github.com/DMPRoadmap/roadmap/pull/3047
(branch development, not yet in master branch)

- app/views/branded/devise/registrations/_personal_details.html.erb

email: readonly (+class form-control-plaintext)
Expand Down

0 comments on commit 71dce2a

Please sign in to comment.