Skip to content

Conversation

@Oliva2003
Copy link
Contributor

No description provided.

Список экспертов и студентов онлайн:
<ul>
{%- for person in site.persons -%}
{% if person.type contains "expert" -%}
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Мы хотим всех выводить не зависимо от типа

{%- endfor -%}
<li>
<b>{{ "" | append: person.title }}</b>@ <a href="{{ person.url }}">{{ person.surname }} {{ person.name }}</a>
{% if present -%}<span class="online" title="Прямо сейчас находится на площадке"></span>{%- endif -%}
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Хотим тут выводить не кружок а прям весь

  • - то есть выводить человека только если он присуствует

  • {% if person.type contains "expert" -%}
    {%- assign present = false -%}
    {%- for md5mac in person.md5macs -%}
    {%- for kvs in site.data.onlinemd5sums -%}
    Copy link
    Collaborator

    @vanaf vanaf Aug 30, 2025

    Choose a reason for hiding this comment

    The reason will be displayed to describe this comment to others. Learn more.

    Тут в site.data.onlinemd5sums есть две площадки, нас интересует только та которая у нас тут в page.code-name
    Ну и соотвественно нужно заполнить code-name для обоих наших площадок, он должен соотвествовать тем названиям что лежат в _data/onlinemd5sums

    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

    Labels

    None yet

    Projects

    None yet

    Development

    Successfully merging this pull request may close these issues.

    2 participants