fix: [feed:previewEvent] Added `Fetch Event` button on the sidemenu

pull/5445/head
mokaddem 2019-12-03 16:01:12 +01:00
parent bf6a5436dc
commit 3d1b8e9c9a
No known key found for this signature in database
GPG Key ID: 164C473F627A06FA
1 changed files with 9 additions and 0 deletions

View File

@ -1047,6 +1047,15 @@
'url' => '/feeds/previewEvent/' . h($feed['Feed']['id']) . '/' . h($id),
'text' => __('PreviewEvent')
));
echo $this->element('/genericElements/SideMenu/side_menu_post_link', array(
'url' => sprintf(
'/feeds/getEvent/%s/%s',
h($feed['Feed']['id']),
h($event['Event']['uuid'])
),
'text' => __('Fetch This Event'),
'message' => __('Are you sure you want to fetch and save this event on your instance?')
));
}
}
break;