Generate links for Users JS App in the controller

This commit is contained in:
Dmitriy Simushev 2014-09-04 12:12:30 +00:00
parent f8bd639f39
commit 6ceecb42aa
2 changed files with 8 additions and 4 deletions

View File

@ -55,6 +55,10 @@ class UsersController extends AbstractController
$page['agentId'] = $operator['operatorid'];
$page['geoLink'] = Settings::get('geolink');
$page['geoWindowParams'] = Settings::get('geolinkparams');
$page['trackedLink'] = $request->getBaseUrl() . '/operator/history/user-track';
$page['banLink'] = $request->getBaseUrl() . '/operator/ban';
$page['inviteLink'] = $request->getBaseUrl() . '/operator/invite';
$page['agentLink'] = $request->getBaseUrl() . '/operator/chat';
// Load dialogs style options
$chat_style = new ChatStyle(ChatStyle::getCurrentStyle());

View File

@ -98,11 +98,11 @@
threadTag: "{{[coreStyles.threadTag]}}",
visitorTag: "{{[coreStyles.visitorTag]}}",
agentLink: "{{mibewRoot}}/operator/chat",
agentLink: "{{agentLink}}",
geoLink: "{{geoLink}}",
trackedLink: "{{mibewRoot}}/operator/history/user-track",
banLink: "{{mibewRoot}}/operator/ban",
inviteLink: "{{mibewRoot}}/operator/invite",
trackedLink: "{{trackedLink}}",
banLink: "{{banLink}}",
inviteLink: "{{inviteLink}}",
chatWindowParams: "{{[chatStyles.chatWindowParams]}}",
geoWindowParams: "{{geoWindowParams}}",