From ef869011c622a5a7ea7bd1779c01c57b0947d4ba Mon Sep 17 00:00:00 2001 From: hyung-hwan Date: Fri, 2 Sep 2016 02:06:18 +0000 Subject: [PATCH] made the issue summary item clickable in the issue home view --- codepot/src/codepot/views/issue_home.php | 2 +- codepot/src/css/issue.css | 43 ++++++++++++++++-------- 2 files changed, 30 insertions(+), 15 deletions(-) diff --git a/codepot/src/codepot/views/issue_home.php b/codepot/src/codepot/views/issue_home.php index 38e42323..97218e6b 100644 --- a/codepot/src/codepot/views/issue_home.php +++ b/codepot/src/codepot/views/issue_home.php @@ -376,7 +376,7 @@ else print ''; print ''; - print htmlspecialchars($issue->summary); + print anchor ("issue/show/{$project->id}/{$hexid}", htmlspecialchars($issue->summary)); print ''; print ''; diff --git a/codepot/src/css/issue.css b/codepot/src/css/issue.css index 8faa5310..819eb88b 100644 --- a/codepot/src/css/issue.css +++ b/codepot/src/css/issue.css @@ -61,42 +61,42 @@ textarea.codepot-issue-edit-comment { vertical-align: text-top; } -#issue_home_result_table tr.new td.status, -#issue_home_result_table tr.new td.summary { +#issue_home_result_table tr.new td.status/*, +#issue_home_result_table tr.new td.summary*/ { background-color: #ffccbb; background-color: rgba(255, 204, 187, 0.5); } -#issue_home_result_table tr.accepted td.status, -#issue_home_result_table tr.accepted td.summary { +#issue_home_result_table tr.accepted td.status/*, +#issue_home_result_table tr.accepted td.summary*/ { } -#issue_home_result_table tr.rejected td.status, -#issue_home_result_table tr.rejected td.summary { +#issue_home_result_table tr.rejected td.status/*, +#issue_home_result_table tr.rejected td.summary*/ { background-color: #ffeedd; background-color: rgba(255, 238, 221, 0.5); } -#issue_home_result_table tr.started td.status, -#issue_home_result_table tr.started td.summary { +#issue_home_result_table tr.started td.status/*, +#issue_home_result_table tr.started td.summary*/ { background-color: #ddeeff; background-color: rgba(221, 238, 255, 0.5); } -#issue_home_result_table tr.stalled td.status, -#issue_home_result_table tr.stalled td.summary { +#issue_home_result_table tr.stalled td.status/*, +#issue_home_result_table tr.stalled td.summary*/ { background-color: #bbccff; background-color: rgba(187, 204, 255, 0.5); } -#issue_home_result_table tr.resolved td.status, -#issue_home_result_table tr.resolved td.summary { +#issue_home_result_table tr.resolved td.status/*, +#issue_home_result_table tr.resolved td.summary*/ { background-color: #ddffdd; background-color: rgba(221, 255, 221, 0.5); } -#issue_home_result_table tr.other td.status, -#issue_home_result_table tr.other td.summary { +#issue_home_result_table tr.other td.status/*, +#issue_home_result_table tr.other td.summary*/ { background-color: #ddeeff; background-color: rgba(221, 238, 255, 0.5); } @@ -113,6 +113,21 @@ textarea.codepot-issue-edit-comment { white-space: normal; } +#issue_home_result_table td.summary:hover { + background-color: #F0F0F0 !important; +} + +#issue_home_result_table td.summary a, +#issue_home_result_table td.summary a:visited, +#issue_home_result_table td.summary a:focus { + color: inherit; + white-space: pre-wrap; /* css-3 */ + white-space: -moz-pre-wrap; /* Mozilla, since 1999 */ + white-space: -pre-wrap; /* Opera 4-6 */ + white-space: -o-pre-wrap; /* Opera 7 */ + font-family: "DejaVu Sans Mono", consolas, monaco, "Andale Mono", monospace; +} + #issue_home_result_pages { margin-top: 1em; text-align: center;