Changeset 8176
- Timestamp:
- 02/02/2019 09:51:16 AM (6 years ago)
- Location:
- sites/trunk/common/includes/slack/trac
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/common/includes/slack/trac/new-ticket.php
r1121 r8176 23 23 } 24 24 25 $attachment['pretext'] = preg_replace( '/: /', ": \n", $attachment['text'], 1);26 $attachment['mrkdwn_in'][] = 'pretext'; 27 $attachment['text'] = Trac::format_for_slack( $this->description );25 $attachment['pretext'] = sprintf( 'New %s opened by %s', self::get_type( $this->type ), $this->reporter ); 26 27 $attachment['text'] = Trac::format_for_slack( $this->description ); 28 28 $attachment['color'] = $this->trac->get_color(); 29 29 30 return $attachment; 30 31 } … … 56 57 57 58 return $attachments; 58 } 59 } 59 60 } -
sites/trunk/common/includes/slack/trac/ticket.php
r8160 r8176 38 38 return false; 39 39 } 40 41 unset( $attachment['text'] ); // Moved to title and title_link. 42 43 $attachment['title'] = sprintf( '#%s: %s', $this->id, htmlspecialchars( $this->summary, ENT_NOQUOTES ) ); 44 $attachment['title_link'] = $this->get_url(); 40 45 41 46 $attachment['fields'] = self::get_ticket_fields( $this->data );
Note: See TracChangeset
for help on using the changeset viewer.