كيفية إظهار الاسم الكامل في التضمينات

@Canapin نعم! تم تشغيل كل شيء بنجاح. إليك كيف بدا ملف plugin.rb. تبين أنني كنت أواجه مشكلة في المسار حيث كنت أضع الإصدار المخصص للملف.

لقد انتهى بي الأمر بوضعه في مجلد /custom_views/embed/comments.html.erb

# frozen_string_literal: true

# name: optuma_discourse_custom_embed
# about: A simple plugin to used to customise the template in the forum embeds
# version: 1.0.0
# authors: Optuma Pty Ltd
# url: https://github.com/OptDev/optuma-discourse-custom-embed
# required_version: 2.7.0

after_initialize do
  ::EmbedController.prepend_view_path File.expand_path("../custom_views", __FILE__)
end
إعجاب واحد (1)