action labels depend on status

This commit is contained in:
Nicolas Lœuillet 2015-08-18 18:13:30 +02:00
parent c3cb46809b
commit c713273619

View file

@ -265,7 +265,7 @@ class EntryController extends Controller
$this->get('session')->getFlashBag()->add( $this->get('session')->getFlashBag()->add(
'notice', 'notice',
'Entry archived' 'Entry ' . ($entry->isArchived() ? 'archived' : 'unarchived')
); );
return $this->redirect($request->headers->get('referer')); return $this->redirect($request->headers->get('referer'));
@ -290,7 +290,7 @@ class EntryController extends Controller
$this->get('session')->getFlashBag()->add( $this->get('session')->getFlashBag()->add(
'notice', 'notice',
'Entry starred' 'Entry ' . ($entry->isStarred() ? 'starred' : 'unstarred')
); );
return $this->redirect($request->headers->get('referer')); return $this->redirect($request->headers->get('referer'));