<commit_before><%page args="item, minutes=False"/>

<%namespace name="common" file="Common.tpl"/>

<li>
    <%include file="ManageButton.tpl" args="item=item, alignRight=True, minutesHidden=not minutes"/>
    <span class="subLevelTitle confModifPadding">${item.getTitle()}</span>

    % if item.getDuration():
        <em>${prettyDuration(item.getDuration())}</em>
    % endif

    % if item.getDescription():
        <span class="description">${common.renderDescription(item.getDescription())}</span>
    % endif

    <table class="sessionDetails">
        <tbody>
        % if item.getReportNumberHolder().listReportNumbers():
            (
            % for reportNumber in item.getReportNumberHolder().listReportNumbers():
                % if reportNumberSystems[reportNumber[0]]["url"]:
                    <a href="${reportNumberSystems[reportNumber[0]]["url"] + reportNumber[1]}" target="_blank">${reportNumber[1]}</a>
                % else:
                    ${reportNumber[1]}
                % endif
            % endfor
            )
        % endif

        % if item.getSpeakerList() or item.getSpeakerText():
        <tr>
            <td class="leftCol">${ _("Speakers") if len(item.getSpeakerList()) > 1 else _("Speaker")}:</td>
            <td>${common.renderUsers(item.getSpeakerList(), unformatted=item.getSpeakerText())}</td>
        </tr>
        % endif

        % if len(item.getAllMaterialList()) > 0:
        <tr>
            <td class="leftCol">${ _("Material")}:</td>
            <td>
            % for material in item.getAllMaterialList():
                % if material.canView(accessWrapper):
                <%include file="Material.tpl" args="material=material,
                    subContId=item.getId(), contribId=item.getOwner().getId()"/>
                % endif
            % endfor
            </td>
        </tr>
        % endif
        </tbody>
    </table>

    % if item.note:
        ${ render_template('events/notes/note_element.html', note=item.note, hidden=not minutes, can_edit=item.canModify(user)) }
    % endif
</li>
<commit_msg>Displaying materials in subcontributions (meeting)<commit_after><%page args="item, minutes=False"/>

<%namespace name="common" file="Common.tpl"/>

<li>
    <%include file="ManageButton.tpl" args="item=item, alignRight=True, minutesHidden=not minutes"/>
    <span class="subLevelTitle confModifPadding">${item.getTitle()}</span>

    % if item.getDuration():
        <em>${prettyDuration(item.getDuration())}</em>
    % endif

    % if item.getDescription():
        <span class="description">${common.renderDescription(item.getDescription())}</span>
    % endif

    <table class="sessionDetails">
        <tbody>
        % if item.getReportNumberHolder().listReportNumbers():
            (
            % for reportNumber in item.getReportNumberHolder().listReportNumbers():
                % if reportNumberSystems[reportNumber[0]]["url"]:
                    <a href="${reportNumberSystems[reportNumber[0]]["url"] + reportNumber[1]}" target="_blank">${reportNumber[1]}</a>
                % else:
                    ${reportNumber[1]}
                % endif
            % endfor
            )
        % endif

        % if item.getSpeakerList() or item.getSpeakerText():
        <tr>
            <td class="leftCol">${ _("Speakers") if len(item.getSpeakerList()) > 1 else _("Speaker")}:</td>
            <td>${common.renderUsers(item.getSpeakerList(), unformatted=item.getSpeakerText())}</td>
        </tr>
        % endif

        % if item.attached_items:
        <tr>
            <td class="leftCol">${ _("Material")}:</td>
            <td class="material-list">
                ${ render_template('attachments/mako_compat/materials.html', item=item) }
            </td>
        </tr>
        % endif
        </tbody>
    </table>

    % if item.note:
        ${ render_template('events/notes/note_element.html', note=item.note, hidden=not minutes, can_edit=item.canModify(user)) }
    % endif
</li>

{'fraction_non_alphanumeric': 0.162406015037594, 'fraction_numerical': 0.003258145363408521, 'mean_word_length': 2.411111111111111, 'pattern_counts': {'":': 0, '<': 62, '<?xml version=': 0, '>': 65, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6271990', 'n_tokens_mistral': 1201, 'n_tokens_neox': 1157, 'n_words': 187}