diff --git a/app/models/communication/website/category.rb b/app/models/communication/website/category.rb index 1f238b0e0cb12934fa24f6f35871a3bb75697dba..15d4c5c5e154f5d9d577849f28864a27cc2d44ac 100644 --- a/app/models/communication/website/category.rb +++ b/app/models/communication/website/category.rb @@ -40,6 +40,7 @@ class Communication::Website::Category < ApplicationRecord include WithGit include WithFeaturedImage include WithBlobs + include WithBlocks include WithMenuItemTarget include WithSlug # We override slug_unavailable? method include WithTree diff --git a/app/views/admin/communication/websites/categories/show.html.erb b/app/views/admin/communication/websites/categories/show.html.erb index 365b6cb6c366d3bd892644c49a382945d023c3a9..851734a6c269fa8048d50a26c96dc5704f2b4ed3 100644 --- a/app/views/admin/communication/websites/categories/show.html.erb +++ b/app/views/admin/communication/websites/categories/show.html.erb @@ -12,6 +12,7 @@ <%= sanitize @category.text %> </div> </div> + <%= render 'admin/communication/blocks/list', about: @category %> </div> <div class="col-md-4"> <div class="card flex-fill w-100"> diff --git a/app/views/admin/communication/websites/categories/static.html.erb b/app/views/admin/communication/websites/categories/static.html.erb index 99e07cb40c59b68339343a7c23a1b1901a2cb08e..ab0f75fe912017a6a615d7191ada57a2b8c80270 100644 --- a/app/views/admin/communication/websites/categories/static.html.erb +++ b/app/views/admin/communication/websites/categories/static.html.erb @@ -10,4 +10,5 @@ description: > <%= prepare_text_for_static @about.description %> description_short: > <%= prepare_text_for_static @about.text %> +<%= render 'admin/communication/blocks/static', about: @about %> ---