{% extends '@syndexAcademic/main_layout.html.twig' %} {% block title %}{{ 'إجابات السؤال : '~question.question }}{% endblock %} {% if question.profileOwner is null %} {% set username ='public' %} {% else %} {% set username = question.profileOwner.username %} {% endif %} {% block css %} {% endblock %} {% block og_title %} {{ parent() }} | {{ 'أجابات السؤال' }} : {{ question.question }} {% endblock %} {% block og_description %} {% if question.explanation|length is null %} {{ question.explanation[0:200] }} {% else %} {{ 'يتيح نظام اﻷسئلة طرح سؤال على أي باحث بما يخص أبحاثه أو اهتماماته اﻷكاديمية ' }} {% endif %} {% endblock %} {% block metaKeywords %} {{ 'شمرا - أكاديميا - مجتمع الباحثين - أسئلة - أجوبة ' }} {% endblock %} {% block og_url %} {{ app.request.scheme ~'://' ~ app.request.httpHost ~ path(app.request.attributes.get('_route'), app.request.attributes.get('_route_params')) }} {% endblock %} {% block structured_data %} {% endblock %} {% block schemaBlock %} {% endblock %} {% block body %} {{ parent() }}
{% for label,messages in app.session.flashbag.all %} {% for message in messages %} {% if label =='academia_notice' %} {% elseif label=='academia_question_notice_success' %} {% elseif label=='academia_question_notice_failed' %} {% endif %} {% endfor %} {% endfor %}

{{ question.question }}

{% if app.user and app.user != question.profileVisitor and app.user != question.profileOwner %}
{% if favorite is null %} {% elseif favorite is not null %} {% endif %}
{% if app.user.isGranted('ROLE_G1') %} {% endif %} {% elseif app.user and app.user == question.profileVisitor %} {% elseif app.user and app.user == question.profileOwner %} {% endif %}
{{question.views }}  - {# {{ question.answers }}   #} {{ question.interested }}  - -  {{ question.profileVisitor.firstName~' '~question.profileVisitor.lastName }} - {{'تم طرحه في مساحة'}} ({{ question.field }})

{{ question.explanation|raw }}

{% for tag in tags %} {{ tag.tag.context }} {% endfor %}

{{ 'اﻹجابات ( '~answers|length~' )' }}

{% for answer in answers %} {% set c= null %} {% set down='إجابة غير مفيدة' %} {% set up='إجابة مفيدة' %} {% if app.user is null or app.user and app.user == answer.respondent%} {% set c='rate-disabled' %} {% if app.user is null %} {% set c='rate-disabled2' %} {% endif %} {% if app.user is null %} {% set down='سجل دخول لتتمكن من التقييم' %} {% set up='سجل دخول لتتمكن من التقييم' %} {% else %} {% set down='ﻻ يمكنك تقييم الإجابة' %} {% set up='ﻻ يمكنك تقييم الإجابة' %} {% endif %} {% endif %}

{{ answer.rate }}

{# {{ answer.respondent.firstName~' '~answer.respondent.lastName }} #}

{{ answer.respondent.firstName~' '~answer.respondent.lastName}}

{% if app.user and app.user == answer.respondent %} {% elseif app.user and app.user == answer.question.profileOwner or app.user==answer.question.profileVisitor %} {% endif %}
{{ answer.answer|raw }}

{% endfor %}

{% if bytag|length > 0 %}

{{ 'الاسئلة المقترحة ' }}

{% for qtag in bytag %}
{{qtag.views }}  - {{ qtag.interested }}  - -  {{ qtag.firstName ~' '~ qtag.lastName }} {{'تم طرحه في مساحة'}} ({{ qtag.arabicFullName }})
{% for tag in relatedQuestionTag[qtag['slug']] %} {{ tag}} {% endfor %}
{% endfor %} {% elseif byfield|length > 0 %}

{{ 'الاسئلة المقترحة ' }}

{% for qfield in byfield %}
{{qfield.views }}  - {{ qfield.interested }}  - - {{'تم طرحه في مساحة'}} ({{ qfield.arabicFullName }})
{% for tag in relatedQuestionField[qfield['slug']] %} {{ tag}} {% endfor %}
{% endfor %} {% endif %}
{% if app.user %} {% endif %} {% endblock %} {% block javascripts %} {{ parent() }} {% if not userman.has_subscribtion() %} {% endif %} {% if app.user %} {% endif %} {% endblock %}