| 1 | <div id="icalExportPopup" style="display:none" class="icalExportPopup"> |
|---|
| 2 | |
|---|
| 3 | <div id="downloadICS" class="iCalExportSection"> |
|---|
| 4 | <a href='${ urlHandlers.UHConferenceToiCal.getURL(self_._rh._conf, detailLevel = "top") }'> |
|---|
| 5 | <img src="${icsIconURL}" border="0" style="vertical-align: middle"> |
|---|
| 6 | ${_("Download event ICS file")} |
|---|
| 7 | </a> |
|---|
| 8 | </div> |
|---|
| 9 | |
|---|
| 10 | <div id="downloadTimetableICS" class="iCalExportSection"> |
|---|
| 11 | <a href='${ urlHandlers.UHConferenceToiCal.getURL(self_._rh._conf, detailLevel = "contributions") }'> |
|---|
| 12 | <img src="${icsIconURL}" border="0" style="vertical-align: middle"> |
|---|
| 13 | ${_("Download timetable ICS file")} |
|---|
| 14 | </a> |
|---|
| 15 | </div> |
|---|
| 16 | |
|---|
| 17 | <div id="iCalSeparator" class="icalSeparator"></div> |
|---|
| 18 | |
|---|
| 19 | <%include file="ICalExportCommon.tpl"/> |
|---|
| 20 | <div style="display:none"> |
|---|
| 21 | <div id="extraInformation" class="iCalExportSection"> |
|---|
| 22 | <div class="note">Please use <strong>CTRL + C</strong> to copy this URL</div> |
|---|
| 23 | <input type="checkbox" id="detailExport"> ${("Detailed timetable")} |
|---|
| 24 | </div> |
|---|
| 25 | </div> |
|---|
| 26 | |
|---|
| 27 | |
|---|
| 28 | |
|---|
| 29 | </div> |
|---|
| 30 | <script type="text/javascript"> |
|---|
| 31 | var setURLs = function(urls){ |
|---|
| 32 | if($('#detailExport')[0].checked){ |
|---|
| 33 | $('#publicLink').attr('value', urls["publicRequestAllURL"]); |
|---|
| 34 | $('#publicLink').attr('title', urls["publicRequestAllURL"]); |
|---|
| 35 | $('#authLink').attr('value', urls["authRequestAllURL"]); |
|---|
| 36 | $('#authLink').attr('title', urls["authRequestAllURL"]); |
|---|
| 37 | }else{ |
|---|
| 38 | $('#publicLink').attr('value', urls["publicRequestTopURL"]); |
|---|
| 39 | $('#publicLink').attr('title', urls["publicRequestTopURL"]); |
|---|
| 40 | $('#authLink').attr('value', urls["authRequestTopURL"]); |
|---|
| 41 | $('#authLink').attr('title', urls["authRequestTopURL"]); |
|---|
| 42 | } |
|---|
| 43 | } |
|---|
| 44 | |
|---|
| 45 | var exportIcal = new ExportIcalInterface(${apiMode}, ${persistentUserEnabled | n,j}, ${persistentAllowed | n,j}, ${apiActive | n,j}, ${userLogged | n,j}, setURLs, 'event.api.getExportURLs', {confId:"${self_._conf.getId()}"}, ${requestURLs | n,j}); |
|---|
| 46 | |
|---|
| 47 | $('#detailExport').click(function(e) { |
|---|
| 48 | setURLs(exportIcal.getRequestURLs()); |
|---|
| 49 | }); |
|---|
| 50 | |
|---|
| 51 | </script> |
|---|
| 52 | |
|---|