drupalorg-1.0.x-dev/templates/drupalorg-issue-forks-management.html.twig

templates/drupalorg-issue-forks-management.html.twig
{#
  Available variables:
  - issue: Issue array with all the information returned from Gitlab.
  - project: Project array that the issue belongs to.
  - forks: Forks array with all the forks information.
  - branches: Branches array.
  - merge_requests: Merge Requests array with all the MR information.
#}
{% if partial is empty %}
{% include 'bluecheese:top_tabs' with {
  tabs: [
    {
      'name' : 'Issue',
      'url': source_link,
      'class': 'gitlab-link'
    },
    {
      'name': 'Contribution records',
      'url': path('contribution_records.process', {
      'source_link': source_link
    })
    },
    {
      'name': 'Forks management',
      'active': 1
    }
  ]
} %}
<div class="forks-management top-tabs-content-wrapper">
{% endif %}
  {# All the below area will be replaced via AJAX calls. #}
  <div
    id="forks-management-wrapper"
    class="forks-management-wrapper"
    data-source-link="{{ source_link }}"
    data-issue-title="{{ issue is not empty ? issue.title }}"
  >
    {% if issue is not empty %}
      {% set issue_is_open = (issue.state == 'opened') %}
      <div class="h4 issue-status {{ issue_is_open ? 'open' : 'closed' }}">{{ issue_is_open ? 'Open'|t : 'Closed'|t }}</div>

      {{ include('@drupalorg/forks/drupalorg-fork-merge-requests.html.twig') }}
      <div class="forks-wrapper">
        {{ include('@drupalorg/forks/drupalorg-fork-list.html.twig') }}
        {% if forks|length < 1 %}
          {{ include('@drupalorg/forks/drupalorg-no-fork.html.twig') }}
        {% endif %}
      </div>
    {% elseif partial == false %}
      <h5>{{ 'Loading information...'|t }}</h5>
      <noscript>
        <p><a href="{{ path('<current>', {
          'format': 'all',
          'source_link': source_link,
        }) }}">{{ 'Click here for a non-JS version of the page.'|t }}</a></p>
      </noscript>
    {% else %}
      {# Partial and no issue, that means the URL is wrong. #}
      <p class="messages messages--warning">{{ 'There was a problem finding the issue. Please make sure that the link provided is valid.'|t }}</p>
    {% endif %}
  </div>
{% if partial is empty %}
</div>
{% endif %}

Главная | Обратная связь

drupal hosting | друпал хостинг | it patrol .inc