... and confirmation dialog and settings dialog.
github_release fetches release notes link from github. Check configurations
can always set individual release notes links via the new `release_notes`
property. The URL also supports placeholders `{octoprint_version}`,
`{target_version}` and `{target_name}`. A custom release note URL
hence could be configured by a plugin via
def get_update_information(self):
return dict(
myplugin=dict(
[...]
release_notes="https://me.github.io/MyPlugin/my/custom/releasenotes.html#version_{target_version}"
[...]
)
)
and if a new release "1.3.4" was now to be released would be displayed to the user as
https://me.github.io/MyPlugin/my/custom/releasenotes.html#version_1.3.4
The same of course is possible via config.yaml:
plugins:
softwareupdate:
checks:
myplugin:
release_notes: 'https://me.github.io/MyPlugin/my/custom/releasenotes.html#version_{target_version}'
29 lines
1.3 KiB
Django/Jinja
29 lines
1.3 KiB
Django/Jinja
<div id="softwareupdate_confirmation_dialog" class="modal hide fade">
|
|
<div class="modal-header">
|
|
<a href="#" class="close" data-dismiss="modal" aria-hidden="true">×</a>
|
|
<h3>{{ _('Are you sure you want to update now?') }}</h3>
|
|
</div>
|
|
<div class="modal-body">
|
|
<p>
|
|
{{ _('This will update the following components and restart the server:') }}
|
|
</p>
|
|
<ul>
|
|
<!-- ko foreach: availableAndPossible -->
|
|
<li>
|
|
<span class="name" data-bind="text: fullName, attr: {title: fullName}"></span>
|
|
<div class="releaseNotes" data-bind="visible: releaseNotes"><a data-bind="attr: {href: releaseNotes}">{{ _('Release Notes') }}</a></div>
|
|
</li>
|
|
<!-- /ko -->
|
|
</ul>
|
|
<p>
|
|
{{ _('Be sure to read through any linked release notes, especially those for OctoPrint since they might contain important information you need to know <strong>before</strong> upgrading.') }}
|
|
</p>
|
|
<p>
|
|
{{ _('Are you sure you want to proceed?') }}
|
|
</p>
|
|
</div>
|
|
<div class="modal-footer">
|
|
<a href="#" class="btn" data-dismiss="modal" aria-hidden="true">{{ _('Cancel') }}</a>
|
|
<a href="#" class="btn btn-danger" data-bind="click: function() { $root.confirmUpdate(); }">{{ _('Proceed') }}</a>
|
|
</div>
|
|
</div>
|