<!DOCTYPE html>

{% extends "base.html" %}
{% block pagename %}projectpage{% endblock %}
{% block title %}{{ project }}{% endblock %}

{% block navigation %}
	<table class="nav_table">
		<tbody>
		<tr>
			<td>
				<a href="https://st.yandex-team.ru/{{ project }}">{{ project }}</a>
			</td>
			<td class="navigation-delimiter">
				→
			</td>
			<td>
				<a class="navigation_link" href="/regress/{{ project }}">Регрессия</a>
			</td>
		</tr>
		</tbody>
	</table>
{% endblock %}

{% block body %}

<div class="header-bottom-padding"></div>
<div class="container-fluid">
	<h4 id="project_name">{{ project }}</h4>
	<div class="btn-group" role="group" aria-label="" style="float: right; margin-top: -30px;">
	 	<button type="button" id="projectpage-tasks-selector__open" class="btn btn-secondary projectpage-tasks-selector active" data-project_code="{{ project }}">Не закрытые</button>
	 	<button type="button" id="projectpage-tasks-selector__all" class="btn btn-secondary projectpage-tasks-selector" data-project_code="{{ project }}">Все</button>
	</div>
	
	<div class="tasks_block" style="padding: 30px 0;">
  	<div class="task_info" id="task_info">
        <table class="table table-hover tasksTable">
            <tbody id="tasksTableBody">
            </tbody>
        </table>
	</div>
	</div>
</div>

<script nonce="{{ common.CSP_SCRIPT_NONCE }}" type="text/html" id="taskTemplate">
    <tr class=task_table_row>
        <td>
            <a class=jobs_button id="jobs_button__<%= task.key %>" href="#"><i class="fa fa-plus-square text-success" title="Показать задачи"></i></a>
        </td>
        <td><img class=task_status_image src="<%= task.status_img %>"/></td>
        <td><a style="white-space: nowrap;" href="https://st.yandex-team.ru/<%= task.key %>"><%= task.key %></a></td>
        <td><a href="/<%= task.key %>"><%= task.name %></a></td>
        <td><a class="person" style="text-align: right;"><%= task.createdBy %></a></td>
        <td>&rarr;</td>
        <td><a class="person"><%= task.assignee %></a></td>
        <td class=task_info_dates><%= task.createdAt %> </td>
	</tr>
    <tr class="task_table_jobs_row">
        <td colspan="8" style="border: none; padding-top: 0"><div style="padding: 5px 0;" class=jobs_popup id="jobs_popup__<%= task.key %>"><i class="krutilka fa fa-circle-o-notch fa-spin"></i></div></td>
    </tr>
</script>


<link href="/media/css/projectpage.css?version=43.4" type="text/css" rel="stylesheet" />
<script nonce='{{ common.CSP_SCRIPT_NONCE }}' type='text/javascript' src='/media/js/projectpage.js'></script>
{% endblock %}
