105 lines
No EOL
2.7 KiB
Handlebars
105 lines
No EOL
2.7 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);
|
|
}
|
|
.kanban-card-tag {
|
|
font-size: 8pt;
|
|
border-radius: 4px;
|
|
padding: 2px;
|
|
}
|
|
</style>
|
|
</head>
|
|
|
|
<body>
|
|
{{#each this}}
|
|
{{#if this.metainfo}}
|
|
<h1 id="{{this.metainfo.title}}">{{this.metainfo.title}} <a href="#{{this.metainfo.title}}">#</a></h1>
|
|
<div class="kanban-container">
|
|
{{#each this.data}}
|
|
<div class="kanban-column">
|
|
<div class="kanban-header">{{this.status}} ({{this.count}})</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.priority.name}}</div>
|
|
<div>Версия: {{this.fixed_version.name}}</div>
|
|
<div>Прогресс: {{this.done_ratio}}</div>
|
|
<div>Трудозатраты: {{this.total_spent_hours}} / {{this.total_estimated_hours}}</div>
|
|
{{#if this.styledTags}}
|
|
<div>
|
|
Tags:
|
|
{{#each this.styledTags}}
|
|
<span class="kanban-card-tag" style="{{{this.style}}}">{{this.tag}}</span>
|
|
{{/each}}
|
|
</div>
|
|
{{/if}}
|
|
</div>
|
|
{{/each}}
|
|
</div>
|
|
{{/each}}
|
|
</div>
|
|
{{/if}}
|
|
{{/each}}
|
|
</body>
|
|
</html> |