From 442400338a5ced8d9532f15d41d4016803c3b831 Mon Sep 17 00:00:00 2001 From: Arnaud Levy <contact@arnaudlevy.com> Date: Tue, 9 Nov 2021 21:33:43 +0100 Subject: [PATCH] articles --- app/models/research/journal/article.rb | 2 +- .../admin/communication/website/authors/jekyll.html.erb | 1 + .../admin/communication/website/categories/jekyll.html.erb | 2 +- app/views/admin/communication/websites/show.html.erb | 6 +++--- db/schema.rb | 2 +- 5 files changed, 7 insertions(+), 6 deletions(-) diff --git a/app/models/research/journal/article.rb b/app/models/research/journal/article.rb index 32157535e..2fb8ca12d 100644 --- a/app/models/research/journal/article.rb +++ b/app/models/research/journal/article.rb @@ -11,7 +11,7 @@ # references :text # title :string # created_at :datetime not null -# updated_at :datetime not null +# updated_at :date not null # research_journal_id :uuid not null # research_journal_volume_id :uuid # university_id :uuid not null diff --git a/app/views/admin/communication/website/authors/jekyll.html.erb b/app/views/admin/communication/website/authors/jekyll.html.erb index e73c3e8d2..f20667527 100644 --- a/app/views/admin/communication/website/authors/jekyll.html.erb +++ b/app/views/admin/communication/website/authors/jekyll.html.erb @@ -1,4 +1,5 @@ --- +title: "<%= @author.to_s %>" identifier: "<%= @author.id %>" first_name: "<%= @author.first_name %>" last_name: "<%= @author.last_name %>" diff --git a/app/views/admin/communication/website/categories/jekyll.html.erb b/app/views/admin/communication/website/categories/jekyll.html.erb index 02c98c5a4..9db2c16a2 100644 --- a/app/views/admin/communication/website/categories/jekyll.html.erb +++ b/app/views/admin/communication/website/categories/jekyll.html.erb @@ -1,5 +1,5 @@ --- -name: "<%= @category.name %>" +title: "<%= @category.name %>" slug: "<%= @category.slug %>" identifier: "<%= @category.id %>" parent: "<%= @category.parent_id %>" diff --git a/app/views/admin/communication/websites/show.html.erb b/app/views/admin/communication/websites/show.html.erb index 90b9e9a9a..f2c550bc2 100644 --- a/app/views/admin/communication/websites/show.html.erb +++ b/app/views/admin/communication/websites/show.html.erb @@ -51,7 +51,7 @@ </div> <div class="row"> - <div class="col-md-6"> + <div class="col-md-4"> <div class="card mt-5"> <div class="card-header"> <div class="float-end"> @@ -72,7 +72,7 @@ <%= render 'admin/communication/website/categories/list', categories: @website.categories.root.ordered %> </div> </div> - <div class="col-md-6"> + <div class="col-md-4"> <div class="card mt-5"> <div class="card-header"> <div class="float-end"> @@ -93,7 +93,7 @@ <%= render 'admin/communication/website/menus/list', menus: @website.menus.ordered %> </div> </div> - <div class="col-md-6"> + <div class="col-md-4"> <div class="card mt-5"> <div class="card-header"> <div class="float-end"> diff --git a/db/schema.rb b/db/schema.rb index 2b2ddeffa..e6377a5f4 100644 --- a/db/schema.rb +++ b/db/schema.rb @@ -376,7 +376,7 @@ ActiveRecord::Schema.define(version: 2021_11_09_093030) do t.uuid "research_journal_id", null: false t.uuid "research_journal_volume_id" t.datetime "created_at", precision: 6, null: false - t.datetime "updated_at", precision: 6, null: false + t.date "updated_at", null: false t.uuid "updated_by_id" t.text "abstract" t.text "references" -- GitLab