From 9c052ed7bc763ace5ef5a61d4408bfc5468f8d5a Mon Sep 17 00:00:00 2001 From: Xinhui Date: Tue, 10 May 2016 14:56:23 +0200 Subject: Remove user/organization edit, create, destroy link Refs #819 --- app/views/devise/sessions/new.html.erb | 16 +++++++++++----- app/views/organisations/show.html.erb | 3 +++ app/views/shared/_header.erb | 9 +++++++-- app/views/users/_user.html.erb | 3 +++ app/views/users/show.html.erb | 13 ++++++++----- spec/features/users/user_show_spec.rb | 3 ++- 6 files changed, 34 insertions(+), 13 deletions(-) diff --git a/app/views/devise/sessions/new.html.erb b/app/views/devise/sessions/new.html.erb index 2df4f3d97..4df538161 100644 --- a/app/views/devise/sessions/new.html.erb +++ b/app/views/devise/sessions/new.html.erb @@ -21,17 +21,23 @@
<%= link_to t("devise.links.new_password"), new_password_path(resource_name) %> - <% if devise_mapping.confirmable? && controller_name != 'confirmations' %> -
- <%= link_to t("devise.links.new_confirmation"), new_confirmation_path(resource_name) %> - <% end %> + + <%- if false %> + <% if devise_mapping.confirmable? && controller_name != 'confirmations' %> +
+ <%= link_to t("devise.links.new_confirmation"), new_confirmation_path(resource_name) %> + <% end %> + <% end %>
<% end %> - <%= render partial: 'devise/shared/form_registration', locals: { + + <%- if false %> + <%= render partial: 'devise/shared/form_registration', locals: { organisation: (resource.organisation || Organisation.new) } %> + <% end %> diff --git a/app/views/organisations/show.html.erb b/app/views/organisations/show.html.erb index f6c497173..3994228fd 100644 --- a/app/views/organisations/show.html.erb +++ b/app/views/organisations/show.html.erb @@ -48,8 +48,11 @@ <% content_for :sidebar do %> <% end %> diff --git a/app/views/shared/_header.erb b/app/views/shared/_header.erb index 9d53d807f..ae712e48d 100644 --- a/app/views/shared/_header.erb +++ b/app/views/shared/_header.erb @@ -95,8 +95,13 @@