diff --git a/app/Model/Project.php b/app/Model/Project.php index ad64edcd2..305e3f1e8 100644 --- a/app/Model/Project.php +++ b/app/Model/Project.php @@ -105,7 +105,7 @@ class Project extends Base * @param string $direction Sorting direction * @return array Project properties */ - public function getSummary(array $project_ids, $status = self::ACTIVE, $order = 'last_modified', $direction = 'desc') + public function getSummary(array $project_ids, $status = self::ACTIVE, $order = 'name', $direction = 'asc') { if (empty($project_ids)) { return array(); diff --git a/app/Template/app/index.php b/app/Template/app/index.php index 1aa5819a1..89550e055 100644 --- a/app/Template/app/index.php +++ b/app/Template/app/index.php @@ -18,11 +18,11 @@
= t('Your are not member of any project.') ?>
-| - | = t('Project') ?> | -= t('Columns') ?> | ++ | = t('Project') ?> | += t('Columns') ?> | ||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| - | = t('Project') ?> | -= t('Task') ?> | -= t('Due date') ?> | ++ | = t('Project') ?> | += t('Task') ?> | += t('Due date') ?> | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| = Helper\order(t('Id'), 'tasks.id', $pagination) ?> | -= Helper\order(t('Column'), 'tasks.column_id', $pagination) ?> | -= Helper\order(t('Category'), 'tasks.category_id', $pagination) ?> | += Helper\order(t('Id'), 'tasks.id', $pagination) ?> | += Helper\order(t('Column'), 'tasks.column_id', $pagination) ?> | += Helper\order(t('Category'), 'tasks.category_id', $pagination) ?> | = Helper\order(t('Title'), 'tasks.title', $pagination) ?> | -= Helper\order(t('Assignee'), 'users.username', $pagination) ?> | -= Helper\order(t('Due date'), 'tasks.date_due', $pagination) ?> | -= Helper\order(t('Date created'), 'tasks.date_creation', $pagination) ?> | -= Helper\order(t('Date completed'), 'tasks.date_completed', $pagination) ?> | -= Helper\order(t('Status'), 'tasks.is_active', $pagination) ?> | += Helper\order(t('Assignee'), 'users.username', $pagination) ?> | += Helper\order(t('Due date'), 'tasks.date_due', $pagination) ?> | += Helper\order(t('Date created'), 'tasks.date_creation', $pagination) ?> | += Helper\order(t('Date completed'), 'tasks.date_completed', $pagination) ?> | += Helper\order(t('Status'), 'tasks.is_active', $pagination) ?> |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| - = dt('%B %e, %Y at %k:%M %p', $task['date_creation']) ?> + = dt('%B %e, %Y', $task['date_creation']) ?> | - = dt('%B %e, %Y at %k:%M %p', $task['date_completed']) ?> + = dt('%B %e, %Y', $task['date_completed']) ?> | diff --git a/assets/css/app.css b/assets/css/app.css index 08deefb7e..a23fca2d2 100644 --- a/assets/css/app.css +++ b/assets/css/app.css @@ -105,6 +105,53 @@ th a { th a:focus, th a:hover { text-decoration: underline; +} + +.table-fixed { + table-layout: fixed; + white-space: nowrap; +} + +.table-fixed td { + white-space: nowrap; + overflow: hidden; + text-overflow: ellipsis; +} + +.column-5 { + width: 5%; +} + +.column-8 { + width: 7.5%; +} + +.column-10 { + width: 10%; +} + +.column-20 { + width: 20%; +} + +.column-30 { + width: 30%; +} + +.column-40 { + width: 40%; +} + +.column-50 { + width: 50%; +} + +.column-60 { + width: 60%; +} + +.column-70 { + width: 70%; }/* forms */ form { margin-bottom: 20px; diff --git a/assets/css/table.css b/assets/css/table.css index 008b4bbf1..c5ddb4c04 100644 --- a/assets/css/table.css +++ b/assets/css/table.css @@ -41,4 +41,51 @@ th a { th a:focus, th a:hover { text-decoration: underline; +} + +.table-fixed { + table-layout: fixed; + white-space: nowrap; +} + +.table-fixed td { + white-space: nowrap; + overflow: hidden; + text-overflow: ellipsis; +} + +.column-5 { + width: 5%; +} + +.column-8 { + width: 7.5%; +} + +.column-10 { + width: 10%; +} + +.column-20 { + width: 20%; +} + +.column-30 { + width: 30%; +} + +.column-40 { + width: 40%; +} + +.column-50 { + width: 50%; +} + +.column-60 { + width: 60%; +} + +.column-70 { + width: 70%; } \ No newline at end of file |