From 9b48a854ba49c4539ff1d1853fd0535b59082acf Mon Sep 17 00:00:00 2001 From: Zipher Date: Sat, 23 Jul 2016 10:14:38 +0800 Subject: [PATCH 1/5] 1. Show only used status in the workflow for each project. 2. Bold the summary for issue modified with 24 hours. 3. Show project name in each card for combined view for "All projects". 4. Add Chinese translation. --- files/kanban.css | 11 +++++ lang/strings_chinese_traditional.txt | 31 +++++++++++++ pages/kanban_page.php | 65 ++++++++++++++++++++++++---- 3 files changed, 98 insertions(+), 9 deletions(-) create mode 100644 lang/strings_chinese_traditional.txt diff --git a/files/kanban.css b/files/kanban.css index f7a9170..50575e3 100644 --- a/files/kanban.css +++ b/files/kanban.css @@ -81,6 +81,17 @@ div.card a.bugLink.right { margin-right:5px; } +div.card a.bugLinkRecent { + font: bold 16px Tahoma, sans-serif; + line-height: 20px; + color: black; +} + +div.card a.bugLinkRecent.right { + float:right; + margin-right:5px; +} + div.card div.summary { font: 10px Arial, sans-serif; line-height: 1.5em; diff --git a/lang/strings_chinese_traditional.txt b/lang/strings_chinese_traditional.txt new file mode 100644 index 0000000..194410d --- /dev/null +++ b/lang/strings_chinese_traditional.txt @@ -0,0 +1,31 @@ + array($num), 'wip_limit' => $wip_limit, 'color' => get_status_color( $num ) ); + + + //show only status in the workflow for current project + if ( helper_get_current_project() <> 0 ) + { + $t_workflow = config_get( 'status_enum_workflow', null, null, $curr_project_id ); + + if ( !isset( $t_workflow[$num] ) ) + { + unset( $columns[kanban_get_status_text($num)] ); + } + } + } } } @@ -188,12 +202,18 @@ ); $rowcounts[$title] = count($rows); if(!$rows) { - ?>style="border-color:" - id="" - class="kanbanColumn kanbanColumn"> -

style="background-color:">

- style="border-color:" + id="" + class="kanbanColumn kanbanColumn"> +

style="background-color:">

