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

{% tplhandlebars "task" %}

	<div id="task-detail">
		<div class="l-section">
		    <section class="l-wrapper">

		        <div class="l-content">

		            <div class="task-badge">

		    			<div class="task-status">
							<strong>{% trans "Task" %}</strong> {{status}}
						</div>
						<img {{bindAttr src="project.image.small" alt="project.title"}}>

		            </div>

		            <article class="task-description">

		                <header class="task-header">
		                    <h1 class="task-title">{{title}}</h1>
		                </header>

						<p class="task-project">{% trans "For project" %} {{#link-to 'project' project}}{{project.title}}{{/link-to}}</p>

		                {{#if description}}
		                <p>{{linebreaks description}}</p>
		                {{/if}}

		                {{#if end_goal}}
		                <p><strong>{% trans "Goal" %}:</strong> {{linebreaks end_goal}}</p>
		                {{/if}}

						<a href="#" class="task-read-more"><span class="flaticon solid down-circle-4"></span> {% trans "Read more" %}</a>
		            </article>

		        </div>


		        <sidebar class="l-sidebar">

					{{view App.SocialShareView classNames="task-share"}}

		            <div class="task-section task-meta">

						<dl>
		                    <dt>
		                        <span class="flaticon solid wrench-1"></span>
		                    </dt>
		                    <dd>{{ skill.name }}</dd>
		                </dl>
		                <dl>
		                    <dt>
		                        <span class="flaticon solid location-pin-1"></span>
		                    </dt>
		                    <dd>{{ location }}</dd>
		                </dl>
		                <dl>
		                    <dt>
		                        <span class="flaticon solid watch-1"></span>
		                    </dt>
		                    <dd>{{ timeNeeded }}</dd>
		                </dl>
		                <dl>
		                    <dt>
		                        <span class="flaticon solid calendar-1"></span>
		                    </dt>
		                    {{# if deadline }}
		                        <dd>{{localize deadline formatting="X"}}</dd>
		                    {{else}}
		                        <dd>{% trans "No deadline" %}</dd>
		                    {{/if}}
		                </dl>
		                <dl>
		                    <dt>
		                        <span class="flaticon solid tag-1"></span>
		                    </dt>
		                    <dd>
		                        {{#each tag in tags}}
		                            {{tag.id}}
		                        {{/each}}
		                    </dd>
		                </dl>
		            </div>

		        </sidebar>
		    </section>

		</div>

	    <div class="l-section" id="task-members">
	        <section class="l-wrapper">
                <div class="task-members-list">
                    <ul class="member-list">
                        <li class="member-initiator">
                            <ul>
                                <li>
                                    <a {{action 'openInBigBox' 'userModal' owner }} class="member">
                                        <figure class="member-avatar"><img {{bindAttr src="author.getAvatar"}} /></figure>
                                        <h4>{% trans "Initiator" %} <span class="flaticon solid question-2"></span></h4>
                                        <strong class="member-name">{{author.full_name}}</strong>
                                        <em class="member-organisation">{{author.organization}}</em>
                                    </a>
                                </li>
                            </ul>
                        </li>

                        {{#if members}}
                            <li class="member-assigned">
                                <h4>{% trans "Assigned" %} <span class="flaticon solid question-2"></span></h4>
                                {{#if hasMoreThanOneMember}}
                                    <ul>
                                        {{#each members}}
                                            <li>
                                                <a {{action 'openInBigBox' 'userModal' this.member }} class="member">
                                                    <span class="member-avatar"><img {{bindAttr src="this.member.getAvatar"}}></span>
                                                </a>
                                            </li>
                                        {{/each}}
                                    </ul>
                                    {{else}}
                                    <ul>
                                        {{#each members}}
                                            <li>
                                                <a {{action 'openInBigBox' 'userModal' this.member }} class="member single">
                                                    <figure class="member-avatar"><img {{bindAttr src="this.member.getAvatar"}}></figure>
                                                    <div class="member-details">
                                                        <strong class="member-name">{{this.member.full_name}}</strong>
                                                        <em class="member-created">{{localize this.created formatting="X"}}</em>
                                                    </div>
                                                </a>
                                            </li>
                                        {{/each}}
                                    </ul>
                                {{/if}}
                            </li>
                        {{/if}}
                    </ul>
                </div>

				<div class="task-action">
		            <a {{action applyForTask this }} class="btn btn-primary btn-iconed"}}>
		                <span class="flaticon stroke work-1"></span> {% trans "Apply for task" %}
		            </a>
				</div>
	        </section><commit_msg>bug in tasks detail page that caused an empty modal to appear<commit_after>{% load bb_ember %}
{% load i18n %}
{% load static %}

{% tplhandlebars "task" %}

	<div id="task-detail">
		<div class="l-section">
		    <section class="l-wrapper">

		        <div class="l-content">

		            <div class="task-badge">

		    			<div class="task-status">
							<strong>{% trans "Task" %}</strong> {{status}}
						</div>
						<img {{bindAttr src="project.image.small" alt="project.title"}}>

		            </div>

		            <article class="task-description">

		                <header class="task-header">
		                    <h1 class="task-title">{{title}}</h1>
		                </header>

						<p class="task-project">{% trans "For project" %} {{#link-to 'project' project}}{{project.title}}{{/link-to}}</p>

		                {{#if description}}
		                <p>{{linebreaks description}}</p>
		                {{/if}}

		                {{#if end_goal}}
		                <p><strong>{% trans "Goal" %}:</strong> {{linebreaks end_goal}}</p>
		                {{/if}}

						<a href="#" class="task-read-more"><span class="flaticon solid down-circle-4"></span> {% trans "Read more" %}</a>
		            </article>

		        </div>


		        <sidebar class="l-sidebar">

					{{view App.SocialShareView classNames="task-share"}}

		            <div class="task-section task-meta">

						<dl>
		                    <dt>
		                        <span class="flaticon solid wrench-1"></span>
		                    </dt>
		                    <dd>{{ skill.name }}</dd>
		                </dl>
		                <dl>
		                    <dt>
		                        <span class="flaticon solid location-pin-1"></span>
		                    </dt>
		                    <dd>{{ location }}</dd>
		                </dl>
		                <dl>
		                    <dt>
		                        <span class="flaticon solid watch-1"></span>
		                    </dt>
		                    <dd>{{ timeNeeded }}</dd>
		                </dl>
		                <dl>
		                    <dt>
		                        <span class="flaticon solid calendar-1"></span>
		                    </dt>
		                    {{# if deadline }}
		                        <dd>{{localize deadline formatting="X"}}</dd>
		                    {{else}}
		                        <dd>{% trans "No deadline" %}</dd>
		                    {{/if}}
		                </dl>
		                <dl>
		                    <dt>
		                        <span class="flaticon solid tag-1"></span>
		                    </dt>
		                    <dd>
		                        {{#each tag in tags}}
		                            {{tag.id}}
		                        {{/each}}
		                    </dd>
		                </dl>
		            </div>

		        </sidebar>
		    </section>

		</div>

	    <div class="l-section" id="task-members">
	        <section class="l-wrapper">
                <div class="task-members-list">
                    <ul class="member-list">
                        <li class="member-initiator">
                            <ul>
                                <li>
                                    <a {{action 'openInBigBox' 'userModal' owner }} class="member">
                                        <figure class="member-avatar"><img {{bindAttr src="author.getAvatar"}} /></figure>
                                        <h4>{% trans "Initiator" %} <span class="flaticon solid question-2"></span></h4>
                                        <strong class="member-name">{{author.full_name}}</strong>
                                        <em class="member-organisation">{{author.organization}}</em>
                                    </a>
                                </li>
                            </ul>
                        </li>

                        {{#if members}}
                            <li class="member-assigned">
                                <h4>{% trans "Assigned" %} <span class="flaticon solid question-2"></span></h4>
                                {{#if hasMoreThanOneMember}}
                                    <ul>
                                        {{#each members}}
                                            <li>
                                                <a {{action 'openInBigBox' 'userModal' this.member }} class="member">
                                                    <span class="member-avatar"><img {{bindAttr src="this.member.getAvatar"}}></span>
                                                </a>
                                            </li>
                                        {{/each}}
                                    </ul>
                                    {{else}}
                                    <ul>
                                        {{#each members}}
                                            <li>
                                                <a {{action 'openInBigBox' 'userModal' this.member }} class="member single">
                                                    <figure class="member-avatar"><img {{bindAttr src="this.member.getAvatar"}}></figure>
                                                    <div class="member-details">
                                                        <strong class="member-name">{{this.member.full_name}}</strong>
                                                        <em class="member-created">{{localize this.created formatting="X"}}</em>
                                                    </div>
                                                </a>
                                            </li>
                                        {{/each}}
                                    </ul>
                                {{/if}}
                            </li>
                        {{/if}}
                    </ul>
                </div>
				<div class="task-action">
		            <a {{action applyForTask this }} class="btn btn-primary btn-iconed"}}>
		                <span class="flaticon stroke work-1"></span> {% trans "Apply for task" %}
		            </a>
				</div>
	        </section>
{'fraction_non_alphanumeric': 0.1369419009804716, 'fraction_numerical': 0.0027550441617372984, 'mean_word_length': 0.8014888337468983, 'pattern_counts': {'":': 0, '<': 283, '<?xml version=': 0, '>': 283, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 88, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2966325', 'n_tokens_mistral': 3232, 'n_tokens_neox': 2644, 'n_words': 566}