Skip to content

Commit

Permalink
Merge branch 'dev'
Browse files Browse the repository at this point in the history
  • Loading branch information
algorys committed Sep 29, 2015
2 parents 348f7b6 + c41bddb commit 36b1cc8
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 2 deletions.
Binary file added images/closed.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/open.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
14 changes: 13 additions & 1 deletion style.css
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
7 changes: 6 additions & 1 deletion syntax.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 .= ' <span class="status">' . $status . '</span> <img src="lib/plugins/redissue/images/open.png"/>';
} else {
$renderer->doc .= ' <span class="status">' . $status . '</span> <img src="lib/plugins/redissue/images/closed.png" />';
}
} else {
$this->_render_default_link($renderer, $data);
}
Expand Down

0 comments on commit 36b1cc8

Please sign in to comment.