diff --git a/controller/index_controller.php b/controller/index_controller.php index c1bb878..dabe106 100644 --- a/controller/index_controller.php +++ b/controller/index_controller.php @@ -43,13 +43,17 @@ public function index() $ideas = $this->entity->get_ideas(ext::NUM_IDEAS, ext::SORT_DATE, 'DESC', ext::$statuses['IMPLEMENTED']); $this->assign_template_block_vars('implemented_ideas', $ideas); + // Generate in progress + $ideas = $this->entity->get_ideas(ext::NUM_IDEAS, ext::SORT_DATE, 'DESC', ext::$statuses['IN_PROGRESS']); + $this->assign_template_block_vars('in_progress_ideas', $ideas); + $this->template->assign_vars(array( 'U_VIEW_TOP' => $this->helper->route('phpbb_ideas_list_controller', ['sort' => ext::SORT_TOP]), 'U_VIEW_LATEST' => $this->helper->route('phpbb_ideas_list_controller', ['sort' => ext::SORT_NEW]), 'U_VIEW_IMPLEMENTED'=> $this->helper->route('phpbb_ideas_list_controller', ['sort' => ext::SORT_DATE, 'status' => ext::$statuses['IMPLEMENTED']]), + 'U_VIEW_IN_PROGRESS'=> $this->helper->route('phpbb_ideas_list_controller', ['sort' => ext::SORT_DATE, 'status' => ext::$statuses['IN_PROGRESS']]), 'U_POST_ACTION' => $this->helper->route('phpbb_ideas_post_controller'), 'U_MCP' => ($this->auth->acl_get('m_', $this->config['ideas_forum_id'])) ? append_sid("{$this->root_path}mcp.$this->php_ext", "f={$this->config['ideas_forum_id']}&i=main&mode=forum_view", true, $this->user->session_id) : '', - )); // Assign breadcrumb template vars diff --git a/language/en/common.php b/language/en/common.php index abe765b..d06b64e 100644 --- a/language/en/common.php +++ b/language/en/common.php @@ -27,6 +27,7 @@ 'CLICK_TO_VIEW' => 'Click to view votes.', 'CONFIRM_DELETE' => 'Are you sure you want to delete this idea?', + 'DATE' => 'Date', 'DELETE_IDEA' => 'Delete idea', 'DUPLICATE' => 'Duplicate', 'DUPLICATE_PLACEHOLDER' => 'Start typing a title', @@ -47,6 +48,7 @@ 'IMPLEMENTED_IDEAS' => 'Recently Implemented Ideas', 'IMPLEMENTED_VERSION' => 'phpBB version', 'IN_PROGRESS' => 'In Progress', + 'IN_PROGRESS_IDEAS' => 'Ideas In Progress', 'INVALID' => 'Invalid', 'INVALID_IDEA_QUERY' => 'Invalid SQL query. Ideas failed to load.', 'INVALID_VOTE' => 'Invalid vote; the number you entered was invalid.', @@ -88,6 +90,7 @@ 'TICKET' => 'Ticket', 'TICKET_ERROR' => 'Ticket ID must be of the format “PHPBB-#####” or “PHPBB3-#####”.', 'TICKET_ERROR_DUP' => 'You must click on an idea title from the live search results. To delete the duplicate, clear the field and press ENTER. To exit this field press ESC.', + 'TITLE' => 'Title', 'TOP' => 'Top', 'TOP_IDEAS' => 'Top Ideas', 'TOTAL_IDEAS' => [ @@ -108,6 +111,7 @@ 'VIEW_IDEA' => 'View Idea', 'VIEW_IMPLEMENTED' => 'View all implemented ideas', + 'VIEW_IN_PROGRESS' => 'View all in progress ideas', 'VIEW_LATEST' => 'View all open ideas', 'VIEW_TOP' => 'View all top voted ideas', 'VIEWING_IDEAS' => 'Viewing Ideas', diff --git a/styles/prosilver/template/index_body.html b/styles/prosilver/template/index_body.html index 1cf7375..05403f5 100644 --- a/styles/prosilver/template/index_body.html +++ b/styles/prosilver/template/index_body.html @@ -1,3 +1,25 @@ +{% macro ideas_section(title, ideas, view_url, icon_class, view_text) %} +