+ 0 && $rowcounts[$title] > $column['wip_li { $t_bug = $row; echo '
'; + if ( 'combined' == $pdisplay && 0 == $curr_project_id ) + { + echo '
[' . project_get_name( $t_bug->project_id ) . ']
'; + } echo icon_get_status_icon($t_bug->priority); - echo ' ' . string_display_line_links( $t_bug->summary ) . ''; - echo ' #'. $t_bug->id .''; + if ( time() < $t_bug->last_updated + 24*60*60 ){ + echo ' ' . string_display_line_links( $t_bug->summary ) . ''; + echo ' #'. $t_bug->id .''; + }else{ + echo ' ' . string_display_line_links( $t_bug->summary ) . ''; + echo ' #'. $t_bug->id .''; + } $priority = get_enum_element( 'priority', $t_bug->priority ); /* @@ -261,7 +290,17 @@ class=" 0 && $rowcounts[$title] > $column['wip_li if(( ON == config_get( 'show_assigned_names' ) ) && ( $t_bug->handler_id > 0 ) && user_exists($t_bug->handler_id) && ( access_has_project_level( config_get( 'view_handler_threshold' ), $t_bug->project_id ) ) ) { $emailHash = md5( strtolower( trim( user_get_email($t_bug->handler_id) ) ) ); echo '
'; - echo '
'; + // Using the default avatar set in config_inc.php + if ( '404' == config_get('show_avatar') || + 'mm' == config_get('show_avatar') || + 'identicon' == config_get('show_avatar') || + 'monsterid' == config_get('show_avatar') || + 'wavatar' == config_get('show_avatar') || + 'retro' == config_get('show_avatar') || + 'blank' == config_get('show_avatar') ) + echo '
'; + else + echo '
'; echo user_get_realname( $t_bug->handler_id ); echo '
'; @@ -284,6 +323,11 @@ class=" 0 && $rowcounts[$title] > $column['wip_li } ?> + $column){ @@ -303,6 +347,9 @@ class=" 0 && $rowcounts[$title] > $column['wip_li } ?> +
From a91326dc74a4e294f5fa82b9aae07a1a03d4e43a Mon Sep 17 00:00:00 2001 From: Zipher Date: Sat, 23 Jul 2016 10:52:28 +0800 Subject: [PATCH 2/5] 1. Correct status not shown when workflow is not set. --- pages/kanban_page.php | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/pages/kanban_page.php b/pages/kanban_page.php index 7a62277..3b4bdb2 100644 --- a/pages/kanban_page.php +++ b/pages/kanban_page.php @@ -76,10 +76,12 @@ if ( helper_get_current_project() <> 0 ) { $t_workflow = config_get( 'status_enum_workflow', null, null, $curr_project_id ); - - if ( !isset( $t_workflow[$num] ) ) + if ( !empty($t_workflow) ) { - unset( $columns[kanban_get_status_text($num)] ); + if ( !isset( $t_workflow[$num] ) ) + { + unset( $columns[kanban_get_status_text($num)] ); + } } } @@ -204,15 +206,13 @@ if(!$rows) { # read through the list and show only used status for the selected project $t_workflow = config_get( 'status_enum_workflow', null, null, $curr_project_id ); - if( !empty( $t_workflow ) ) { - if( isset( $t_workflow[$column['status'][0]] ) || 0 == $curr_project_id ) { - ?>style="border-color:" - id="" - class="kanbanColumn kanbanColumn"> -

style="background-color:">

- style="border-color:" + id="" + class="kanbanColumn kanbanColumn"> +

style="background-color:">

+ Date: Sat, 23 Jul 2016 10:57:19 +0800 Subject: [PATCH 3/5] Update README.md to reflect changes. --- README.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/README.md b/README.md index fdbfb73..0a99489 100644 --- a/README.md +++ b/README.md @@ -20,6 +20,11 @@ __Setup__ Changelog --------- +__New features in version 1.2.1.:__ +* Show only used status in the workflow for each project. +* Bold the summary for issue modified with 24 hours. +* Show project name in each card for combined view for "All projects". + __New features in version 1.2.:__ * make use of the default states * filter directly in the kanban view From cd59685583c89e1012b297b89ef23276f4038557 Mon Sep 17 00:00:00 2001 From: Zipher Date: Sat, 23 Jul 2016 11:01:39 +0800 Subject: [PATCH 4/5] Update README.md to reflect changes. --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 0a99489..494a5b5 100644 --- a/README.md +++ b/README.md @@ -24,6 +24,7 @@ __New features in version 1.2.1.:__ * Show only used status in the workflow for each project. * Bold the summary for issue modified with 24 hours. * Show project name in each card for combined view for "All projects". +* Using the default gravtar setting in config_inc.php. __New features in version 1.2.:__ * make use of the default states From c03191d1c55f1d3c2921d9ba5c35b273c10610fb Mon Sep 17 00:00:00 2001 From: Zipher Date: Sat, 23 Jul 2016 11:04:19 +0800 Subject: [PATCH 5/5] Correct tab to white space in README.md. --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 494a5b5..7b242b0 100644 --- a/README.md +++ b/README.md @@ -24,7 +24,7 @@ __New features in version 1.2.1.:__ * Show only used status in the workflow for each project. * Bold the summary for issue modified with 24 hours. * Show project name in each card for combined view for "All projects". -* Using the default gravtar setting in config_inc.php. +* Using the default gravtar setting in config_inc.php. __New features in version 1.2.:__ * make use of the default states