Make the diff the primary link in thanks

When viewing a thank message, make the link to the diff the primary link.
Visiting the user's user page is almost never the desired action when
viewing a thank notification. The link to the user page is no longer
present as a secondary link, but the notification-thanks-flyout2 and
notification-thanks messages both include a link from the user's name to
their user page.

Bug: 56225
Change-Id: If971385e6d1a47e394d06decf25db2c1b7cc2fb9
This commit is contained in:
Jackmcbarn 2014-01-14 14:00:33 -05:00
parent 1a2fc5c7f1
commit bafe6568e9

View file

@ -130,8 +130,7 @@ class ThanksHooks {
);
$notifications['edit-thank'] = array(
'primary-link' => array( 'message' => 'notification-link-text-respond-to-user', 'destination' => 'agent' ),
'secondary-link' => array( 'message' => 'notification-link-text-view-edit', 'destination' => 'diff' ),
'primary-link' => array( 'message' => 'notification-link-text-view-edit', 'destination' => 'diff' ),
'category' => 'edit-thank',
'group' => 'positive',
'formatter-class' => 'EchoThanksFormatter',