Improve pull-request
This commit is contained in:
@@ -683,4 +683,7 @@ return array(
|
|||||||
// 'Help on Bitbucket webhooks' => '',
|
// 'Help on Bitbucket webhooks' => '',
|
||||||
// 'Start' => '',
|
// 'Start' => '',
|
||||||
// 'End' => '',
|
// 'End' => '',
|
||||||
|
// 'Task age in days' => '',
|
||||||
|
// 'Days in this column' => '',
|
||||||
|
// '%dd' => '',
|
||||||
);
|
);
|
||||||
|
|||||||
@@ -683,4 +683,7 @@ return array(
|
|||||||
'Help on Bitbucket webhooks' => 'Hilfe für Bitbucket webhooks',
|
'Help on Bitbucket webhooks' => 'Hilfe für Bitbucket webhooks',
|
||||||
// 'Start' => '',
|
// 'Start' => '',
|
||||||
// 'End' => '',
|
// 'End' => '',
|
||||||
|
// 'Task age in days' => '',
|
||||||
|
// 'Days in this column' => '',
|
||||||
|
// '%dd' => '',
|
||||||
);
|
);
|
||||||
|
|||||||
@@ -683,4 +683,7 @@ return array(
|
|||||||
// 'Help on Bitbucket webhooks' => '',
|
// 'Help on Bitbucket webhooks' => '',
|
||||||
// 'Start' => '',
|
// 'Start' => '',
|
||||||
// 'End' => '',
|
// 'End' => '',
|
||||||
|
// 'Task age in days' => '',
|
||||||
|
// 'Days in this column' => '',
|
||||||
|
// '%dd' => '',
|
||||||
);
|
);
|
||||||
|
|||||||
@@ -683,4 +683,7 @@ return array(
|
|||||||
// 'Help on Bitbucket webhooks' => '',
|
// 'Help on Bitbucket webhooks' => '',
|
||||||
// 'Start' => '',
|
// 'Start' => '',
|
||||||
// 'End' => '',
|
// 'End' => '',
|
||||||
|
// 'Task age in days' => '',
|
||||||
|
// 'Days in this column' => '',
|
||||||
|
// '%dd' => '',
|
||||||
);
|
);
|
||||||
|
|||||||
@@ -685,4 +685,7 @@ return array(
|
|||||||
'Help on Bitbucket webhooks' => 'Aide sur les webhooks Bitbucket',
|
'Help on Bitbucket webhooks' => 'Aide sur les webhooks Bitbucket',
|
||||||
'Start' => 'Début',
|
'Start' => 'Début',
|
||||||
'End' => 'Fin',
|
'End' => 'Fin',
|
||||||
|
'Task age in days' => 'Age de la tâche en jours',
|
||||||
|
'Days in this column' => 'Jours dans cette colonne',
|
||||||
|
'%dd' => '%dj',
|
||||||
);
|
);
|
||||||
|
|||||||
@@ -683,4 +683,7 @@ return array(
|
|||||||
// 'Help on Bitbucket webhooks' => '',
|
// 'Help on Bitbucket webhooks' => '',
|
||||||
// 'Start' => '',
|
// 'Start' => '',
|
||||||
// 'End' => '',
|
// 'End' => '',
|
||||||
|
// 'Task age in days' => '',
|
||||||
|
// 'Days in this column' => '',
|
||||||
|
// '%dd' => '',
|
||||||
);
|
);
|
||||||
|
|||||||
@@ -683,4 +683,7 @@ return array(
|
|||||||
// 'Help on Bitbucket webhooks' => '',
|
// 'Help on Bitbucket webhooks' => '',
|
||||||
// 'Start' => '',
|
// 'Start' => '',
|
||||||
// 'End' => '',
|
// 'End' => '',
|
||||||
|
// 'Task age in days' => '',
|
||||||
|
// 'Days in this column' => '',
|
||||||
|
// '%dd' => '',
|
||||||
);
|
);
|
||||||
|
|||||||
@@ -683,4 +683,7 @@ return array(
|
|||||||
// 'Help on Bitbucket webhooks' => '',
|
// 'Help on Bitbucket webhooks' => '',
|
||||||
// 'Start' => '',
|
// 'Start' => '',
|
||||||
// 'End' => '',
|
// 'End' => '',
|
||||||
|
// 'Task age in days' => '',
|
||||||
|
// 'Days in this column' => '',
|
||||||
|
// '%dd' => '',
|
||||||
);
|
);
|
||||||
|
|||||||
@@ -683,4 +683,7 @@ return array(
|
|||||||
// 'Help on Bitbucket webhooks' => '',
|
// 'Help on Bitbucket webhooks' => '',
|
||||||
// 'Start' => '',
|
// 'Start' => '',
|
||||||
// 'End' => '',
|
// 'End' => '',
|
||||||
|
// 'Task age in days' => '',
|
||||||
|
// 'Days in this column' => '',
|
||||||
|
// '%dd' => '',
|
||||||
);
|
);
|
||||||
|
|||||||
@@ -683,4 +683,7 @@ return array(
|
|||||||
'Help on Bitbucket webhooks' => 'Ajuda sobre os webhooks Bitbucket',
|
'Help on Bitbucket webhooks' => 'Ajuda sobre os webhooks Bitbucket',
|
||||||
// 'Start' => '',
|
// 'Start' => '',
|
||||||
// 'End' => '',
|
// 'End' => '',
|
||||||
|
// 'Task age in days' => '',
|
||||||
|
// 'Days in this column' => '',
|
||||||
|
// '%dd' => '',
|
||||||
);
|
);
|
||||||
|
|||||||
@@ -683,4 +683,7 @@ return array(
|
|||||||
// 'Help on Bitbucket webhooks' => '',
|
// 'Help on Bitbucket webhooks' => '',
|
||||||
// 'Start' => '',
|
// 'Start' => '',
|
||||||
// 'End' => '',
|
// 'End' => '',
|
||||||
|
// 'Task age in days' => '',
|
||||||
|
// 'Days in this column' => '',
|
||||||
|
// '%dd' => '',
|
||||||
);
|
);
|
||||||
|
|||||||
@@ -683,4 +683,7 @@ return array(
|
|||||||
// 'Help on Bitbucket webhooks' => '',
|
// 'Help on Bitbucket webhooks' => '',
|
||||||
// 'Start' => '',
|
// 'Start' => '',
|
||||||
// 'End' => '',
|
// 'End' => '',
|
||||||
|
// 'Task age in days' => '',
|
||||||
|
// 'Days in this column' => '',
|
||||||
|
// '%dd' => '',
|
||||||
);
|
);
|
||||||
|
|||||||
@@ -683,4 +683,7 @@ return array(
|
|||||||
// 'Help on Bitbucket webhooks' => '',
|
// 'Help on Bitbucket webhooks' => '',
|
||||||
// 'Start' => '',
|
// 'Start' => '',
|
||||||
// 'End' => '',
|
// 'End' => '',
|
||||||
|
// 'Task age in days' => '',
|
||||||
|
// 'Days in this column' => '',
|
||||||
|
// '%dd' => '',
|
||||||
);
|
);
|
||||||
|
|||||||
@@ -683,4 +683,7 @@ return array(
|
|||||||
// 'Help on Bitbucket webhooks' => '',
|
// 'Help on Bitbucket webhooks' => '',
|
||||||
// 'Start' => '',
|
// 'Start' => '',
|
||||||
// 'End' => '',
|
// 'End' => '',
|
||||||
|
// 'Task age in days' => '',
|
||||||
|
// 'Days in this column' => '',
|
||||||
|
// '%dd' => '',
|
||||||
);
|
);
|
||||||
|
|||||||
@@ -30,10 +30,11 @@ class TaskPosition extends Base
|
|||||||
$result = $this->calculateAndSave($project_id, $task_id, $column_id, $position, $swimlane_id);
|
$result = $this->calculateAndSave($project_id, $task_id, $column_id, $position, $swimlane_id);
|
||||||
|
|
||||||
if ($result) {
|
if ($result) {
|
||||||
|
|
||||||
if ($original_task['column_id'] != $column_id) {
|
if ($original_task['column_id'] != $column_id) {
|
||||||
$this->db->table(Task::TABLE)->eq('id', $task_id)->update(array('date_moved' => time(),
|
$this->db->table(Task::TABLE)->eq('id', $task_id)->update(array('date_moved' => time()));
|
||||||
));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($original_task['swimlane_id'] != $swimlane_id) {
|
if ($original_task['swimlane_id'] != $swimlane_id) {
|
||||||
$this->calculateAndSave($project_id, 0, $column_id, 1, $original_task['swimlane_id']);
|
$this->calculateAndSave($project_id, 0, $column_id, 1, $original_task['swimlane_id']);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -34,8 +34,10 @@ function version_45($pdo)
|
|||||||
WHERE event_name IN ('task.create', 'task.move.column')
|
WHERE event_name IN ('task.create', 'task.move.column')
|
||||||
GROUP BY task_id
|
GROUP BY task_id
|
||||||
) src
|
) src
|
||||||
)
|
)");
|
||||||
");
|
|
||||||
|
// If there is no activities for some tasks use the date_creation
|
||||||
|
$pdo->exec("UPDATE tasks SET date_moved = date_creation WHERE date_moved IS NULL OR date_moved = 0");
|
||||||
}
|
}
|
||||||
|
|
||||||
function version_44($pdo)
|
function version_44($pdo)
|
||||||
|
|||||||
@@ -34,13 +34,15 @@ function version_26($pdo)
|
|||||||
WHERE event_name IN ('task.create', 'task.move.column')
|
WHERE event_name IN ('task.create', 'task.move.column')
|
||||||
GROUP BY task_id
|
GROUP BY task_id
|
||||||
) src
|
) src
|
||||||
)
|
)");
|
||||||
");
|
|
||||||
|
// If there is no activities for some tasks use the date_creation
|
||||||
|
$pdo->exec("UPDATE tasks SET date_moved = date_creation WHERE date_moved IS NULL OR date_moved = 0");
|
||||||
}
|
}
|
||||||
|
|
||||||
function version_25($pdo)
|
function version_25($pdo)
|
||||||
{
|
{
|
||||||
$pdo->exec("ALTER TABLE users ADD COLUMN disable_login_form BOOLEAN DEFAULT '1'");
|
$pdo->exec("ALTER TABLE users ADD COLUMN disable_login_form BOOLEAN DEFAULT '0'");
|
||||||
}
|
}
|
||||||
|
|
||||||
function version_24($pdo)
|
function version_24($pdo)
|
||||||
|
|||||||
@@ -34,8 +34,10 @@ function version_44($pdo)
|
|||||||
WHERE event_name IN ('task.create', 'task.move.column')
|
WHERE event_name IN ('task.create', 'task.move.column')
|
||||||
GROUP BY task_id
|
GROUP BY task_id
|
||||||
) src
|
) src
|
||||||
)
|
)");
|
||||||
");
|
|
||||||
|
// If there is no activities for some tasks use the date_creation
|
||||||
|
$pdo->exec("UPDATE tasks SET date_moved = date_creation WHERE date_moved IS NULL OR date_moved = 0");
|
||||||
}
|
}
|
||||||
|
|
||||||
function version_43($pdo)
|
function version_43($pdo)
|
||||||
|
|||||||
@@ -69,8 +69,8 @@
|
|||||||
) ?>
|
) ?>
|
||||||
</span>
|
</span>
|
||||||
|
|
||||||
<span title="<?= t('Task age in days')?>" class="task-days-age"><?= floor(time()/86400) - floor($task['date_creation']/86400)?>d</span>
|
<span title="<?= t('Task age in days')?>" class="task-days-age"><?= t('%dd', floor(time()/86400) - floor($task['date_creation']/86400)) ?></span>
|
||||||
<span title="<?= t('Days in this column')?>" class="task-days-incolumn"><?= floor(time()/86400) - floor($task['date_moved']/86400)?>d</span>
|
<span title="<?= t('Days in this column')?>" class="task-days-incolumn"><?= t('%dd', floor(time()/86400) - floor($task['date_moved']/86400)) ?></span>
|
||||||
|
|
||||||
<?php if ($task['score']): ?>
|
<?php if ($task['score']): ?>
|
||||||
<span class="task-score"><?= $this->e($task['score']) ?></span>
|
<span class="task-score"><?= $this->e($task['score']) ?></span>
|
||||||
|
|||||||
@@ -1636,7 +1636,7 @@ a.task-board-nobody {
|
|||||||
font-size: 0.8em;
|
font-size: 0.8em;
|
||||||
border: #888 1px solid;
|
border: #888 1px solid;
|
||||||
border-radius:2px;
|
border-radius:2px;
|
||||||
padding:1px 4px 1px 2px;
|
padding: 1px 4px 1px 2px;
|
||||||
border-top-left-radius: 3px;
|
border-top-left-radius: 3px;
|
||||||
border-bottom-left-radius: 3px;
|
border-bottom-left-radius: 3px;
|
||||||
}
|
}
|
||||||
@@ -1647,7 +1647,7 @@ a.task-board-nobody {
|
|||||||
border-left: none;
|
border-left: none;
|
||||||
margin-left: -5px;
|
margin-left: -5px;
|
||||||
border-radius:2px;
|
border-radius:2px;
|
||||||
padding:1px 2px 1px 4px;
|
padding: 1px 2px 1px 4px;
|
||||||
border-top-right-radius: 3px;
|
border-top-right-radius: 3px;
|
||||||
border-bottom-right-radius: 3px;
|
border-bottom-right-radius: 3px;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -210,7 +210,7 @@ a.task-board-nobody {
|
|||||||
font-size: 0.8em;
|
font-size: 0.8em;
|
||||||
border: #888 1px solid;
|
border: #888 1px solid;
|
||||||
border-radius:2px;
|
border-radius:2px;
|
||||||
padding:1px 4px 1px 2px;
|
padding: 1px 4px 1px 2px;
|
||||||
border-top-left-radius: 3px;
|
border-top-left-radius: 3px;
|
||||||
border-bottom-left-radius: 3px;
|
border-bottom-left-radius: 3px;
|
||||||
}
|
}
|
||||||
@@ -221,7 +221,7 @@ a.task-board-nobody {
|
|||||||
border-left: none;
|
border-left: none;
|
||||||
margin-left: -5px;
|
margin-left: -5px;
|
||||||
border-radius:2px;
|
border-radius:2px;
|
||||||
padding:1px 2px 1px 4px;
|
padding: 1px 2px 1px 4px;
|
||||||
border-top-right-radius: 3px;
|
border-top-right-radius: 3px;
|
||||||
border-bottom-right-radius: 3px;
|
border-bottom-right-radius: 3px;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user