Skip to content

Commit

Permalink
* [Mail/Profiles/Importance] Added the importance property to ticket …
Browse files Browse the repository at this point in the history
…profiles.
  • Loading branch information
jstanden committed May 28, 2015
1 parent 294c2de commit e91f351
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions features/cerberusweb.core/api/uri/profiles/ticket.php
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,7 @@ function render() {
'mask' => null,
'bucket' => null,
'org' => null,
'importance' => null,
'created' => array(
'label' => ucfirst($translate->_('common.created')),
'type' => Model_CustomField::TYPE_DATE,
Expand Down
5 changes: 5 additions & 0 deletions features/cerberusweb.core/templates/profiles/ticket.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,11 @@
{else}
{'status.open'|devblocks_translate}
{/if}
{elseif $k == 'importance'}
<b>{'common.importance'|devblocks_translate|capitalize}:</b>
<div style="display:inline-block;margin-left:5px;width:40px;height:8px;background-color:rgb(220,220,220);border-radius:8px;">
<div style="position:relative;margin-left:-5px;top:-1px;left:{$ticket->importance}%;width:10px;height:10px;border-radius:10px;background-color:{if $ticket->importance < 50}rgb(0,200,0);{elseif $ticket->importance > 50}rgb(230,70,70);{else}rgb(175,175,175);{/if}"></div>
</div>
{elseif $k == 'org'}
{$ticket_org = $ticket->getOrg()}
<b>{'contact_org.name'|devblocks_translate|capitalize}:</b>
Expand Down

0 comments on commit e91f351

Please sign in to comment.