pinkmine/views/simple-kanban-board.hbs

88 lines
No EOL
2.2 KiB
Handlebars

<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>ECCM 1.10 Kanban board</title>
<style>
.kanban-container {
display: flex;
flex-direction: row;
width: 100%;
}
.kanban-column {
width: 200px;
background-color: rgb(225, 225, 225);
display: flex;
flex-direction: column;
}
.kanban-header {
text-align: center;
width: 200px;
}
.kanban-card {
background-color: rgb(196, 196, 196);
border-width: 1px;
border-color: rgba(255, 255, 255, 0.2) rgba(96, 96, 96, 0.2) rgba(96, 96, 96, 0.2) rgba(255, 255, 255, 0.2);
/*border-color: black;*/
border-style: solid;
margin: 2px;
padding: 3px;
width: 190px;
/*display: flex;*/
box-shadow: 0 0 3px rgba(0,0,0,0.5);
border-radius: 3px;
z-index: 100;
}
.kanban-card div {
font-size: small;
}
.kanban-card .kanban-card-title {
font-weight: bold;
}
.timepassed-dot {
height: 10px;
width: 10px;
background-color: #bbb;
border-radius: 50%;
display: inline-block;
}
.timepassed-dot.hot {
background-color: red;
}
.timepassed-dot.warm {
background-color: orange;
}
.timepassed-dot.comfort {
background-color: rgba(255, 255, 0, 0.4);
}
.timepassed-dot.breezy {
background-color: rgba(0, 255, 0, 0.4);
}
.timepassed-dot.cold {
background-color: rgba(0, 0, 255, 0.1);
}
</style>
</head>
<body>
{{#each this}}
<h1>{{this.metainfo.title}}</h1>
<div class="kanban-container">
{{#each this.data}}
<div class="kanban-column">
<div class="kanban-header">{{this.status}}</div>
{{#each this.issues}}
<div class="kanban-card">
<div class="kanban-card-title"><span class="timepassed-dot {{this.timePassedClass}}"></span> <a href="{{{this.url.url}}}">{{this.tracker.name}} #{{this.id}} - {{this.subject}}</a></div>
<div>Исп.: {{this.current_user.name}}</div>
<div>Прогресс: {{this.done_ration}}</div>
<div>Трудозатраты: {{this.total_spent_hours}} / {{this.total_estimated_hours}}</div>
</div>
{{/each}}
</div>
{{/each}}
</div>
{{/each}}
</body>
</html>