Changeset 3f852f in indico
- Timestamp:
- 06/15/12 13:59:50 (11 months ago)
- Branches:
- master, hello-world-walkthrough, ipv6, v0.98-series, v0.98.2, v0.98.3, v0.99, 051b2622c51afb171a1dedb46a0df4fbb0cbd02e, d9941f8582b36b24821a11ea5ba16fda6a457fb1
- Children:
- 06b456
- Parents:
- 83d955
- git-author:
- Alberto Resco Perez <alberto.resco.perez@…> (06/13/12 15:27:36)
- git-committer:
- Pedro Ferreira <jose.pedro.ferreira@…> (06/15/12 13:59:50)
- Location:
- indico
- Files:
-
- 6 edited
-
MaKaC/plugins/Collaboration/tpls/EventDetailBanner.tpl (modified) (2 diffs)
-
MaKaC/services/implementation/collaboration.py (modified) (1 diff)
-
MaKaC/webinterface/pages/collaboration.py (modified) (2 diffs)
-
MaKaC/webinterface/tpls/BookingDisplay.tpl (modified) (1 diff)
-
MaKaC/webinterface/tpls/events/include/VideoService.tpl (modified) (1 diff)
-
htdocs/js/indico/Collaboration/Collaboration.js (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
indico/MaKaC/plugins/Collaboration/tpls/EventDetailBanner.tpl
rf61ffa r3f852f 61 61 <!-- <span style="margin-left:20px;"></span> --> 62 62 63 % if bookingInfo: 64 <span class="collaborationDisplayMoreInfo">More Info</span> 65 % endif 66 67 % if bookingInfo and launchInfo: 68 <span style="margin-left:3px;margin-right:3px;">|</span> 69 % endif 70 63 71 % if launchInfo: 64 72 <a target="_blank" href="${launchInfo['launchLink']}" class="bookingLaunchLink" data-id="${bookingId}"> … … 69 77 </script> 70 78 % endif 71 72 % if bookingInfo and launchInfo: 79 % if (bookingInfo or launchInfo) and booking.canBeConnected() and self_._rh._getUser() and (conf.canModify(self_._rh._aw) or booking.getOwner()["id"] == self_._rh._getUser().getId()): 73 80 <span style="margin-left:3px;margin-right:3px;">|</span> 81 <script type="text/javascript"> 82 var booking${booking.getId()} = ${jsonEncode(fossilize(booking))}; 83 </script> 84 <a href="#" style="font-size:12px; font-weight: bold" onClick="connectBookingRoom(booking${booking.getId()},'${conf.getId()}')">${_("Connect")} ${booking.getLinkVideoRoomLocation()}</a> 85 <span style="display:inline; vertical-align:middle" id="connectProgress${booking.getId()}"></span> 74 86 % endif 75 87 76 % if bookingInfo:77 <span class="collaborationDisplayMoreInfo">More Info</span>78 % endif79 88 </span> 80 89 -
indico/MaKaC/services/implementation/collaboration.py
r9aa0693 r3f852f 194 194 """ Performs server-side actions when a booking is connected 195 195 """ 196 197 def _checkProtection(self): 198 booking = self._CSBookingManager.getBooking(self._bookingId) 199 if not hasattr(booking, "getOwnerObject") or booking.getOwnerObject() != self.getAW().getUser(): 200 CollaborationBookingModifBase._checkProtection(self) 201 196 202 def _getAnswer(self): 197 203 return fossilize(self._CSBookingManager.connectBooking(self._bookingId), -
indico/MaKaC/webinterface/pages/collaboration.py
r9aa0693 r3f852f 403 403 404 404 def getJSFiles(self): 405 return WPConferenceDefaultDisplayBase.getJSFiles(self) + self._includeJSPackage(' Collaboration')405 return WPConferenceDefaultDisplayBase.getJSFiles(self) + self._includeJSPackage('Display') + self._includeJSPackage('Collaboration') 406 406 407 407 def _defineSectionMenu(self): … … 445 445 vars["ScheduledBookings"] = scheduledBookings 446 446 vars["Timezone"] = self._tz 447 vars["conf"] = self._conf 447 448 448 449 return vars -
indico/MaKaC/webinterface/tpls/BookingDisplay.tpl
r335540 r3f852f 93 93 </script> 94 94 % endif 95 96 % if displayInfo and Booking.canBeConnected() and self_._rh._getUser() and (conf.canModify(self_._rh._aw) or Booking.getOwner()["id"] == self_._rh._getUser().getId()): 97 <span style="margin-left:3px;margin-right:3px;">|</span> 98 <script type="text/javascript"> 99 var booking${Booking.getId()} = ${jsonEncode(fossilize(Booking))}; 100 </script> 101 <a href="#" style="font-size:12px" onClick="connectBookingRoom(booking${Booking.getId()},'${conf.getId()}')">${_("Connect")} ${Booking.getLinkVideoRoomLocation()}</a> 102 <div style="display:inline; vertical-align:middle" id="connectProgress${Booking.getId()}"></div> 103 % endif 104 95 105 </div> 96 106 -
indico/MaKaC/webinterface/tpls/events/include/VideoService.tpl
r842982 r3f852f 10 10 <!--${launchInfo['launchText']}--> 11 11 </a> 12 % if video.canBeConnected() and self_._rh._getUser() and (conf.canModify(self_._rh._aw) or video.getOwner()["id"] == self_._rh._getUser().getId()): 13 <span style="margin-left:3px;margin-right:3px;">|</span> 14 <script type="text/javascript"> 15 var booking${video.getId()} = ${jsonEncode(fossilize(video))}; 16 </script> 17 <a href="#" style="font-size:12px" onClick="connectBookingRoom(booking${video.getId()},'${conf.getId()}')">${_("Connect")} ${video.getLinkVideoRoomLocation()}</a> 18 <span style="display:inline; vertical-align:middle" id="connectProgress${video.getId()}"></span> 19 % endif 20 12 21 </span> 13 22 </span> -
indico/htdocs/js/indico/Collaboration/Collaboration.js
r1ed8d2 r3f852f 1906 1906 }; 1907 1907 1908 var connectBookingRoom = function(booking, confId) { 1909 $E("connectProgress"+booking["id"]).set(progressIndicator(true,true)); 1910 jsonRpc(Indico.Urls.JsonRpcService, "collaboration.connectCSBooking", 1911 { confId: confId, 1912 bookingId: booking.id }, 1913 function(result, error){ 1914 $E("connectProgress"+booking["id"]).set(""); 1915 if (!error) { 1916 if (result.error){ 1917 new WarningPopup($T("Cannot be connected"), result.userMessage).open(); 1918 } 1919 else { 1920 new AlertPopup($T("Success"), $T("The room ") + booking.linkVideoRoomLocation + $T(" has been conected to the Vidyo room.") ).open(); 1921 } 1922 } else { 1923 IndicoUtil.errorReport(error); 1924 } 1925 }); 1926 }; 1927 1908 1928 var drawBookingPopup = function (videoInformation, confId, bookingId, displayModeratorLink) { 1909 1929 var divWrapper = Html.div({className:"videoServiceInlinePopup"});
Note: See TracChangeset
for help on using the changeset viewer.
