From 8819cbc8fa9dbcaee0dcf70ad831c263015d830c Mon Sep 17 00:00:00 2001 From: Arnaud Levy <contact@arnaudlevy.com> Date: Tue, 18 Jul 2023 11:20:53 +0200 Subject: [PATCH] Remove publications from person [skip ci] --- app/views/admin/university/people/static.html.erb | 11 ----------- db/schema.rb | 5 ++--- 2 files changed, 2 insertions(+), 14 deletions(-) diff --git a/app/views/admin/university/people/static.html.erb b/app/views/admin/university/people/static.html.erb index 37a3e865c..dcba7d1ff 100644 --- a/app/views/admin/university/people/static.html.erb +++ b/app/views/admin/university/people/static.html.erb @@ -76,17 +76,6 @@ administrative_missions: <%= target.current_permalink_in_website(@website)&.path if target.respond_to? :current_permalink_in_website %> <% end %> <% end %> -<% if @about.publications.any? %> -publications: -<% @about.publications.ordered.each do |publication| %> - - title: > - <%= prepare_text_for_static publication.title %> - ref: > - <%= prepare_html_for_static publication.ref, @website.university %> - date: "<%= publication.publication_date&.iso8601 %>" - url: "<%= publication.best_url %>" -<% end %> -<% end %> <%= render 'admin/communication/blocks/content/static', about: @about %> --- <%= prepare_html_for_static @about.biography, @about.university %> diff --git a/db/schema.rb b/db/schema.rb index e7fc9d96a..8cb44ac9c 100644 --- a/db/schema.rb +++ b/db/schema.rb @@ -105,8 +105,8 @@ ActiveRecord::Schema[7.0].define(version: 2023_07_17_160238) do t.datetime "updated_at", null: false t.string "title" t.boolean "published", default: true - t.uuid "communication_website_id" t.uuid "heading_id" + t.uuid "communication_website_id" t.index ["about_type", "about_id"], name: "index_communication_website_blocks_on_about" t.index ["communication_website_id"], name: "index_communication_blocks_on_communication_website_id" t.index ["heading_id"], name: "index_communication_blocks_on_heading_id" @@ -223,7 +223,6 @@ ActiveRecord::Schema[7.0].define(version: 2023_07_17_160238) do t.text "home_sentence" t.text "sass" t.text "css" - t.boolean "allow_experiences_modification", default: true t.index ["about_type", "about_id"], name: "index_communication_extranets_on_about" t.index ["university_id"], name: "index_communication_extranets_on_university_id" end @@ -463,7 +462,7 @@ ActiveRecord::Schema[7.0].define(version: 2023_07_17_160238) do t.index ["university_id"], name: "index_communication_website_pages_on_university_id" end - create_table "communication_website_permalinks", id: :uuid, default: -> { "gen_random_uuid()" }, force: :cascade do |t| + create_table "communication_website_permalinks", id: :uuid, default: -> { "public.gen_random_uuid()" }, force: :cascade do |t| t.uuid "university_id", null: false t.uuid "website_id", null: false t.string "about_type", null: false -- GitLab