diff --git a/app/assets/stylesheets/extranet/layout/_header.sass b/app/assets/stylesheets/extranet/layout/_header.sass index 444cef53578dbad447ee1a70efb6a7dea04b00d2..0056fb05b3145cd6710ecc859bcbffd47197bd64 100644 --- a/app/assets/stylesheets/extranet/layout/_header.sass +++ b/app/assets/stylesheets/extranet/layout/_header.sass @@ -9,3 +9,7 @@ header, text-align: right margin-top: -60px margin-bottom: 0 + &__title + @extend h1 + p + margin-bottom: 0 \ No newline at end of file diff --git a/app/views/admin/communication/extranets/_form.html.erb b/app/views/admin/communication/extranets/_form.html.erb index c286e5734e615db02d6ccd4412b81f6a3e1bc557..bcd8c3d72b1a3ef086441a29c6caa0d9082d59a3 100644 --- a/app/views/admin/communication/extranets/_form.html.erb +++ b/app/views/admin/communication/extranets/_form.html.erb @@ -22,7 +22,7 @@ preview: 100, direct_upload: true %> <%= f.input :color, as: :color %> - <%= f.input :home_sentence %> + <%= f.input :home_sentence, as: :summernote, input_html: { data: { 'summernote-config': 'link' } } %> <%= f.input :sass, input_html: { data: { diff --git a/app/views/extranet/home/index.html.erb b/app/views/extranet/home/index.html.erb index 6cd5f804587ddcd34b4c52ad301c15842ca52472..dcfaf67ad3356a166c43626f0fa8ce1d732f9060 100644 --- a/app/views/extranet/home/index.html.erb +++ b/app/views/extranet/home/index.html.erb @@ -1,15 +1,14 @@ <% content_for :title, current_context %> <% content_for :header do %> - <h1> + <div class="header__title"> <% if current_extranet.home_sentence.present? %> - <%= current_extranet.home_sentence.html_safe %> + <%= sanitize current_extranet.home_sentence %> <% else %> - <%= t 'extranet.home.welcome' %> + <p><%= t 'extranet.home.welcome' %></p> <% end %> - </h1> + </div> <% end %> <%= render 'extranet/home/features/posts' if current_extranet.feature_posts %> <%= render 'extranet/home/features/alumni' if current_extranet.feature_alumni %> <%= render 'extranet/home/features/contacts' if current_extranet.feature_contacts %> -