diff --git a/images/closed.png b/images/closed.png new file mode 100644 index 0000000..447e0e3 Binary files /dev/null and b/images/closed.png differ diff --git a/images/open.png b/images/open.png new file mode 100644 index 0000000..4b645c6 Binary files /dev/null and b/images/open.png differ diff --git a/style.css b/style.css index ee4927e..049b4e9 100644 --- a/style.css +++ b/style.css @@ -10,13 +10,25 @@ div.redissue { img.redissue { height: 2.0em; width: 2.0em; + /*margin-bottom: -10px;*/ } a.redissue-status-closed { - text-decoration: line-through; + text-decoration: line-through !important; color: #989898; + background-color: #f6f6f6; + } a.redissue-status-open { color: #009933; + background-color: #f6f6f6; +} + +span.status { + background-color: #3498db; + border-radius: .3em; + text-indent: .3em; + color: white; + padding: 1px; } diff --git a/syntax.php b/syntax.php index 516e03f..10bf7d9 100644 --- a/syntax.php +++ b/syntax.php @@ -125,7 +125,12 @@ function _render_link($renderer, $data) { // Get other issue info $subject = $issue['issue']['subject']; $status = $issue['issue']['status']['name']; - $this->_render_custom_link($renderer, $data, "[#" . $data['id'] . "][" . $status . "] " . $subject, $cssClass); + $this->_render_custom_link($renderer, $data, "[#" . $data['id'] . "]" . $subject, $cssClass); + if(!$isClosed){ + $renderer->doc .= ' ' . $status . ' '; + } else { + $renderer->doc .= ' ' . $status . ' '; + } } else { $this->_render_default_link($renderer, $data); }