Commit 6f0bac3e authored by Florian Fittkau's avatar Florian Fittkau

timings

parent 680e0182
......@@ -8,7 +8,7 @@ class SprintController {
def sprints = projects[0].sprints
def currentSprint = sprints.iterator().next()
def sprintUserStories = currentSprint.userstories
sprintUserStories.sort(true)
sprintUserStories = sprintUserStories.sort(true)
def sprintTasks = []
......@@ -16,7 +16,7 @@ class SprintController {
sprintTasks.addAll(it.tasks)
}
sprintTasks.sort(true)
sprintTasks = sprintTasks.sort(true)
render(view: "show", model: [projects: projects,
currentSprint: currentSprint,
......
......@@ -14,7 +14,7 @@ class NoteTaskTagLib {
if (index % attrs["columnlength"].toInteger() == attrs["columnindex"].toInteger()) {
out << """<div class='ui-widget ui-corner-all task'>
<div class='hidden'>${item.id}</div>
<div class='ui-widget-header ui-corner-top' style='background: ${item.parent.color.toHex()} !important;'>${item}</div>
<div class='ui-widget-header ui-corner-top taskHeader' style='background: ${item.parent.color.toHex()} !important;'>${item}</div>
<div class='ui-widget-content ui-corner-bottom' >${item.getShortDescription()}</div>
</div> """
}
......
......@@ -3,6 +3,7 @@ package scrumboard
class ShowTaskDialogTagLib {
def showTaskDialog = { attrs ->
out << """\$( ".task" ).dblclick(function() {
\$( '.ui-dialog-titlebar' ).attr('style', ("background", \$(this).find('.taskHeader').attr('style')))
\$.ajax({
url: "/scrumboard/userStory/showTask?taskId=" + \$(this).find(".hidden").text()
}).done(function ( data ) {
......
<%@ page import="groovy.time.TimeCategory" %>
<g:form action="none" name="showTaskForm">
<input type="hidden" id="taskId" name="taskId" value="${task.id}" />
<table>
......@@ -35,7 +37,8 @@
</tr>
<tr>
<td>Duration:</td>
<td><input size='60%' disabled id='task_duration' type="text" name="duration" value="${new Date(task.finished_date - task.started_date).format('HH:mm:ss dd.MM.yyyy')}" /></td>
<% def duration = TimeCategory.minus(task.finished_date, task.started_date) %>
<td><input size='60%' disabled id='task_duration' type="text" name="duration" value="${duration.getDays()} days ${duration.getHours()} hours ${duration.getMinutes()} minutes ${duration.getSeconds()} seconds" /></td>
</tr>
</g:if>
<tbody>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment