mirror of https://github.com/lidarr/Lidarr
Fixed: webcal url now has the apikey embedded to support more third-party webcal clients.
This commit is contained in:
parent
a75ce9ab87
commit
1e538dc7cc
|
@ -15,7 +15,7 @@ define(
|
||||||
|
|
||||||
templateHelpers: {
|
templateHelpers: {
|
||||||
icalHttpUrl : window.location.protocol + '//' + window.location.host + StatusModel.get('urlBase') + '/feed/calendar/NzbDrone.ics?apikey=' + window.NzbDrone.ApiKey,
|
icalHttpUrl : window.location.protocol + '//' + window.location.host + StatusModel.get('urlBase') + '/feed/calendar/NzbDrone.ics?apikey=' + window.NzbDrone.ApiKey,
|
||||||
icalWebCalUrl : 'webcal://' + window.location.host + StatusModel.get('urlBase') + '/feed/calendar/NzbDrone.ics'
|
icalWebCalUrl : 'webcal://' + window.location.host + StatusModel.get('urlBase') + '/feed/calendar/NzbDrone.ics?apikey=' + window.NzbDrone.ApiKey
|
||||||
},
|
},
|
||||||
|
|
||||||
onShow: function () {
|
onShow: function () {
|
||||||
|
|
|
@ -5,27 +5,19 @@
|
||||||
<h3>NzbDrone Calendar feed</h3>
|
<h3>NzbDrone Calendar feed</h3>
|
||||||
</div>
|
</div>
|
||||||
<div class="modal-body edit-series-modal">
|
<div class="modal-body edit-series-modal">
|
||||||
<div class="row">
|
<div class="form-horizontal">
|
||||||
<div class="col-md-12">
|
<div class="form-group">
|
||||||
<div class="form-horizontal">
|
<label class="col-sm-2 control-label">iCal feed</label>
|
||||||
|
<div class="col-sm-1 col-sm-push-9 help-inline">
|
||||||
<div class="form-group">
|
<i class="icon-nd-form-info" title="Copy this url into your clients subscription form or use the subscribe button if your browser support webcal" />
|
||||||
<label class="col-sm-3 control-label">iCal feed</label>
|
</div>
|
||||||
|
<div class="col-sm-9 col-sm-pull-1">
|
||||||
<div class="col-sm-1 col-sm-push-8 help-inline">
|
<div class="input-group ical-url">
|
||||||
<i class="icon-nd-form-info" title="Copy this url into your clients subscription form or use the subscribe button if your browser support webcal"/>
|
<input type="text" class="form-control x-ical-url" value="{{icalHttpUrl}}" readonly="readonly" />
|
||||||
|
<div class="input-group-btn">
|
||||||
|
<button class="btn btn-icon-only x-ical-copy" title="Copy to clipboard"><i class="icon-copy"></i></button>
|
||||||
|
<button class="btn btn-icon-only no-router" title="Subscribe" href="{{icalWebCalUrl}}" target="_blank" data-container=".modal-body"><i class="icon-calendar-empty"></i></button>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="col-sm-8 col-sm-pull-1">
|
|
||||||
<div class="input-group ical-url">
|
|
||||||
<input type="text" class="form-control x-ical-url" value="{{icalHttpUrl}}" readonly="readonly" />
|
|
||||||
<div class="input-group-btn">
|
|
||||||
<button class="btn btn-icon-only x-ical-copy" title="Copy to clipboard"><i class="icon-copy"></i></button>
|
|
||||||
<button class="btn btn-icon-only no-router"><a title="Subscribe" href="{{icalWebCalUrl}}" target="_blank"><i class="icon-calendar-empty"></i></a></button>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -177,7 +177,7 @@
|
||||||
|
|
||||||
.ical-url {
|
.ical-url {
|
||||||
|
|
||||||
input {
|
input, input[readonly] {
|
||||||
cursor : text !important;
|
cursor : text;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue