diff --git a/app/assets/stylesheets/extranet/pages/_posts.sass b/app/assets/stylesheets/extranet/pages/_posts.sass new file mode 100644 index 0000000000000000000000000000000000000000..2b1bfe98615a07d429eee85172d98558afbf5f8e --- /dev/null +++ b/app/assets/stylesheets/extranet/pages/_posts.sass @@ -0,0 +1,19 @@ +.posts-show header figure + position: relative + figcaption + display: block + left: 0 + position: absolute + right: 0 + text-align: right + z-index: 10 + &::before + font-family: inter,sans-serif + font-size: .875rem + font-weight: 400 + line-height: 150% + content: '©' + position: absolute + right: 0 + top: 0 + \ No newline at end of file diff --git a/app/views/extranet/posts/posts/show.html.erb b/app/views/extranet/posts/posts/show.html.erb index 1d2bf0ce67cacf9db5b0869f76bfcb62a6ff3b45..a1bfd22da241642088b00fa9402748e2aff4050b 100644 --- a/app/views/extranet/posts/posts/show.html.erb +++ b/app/views/extranet/posts/posts/show.html.erb @@ -6,7 +6,7 @@ <%= kamifusen_tag @post.featured_image, class: 'img-fluid', width: 300 %> <figcaption tabindex="0"> <p> - <% @post.featured_image_credit %> + <%= sanitize @post.featured_image_credit %> </p> </figcaption> </figure> diff --git a/db/schema.rb b/db/schema.rb index 040c76bc824124dd0a1628dc2bb33a9b9b82a51f..a22638c875fdcf348e49f48ff14b1b897ccfa479 100644 --- a/db/schema.rb +++ b/db/schema.rb @@ -214,21 +214,6 @@ ActiveRecord::Schema[7.0].define(version: 2023_03_09_131421) do t.index ["communication_website_post_id", "communication_website_category_id"], name: "post_category" end - create_table "communication_website_connections", id: :uuid, default: -> { "gen_random_uuid()" }, force: :cascade do |t| - t.uuid "university_id", null: false - t.uuid "website_id", null: false - t.string "object_type", null: false - t.uuid "object_id", null: false - t.string "source_type" - t.uuid "source_id" - t.datetime "created_at", null: false - t.datetime "updated_at", null: false - t.index ["object_type", "object_id"], name: "index_communication_website_connections_on_object" - t.index ["source_type", "source_id"], name: "index_communication_website_connections_on_source" - t.index ["university_id"], name: "index_communication_website_connections_on_university_id" - t.index ["website_id"], name: "index_communication_website_connections_on_website_id" - end - create_table "communication_website_git_files", id: :uuid, default: -> { "gen_random_uuid()" }, force: :cascade do |t| t.string "previous_path" t.string "about_type", null: false @@ -1029,8 +1014,6 @@ ActiveRecord::Schema[7.0].define(version: 2023_03_09_131421) do add_foreign_key "communication_website_categories", "education_programs", column: "program_id" add_foreign_key "communication_website_categories", "languages" add_foreign_key "communication_website_categories", "universities" - add_foreign_key "communication_website_connections", "communication_websites", column: "website_id" - add_foreign_key "communication_website_connections", "universities" add_foreign_key "communication_website_git_files", "communication_websites", column: "website_id" add_foreign_key "communication_website_imported_authors", "communication_website_imported_websites", column: "website_id" add_foreign_key "communication_website_imported_authors", "universities"