مرحبًا.
أرغب في عرض إحصائيات الموقع من صفحة /about على الصفحة الرئيسية بالاقتران مع إضافة أخرى.
على سبيل المثال، أضفت Members: {{number model.stats.user_count}} إلى ملف .hbs الخاص بإضافة ما، لكن عند إعادة بناء Discourse، يظهر فقط 0. لدي أكثر من 0 مستخدم.
Just check which (Rails) controller is being called on the /about page to fetch the data you need.
In your ember route file’s model method, you can call that controller via ajax and fetch the required data.
Otherwise,
If you’ve written your own controller, then create a new method and copy the logic from the controller you found to your new controller and (maybe) filter the data you need if that’s required.
this model variable is what is returned by the model method of the route in question.
I think you should go through this guide to get a holistic understanding of how things work in discourse.