<commit_before><%inherit file="/template.html" />
<%namespace name="components" file="/components.html"/>
<%namespace name="comment_tiles" file="/comment/tiles.html"/>
<%namespace name="state" file="/poll/state.html"/>

<%def name="title()">${c.proposal.title}</%def>

<%def name="breadcrumbs()">${h.proposal.breadcrumbs(c.proposal)|n}</%def>


<%block name="main_content">

    %if not c.proposal.is_adopt_polling() and c.proposal.rate_poll:
      %if can.proposal.rate(c.proposal):
      ${tiles.poll.widget(c.proposal.rate_poll, cls='big')}
      %endif
    %endif

            <section>
              <article>
                <h2>
                    ${h.delegateable.link(c.proposal, icon_size=24, link=False)|n}
                </h2>
                <div class="hr"><hr /></div>
                ## FIXME: translate
                <div class="utility">
                    <h4>Ziele und Beschreibung des Vorschlages</h4>
                    %if can.proposal.edit(c.proposal):
                    <a href="${h.entity_url(c.proposal, member='edit')}">
                        ${_("edit")}
                    </a>
                    %endif
                </div>
                
                ${tiles.page.inline(c.proposal.description, 
                        hide_discussion=c.instance.use_norms and len(c.proposal.selections))}
    
                
                ## FIXME: Translate; Really "Reaktions", not "Comments"?
                <div class="meta">
                    <a href="#reactions">
                        ${c.proposal.description.comment_count()} ${_("Comments")}
                    </a>
                    %if c.show_selections:
                    &middot; 
                    <a href="#proposals">
                        ${len(c.num_selections)}
                        ${_("Proposed Implementations")}
                    </a>
                    %endif
                    &middot; 
                    <a href="${h.abuse.for_entity(c.proposal)}">
                        ${_("report")}
                    </a>
                </div>
              </article>
              <br />

              
            </section>
            <h3 id="reactions">${_(u'Comments')}</h3>
            <div id="main_comments">
                ## comments are attached to the description which is a
                ## :class:`adhocracy.model.Page`
                ## proposal descriptions have no other variant than head.
                ${tiles.comment.list(c.proposal.description, 
                                     variant=c.proposal.description.head.variant)}

            </div>
            

            %if c.show_selections:
            <section>
              <h3 id="proposals">${_("Proposed Implementations")}</h3>
              <div class="hr"><hr /></div>
              <ul class="papers_list">
                  %for selection in c.sorted_selections: 
                  ${tiles.selection.row(selection)}
                  %endfor
              </ul> 
            </section>
            %endif

</%block>


<%block name="sidebar">

${components.watch(c.proposal, what="Proposal")}

<h3>${_('Informations')}</h3>
<summary>

    <!-- <h6>${_('Shortlink')}</h6> -->
    <!-- <p> --><commit_msg>proposals: fix styling - move comments into the section tag<commit_after><%inherit file="/template.html" />
<%namespace name="components" file="/components.html"/>
<%namespace name="comment_tiles" file="/comment/tiles.html"/>
<%namespace name="state" file="/poll/state.html"/>

<%def name="title()">${c.proposal.title}</%def>

<%def name="breadcrumbs()">${h.proposal.breadcrumbs(c.proposal)|n}</%def>


<%block name="main_content">

    %if not c.proposal.is_adopt_polling() and c.proposal.rate_poll:
      %if can.proposal.rate(c.proposal):
      ${tiles.poll.widget(c.proposal.rate_poll, cls='big')}
      %endif
    %endif

            <section>
              <article>
                <h2>
                    ${h.delegateable.link(c.proposal, icon_size=24, link=False)|n}
                </h2>
                <div class="hr"><hr /></div>
                ## FIXME: translate
                <div class="utility">
                    <h4>Ziele und Beschreibung des Vorschlages</h4>
                    %if can.proposal.edit(c.proposal):
                    <a href="${h.entity_url(c.proposal, member='edit')}">
                        ${_("edit")}
                    </a>
                    %endif
                </div>
                
                ${tiles.page.inline(c.proposal.description, 
                        hide_discussion=c.instance.use_norms and len(c.proposal.selections))}
    
                
                ## FIXME: Translate; Really "Reaktions", not "Comments"?
                <div class="meta">
                    <a href="#reactions">
                        ${c.proposal.description.comment_count()} ${_("Comments")}
                    </a>
                    %if c.show_selections:
                    &middot; 
                    <a href="#proposals">
                        ${len(c.num_selections)}
                        ${_("Proposed Implementations")}
                    </a>
                    %endif
                    &middot; 
                    <a href="${h.abuse.for_entity(c.proposal)}">
                        ${_("report")}
                    </a>
                </div>
              </article>
              <br />

              <div id="main_comments">
                  <h3 id="reactions">${_(u'Comments')}</h3>
                  ## comments are attached to the description which is a
                  ## :class:`adhocracy.model.Page`
                  ## proposal descriptions have no other variant than head.
                  ${tiles.comment.list(c.proposal.description, 
                                       variant=c.proposal.description.head.variant)}
            </div>
            </section>
            

            %if c.show_selections:
            <section>
              <h3 id="proposals">${_("Proposed Implementations")}</h3>
              <div class="hr"><hr /></div>
              <ul class="papers_list">
                  %for selection in c.sorted_selections: 
                  ${tiles.selection.row(selection)}
                  %endfor
              </ul> 
            </section>
            %endif

</%block>


<%block name="sidebar">

${components.watch(c.proposal, what="Proposal")}

<h3>${_('Informations')}</h3>
<summary>

    <!-- <h6>${_('Shortlink')}</h6> -->
    <!-- <p> -->
{'fraction_non_alphanumeric': 0.15268817204301074, 'fraction_numerical': 0.004301075268817204, 'mean_word_length': 1.3702220604295596, 'pattern_counts': {'":': 0, '<': 115, '<?xml version=': 0, '>': 115, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6329534', 'n_tokens_mistral': 1918, 'n_tokens_neox': 1794, 'n_words': 300}