From 8f45dfcbd0b47d7a780d30e610a74a9ef2078671 Mon Sep 17 00:00:00 2001 From: Arnaud Levy <contact@arnaudlevy.com> Date: Wed, 15 Feb 2023 22:24:18 +0100 Subject: [PATCH] show extranet --- app/views/extranet/organizations/show.html.erb | 11 +++++------ app/views/extranet/persons/show.html.erb | 7 ++++++- 2 files changed, 11 insertions(+), 7 deletions(-) diff --git a/app/views/extranet/organizations/show.html.erb b/app/views/extranet/organizations/show.html.erb index 452466ea4..b0a95c844 100644 --- a/app/views/extranet/organizations/show.html.erb +++ b/app/views/extranet/organizations/show.html.erb @@ -1,13 +1,12 @@ <% content_for :title, @organization %> -<% if @organization.summary.present? %> - <p class="lead mb-5"> - <%= @organization.summary %> - </p> -<% end %> - <div class="row"> <div class="col-md-8 order-2 order-md-1"> + <% if @organization.summary.present? %> + <p class="lead mb-5"> + <%= @organization.summary %> + </p> + <% end %> <div class="row"> <div class="col-md-9"> <div class="biography mb-5"> diff --git a/app/views/extranet/persons/show.html.erb b/app/views/extranet/persons/show.html.erb index ddcf84869..28d053199 100644 --- a/app/views/extranet/persons/show.html.erb +++ b/app/views/extranet/persons/show.html.erb @@ -2,10 +2,15 @@ <div class="row"> <div class="col-md-8 order-2 order-md-1"> + <% if @person.summary.present? %> + <p class="lead mb-5"> + <%= @person.summary %> + </p> + <% end %> <div class="row"> <div class="col-md-9"> <div class="biography mb-5"> - <%= @person&.biography %> + <%= sanitize @person&.biography %> </div> </div> </div> -- GitLab