From 31f433b375d36cfab71839061da9fbbf3123ce98 Mon Sep 17 00:00:00 2001 From: hyung-hwan Date: Fri, 17 Apr 2015 05:56:04 +0000 Subject: [PATCH] added the 'All' button next to the 'Change log' label in sidebar boxes to put back the lost href link for the collapsible sidebar box implementation --- codepot/src/codepot/views/project_home.php | 7 ++++++- codepot/src/codepot/views/site_home.php | 10 +++++++++- codepot/src/css/project.css | 5 +++++ codepot/src/css/site.css | 5 +++++ 4 files changed, 25 insertions(+), 2 deletions(-) diff --git a/codepot/src/codepot/views/project_home.php b/codepot/src/codepot/views/project_home.php index d5022980..d252baa6 100644 --- a/codepot/src/codepot/views/project_home.php +++ b/codepot/src/codepot/views/project_home.php @@ -52,6 +52,9 @@ function render_wiki() collapsible: true }); + $("#project_home_sidebar_log_all_button").button ().click (function () { + $(location).attr ('href', "/project/log/" + "id; ?>"); + }); } $(function() { @@ -172,8 +175,10 @@ foreach ($urls as $url)
-id}", $this->lang->line('Change log')) ?> +lang->line('Change log'); ?> +lang->line('All'); ?>
+ '; diff --git a/codepot/src/codepot/views/site_home.php b/codepot/src/codepot/views/site_home.php index 75b0bf09..2ee00d15 100644 --- a/codepot/src/codepot/views/site_home.php +++ b/codepot/src/codepot/views/site_home.php @@ -45,6 +45,10 @@ $(function () { $("#site_home_sidebar_log_box").accordion ({ collapsible: true }); + + $("#site_home_sidebar_log_all_button").button ().click (function () { + $(location).attr ('href', "/site/log"); + }); }); @@ -113,7 +117,11 @@ foreach ($latest_projects as $project)
-
lang->line('Change log')); ?>
+
+lang->line('Change log'); ?> +lang->line('All'); ?> +
+ converter->AsciiToHex ('.'); diff --git a/codepot/src/css/project.css b/codepot/src/css/project.css index 48b1f98a..2db6fc89 100644 --- a/codepot/src/css/project.css +++ b/codepot/src/css/project.css @@ -13,6 +13,7 @@ #project_home_sidebar .collapsible-box-header { background: #E5ECF9 none repeat scroll 0 0; border: #D4DBE8 1px solid; + color: #1C94C4; } #project_home_sidebar .collapsible-box-list { @@ -26,6 +27,10 @@ border-collapse: collapse; } +#project_home_sidebar_log_all_button { + color: #1C94C4; +} + #project_home_sidebar_log_table td { padding-left: 0.5em; } diff --git a/codepot/src/css/site.css b/codepot/src/css/site.css index 4dae0e6d..91b1efbd 100644 --- a/codepot/src/css/site.css +++ b/codepot/src/css/site.css @@ -13,6 +13,7 @@ #site_home_sidebar .collapsible-box-header { background: #E5ECF9 none repeat scroll 0 0; border: #D4DBE8 1px solid; + color: #1C94C4; } #site_home_sidebar .collapsible-box-list { @@ -26,6 +27,10 @@ border-collapse: collapse; } +#site_home_sidebar_log_all_button { + color: #1C94C4; +} + #site_home_sidebar_log_table td { padding-left: 0.5em; }