|
{% if locale == 'ar' %}
مرحباً {{ user.firstName }},
{% else %}
Hi {{ user.firstName }},
{% endif %}
{% if isRecentFallback|default(false) %}
{% if locale == 'ar' %}
إليك أحدث الأبحاث المضافة على منصة شمرا أكاديميا:
{% else %}
Here are the latest researches added to Shamra Academia:
{% endif %}
{% else %}
{% if locale == 'ar' %}
بناءً على قراءاتك الأخيرة، اخترنا لك هذه الأبحاث التي قد تهمك:
{% else %}
Based on your recent reading, we've selected these researches you might find interesting:
{% endif %}
{% endif %}
{% for research in recommendations %}
{% if locale == 'ar' %}
{{ research.arabic_full_title ?? research.english_full_title ?? 'بحث' }}
{% else %}
{{ research.english_full_title ?? research.arabic_full_title ?? 'Research' }}
{% endif %}
|
{% if research.arabic_publisher_name|default and locale == 'ar' %}
{{ research.arabic_publisher_name }}
{% elseif research.english_publisher_name|default %}
{{ research.english_publisher_name }}
{% endif %}
{% if research.publication_date|default %}
|
{{ research.publication_date|slice(0, 10) }}
{% endif %}
{% if research.downloads|default(0) > 0 %}
|
{% if locale == 'ar' %}{{ research.downloads }} تحميل{% else %}{{ research.downloads }} downloads{% endif %}
{% endif %}
|
{% set abstract_text = '' %}
{% if locale == 'ar' and research.arabic_abstract|default %}
{% set abstract_text = research.arabic_abstract %}
{% elseif research.english_abstract|default %}
{% set abstract_text = research.english_abstract %}
{% elseif research.arabic_abstract|default %}
{% set abstract_text = research.arabic_abstract %}
{% endif %}
{% if abstract_text %}
{{ abstract_text|length > 200 ? abstract_text|slice(0, 200) ~ '...' : abstract_text }}
{% endif %}
{% if research.tag|default %}
{% for tag in research.tag|slice(0, 4) %}
{{ tag }}
{% endfor %}
{% endif %}
|
{% endfor %}
|