<commit_before>{% load bb_ember %}
{% load i18n %}
{% load static %}

{% tplhandlebars "project/index" %}

    <div class="l-section" id="wall">
        <div class="l-wrapper">

            <section id="wallposts">
                {{#if currentUser.isAuthenticated }}
                    {{#if canAddMediaWallPost}}
                        {{render "mediaWallPostNew" parentId=parentId}}
                    {{else}}
                        {{render "textWallPostNew" parentId=parentId}}
                    {{/if}}
                {{/if}}

                {{#each item in controller itemController="wallPost"}}
                    {{#if item.isLoaded}}
                        {{#if item.isSystemWallPost}}
                            {{view "App.SystemWallPostView"}}
                        {{else}}
                            {{view "App.MediaWallPostView"}}
                        {{/if}}
                    {{/if}}
                {{/each}}

                {{#if canLoadMore}}
                    <a {{action "showMore"}} class="btn-link btn-more">
                        <span class="flaticon solid plus-2"></span> {% trans "Show more" %} <small>{{remainingItemCount}} {% trans "more" %}</small>
                    </a>
                {{/if}}

            </section>


            <section id="sidebar">
                
                {{!-- Todo: only show block when there are fundraisers OR the campaign is still running --}}
                {{#if controllers.project.amount_asked}}
                    <div id="fundraiser-list">
                        {{render 'projectFundRaiserList'}}
                    </div>
                {{/if}}


                {{!-- Todo: only show block when there are tasks OR when you are project owner --}}
                <div id="task-list">
                    <div class="activity">

                        <header class="activity-header">
                            <h2 class="activity-title">{% trans "Tasks" %}</h2>
                        </header>

                        <ul class="activity-list">

                            {{#if availableTasks}}
                                {{#each availableTasks}}
                                    {{view App.TaskSummaryView contentBinding='this'}}
                                {{/each}}
                            {{/if}}
                        
                            {{#if unavailableTasks}}
                                {{#each unavailableTasks}}
                                    {{view App.TaskSummaryView contentBinding='this'}}
                                {{/each}}
                            {{/if}}

                        </ul>

                        {{#if isProjectOwner}}
                            <footer class="activity-footer">
                                {{#linkTo 'taskNew' controllers.project.id class='activity-action' }}
                                    <strong>{% trans "Create a task" %} &raquo;</strong><br />
                                    {% trans "Why not ask your community to help out?" %}
                                {{/linkTo}}
                            </footer>
                        {{/if}}

                    </div>
                </div>
                

                {{!-- Todo: only show block when there are supporters --}}
                <div id="supporter-list">
                    <div class="activity">

                        <header class="activity-header">
                            <h2 class="activity-title">{% trans "Supporters" %}</h2>
                        </header>

                        <ul class="activity-list">
                            <li class="activity-item">
                                <a href="#">
                                    <figure class="user-avatar">
                                        <img src="http://placehold.it/70/70" alt="<NAME>" />
                                    </figure>
                                    <span class="activity-body">
                                        <strong class="user-name"><NAME></strong> {% trans "donated" %} <strong>&euro; 25,-</strong><br />
                                        <abbr class="timestamp">2 days ago</abbr>
                                    </span>
                                </a>
                            </li>
                            <li class="activity-item">
                                <a href="#">
                                    <figure class="user-avatar">
                                        <img src="http://placehold.it/70/70" alt="<NAME>" />
                                    </figure>
                                    <span class="activity-body">
                                        <strong class="user-name"><NAME></strong> {% trans "donated" %} <strong>&euro; 25,-</strong><br />
                                        <abbr class="timestamp">2 days ago</abbr>
                                    </span><commit_msg>Change how/if tasklist is shown on project detail page<commit_after>{% load bb_ember %}
{% load i18n %}
{% load static %}

{% tplhandlebars "project/index" %}

    <div class="l-section" id="wall">
        <div class="l-wrapper">

            <section id="wallposts">
                {{#if currentUser.isAuthenticated }}
                    {{#if canAddMediaWallPost}}
                        {{render "mediaWallPostNew" parentId=parentId}}
                    {{else}}
                        {{render "textWallPostNew" parentId=parentId}}
                    {{/if}}
                {{/if}}

                {{#each item in controller itemController="wallPost"}}
                    {{#if item.isLoaded}}
                        {{#if item.isSystemWallPost}}
                            {{view "App.SystemWallPostView"}}
                        {{else}}
                            {{view "App.MediaWallPostView"}}
                        {{/if}}
                    {{/if}}
                {{/each}}

                {{#if canLoadMore}}
                    <a {{action "showMore"}} class="btn-link btn-more">
                        <span class="flaticon solid plus-2"></span> {% trans "Show more" %} <small>{{remainingItemCount}} {% trans "more" %}</small>
                    </a>
                {{/if}}

            </section>


            <section id="sidebar">
                
                {{#if controllers.project.amount_asked}}
                    <div id="fundraiser-list">
                        {{render 'projectFundRaiserList'}}
                    </div>
                {{/if}}


                {{#if tasks}}
                    <div id="task-list">
                        <div class="activity">


                            <header class="activity-header">
                                <h2 class="activity-title">{% trans "Tasks" %}</h2>
                            </header>

                            <ul class="activity-list">

                                {{#if availableTasks}}
                                    {{#each availableTasks}}
                                        {{view App.TaskSummaryView contentBinding='this'}}
                                    {{/each}}
                                {{/if}}

                                {{#if unavailableTasks}}
                                    {{#each unavailableTasks}}
                                        {{view App.TaskSummaryView contentBinding='this'}}
                                    {{/each}}
                                {{/if}}

                            </ul>

                            {{#if isProjectOwner}}
                                <footer class="activity-footer">
                                    {{#linkTo 'taskNew' controllers.project.id class='activity-action' }}
                                        <strong>{% trans "Create a task" %} &raquo;</strong><br />
                                        {% trans "Why not ask your community to help out?" %}
                                    {{/linkTo}}
                                </footer>
                            {{/if}}

                        </div>
                    </div>
                {{else}}
                    {{#if isProjectOwner}}
                        {{#if controllers.project.isStatusCampaign}}
                            <div id="task-list">
                                <div class="activity">
                                    <header class="activity-header">
                                        <h2 class="activity-title">{% trans "Tasks" %}</h2>
                                    </header>

                                    <footer class="activity-footer">
                                        {{#linkTo 'taskNew' controllers.project.id class='activity-action' }}
                                            <strong>{% trans "Create a task" %} &raquo;</strong><br />
                                            {% trans "Why not ask your community to help out?" %}
                                        {{/linkTo}}
                                    </footer>
                                </div>
                            </div>
                        {{/if}}
                    {{/if}}

                {{/if}}

                {{!-- Todo: only show block when there are supporters --}}
                <div id="supporter-list">
                    <div class="activity">

                        <header class="activity-header">
                            <h2 class="activity-title">{% trans "Supporters" %}</h2>
                        </header>

                        <ul class="activity-list">
                            <li class="activity-item">
                                <a href="#">
                                    <figure class="user-avatar">
                                        <img src="http://placehold.it/70/70" alt="<NAME>" />
                                    </figure>
                                    <span class="activity-body">
                                        <strong class="user-name"><NAME></strong> {% trans "donated" %} <strong>&euro; 25,-</strong><br />
                                        <abbr class="timestamp">2 days ago</abbr>
                                    </span>
                                </a>
                            </li>
                            <li class="activity-item">
                                <a href="#">
                                    <figure class="user-avatar">
                                        <img src="http://placehold.it/70/70" alt="<NAME>" />
                                    </figure>
                                    <span class="activity-body">
                                        <strong class="user-name"><NAME></strong> {% trans "donated" %} <strong>&euro; 25,-</strong><br />
                                        <abbr class="timestamp">2 days ago</abbr>
                                    </span>
{'fraction_non_alphanumeric': 0.12552301255230125, 'fraction_numerical': 0.004002183008913953, 'mean_word_length': 0.8258053802723347, 'pattern_counts': {'":': 0, '<': 154, '<?xml version=': 0, '>': 154, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 64, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6742498', 'n_tokens_mistral': 2507, 'n_tokens_neox': 2246, 'n_words': 498}