Skip to content

Commit

Permalink
Timeline: display Tags as links to Tag Details page
Browse files Browse the repository at this point in the history
  • Loading branch information
dregad committed Feb 20, 2015
1 parent 827fc64 commit 74209b6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion core/classes/IssueTagTimelineEvent.class.php
Expand Up @@ -53,14 +53,15 @@ public function __construct( $p_timestamp, $p_user_id, $p_issue_id, $p_tag_name,
*/
public function html() {
$t_string = $this->tag ? lang_get( 'timeline_issue_tagged' ) : lang_get( 'timeline_issue_untagged' );
$t_tag_row = tag_get_by_name( $this->tag_name );

$t_html = $this->html_start();
$t_html .= '<div class="action">'
. sprintf(
$t_string,
user_get_name( $this->user_id ),
string_get_bug_view_link( $this->issue_id ),
$this->tag_name
$t_tag_row ? tag_get_link( $t_tag_row ) : $this->tag_name
)
. '</div>';
$t_html .= $this->html_end();
Expand Down
2 changes: 1 addition & 1 deletion css/default.css
Expand Up @@ -772,7 +772,7 @@ div.timeline .date-range { font-size: small; }
/* timeline entry styles */
div.timeline div.entry { padding-top: 15px; }
div.timeline * div { overflow: hidden; }
div.timeline * span.tag_name { background-color: green; color: white; border-radius: 5px; padding-left: 5px; padding-right: 5px; }
div.timeline * span.tag_name a { background-color: green; color: white; text-decoration: none; border-radius: 5px; padding-left: 5px; padding-right: 5px; }
div.timeline * span.username { font-weight:bold; }
div.timeline p { margin-bottom: 3px; }

Expand Down

0 comments on commit 74209b6

Please sign in to comment.