Provide a description of the update channels inline

Signed-off-by: Morris Jobke <hey@morrisjobke.de>
This commit is contained in:
Morris Jobke 2018-03-14 10:21:09 +01:00
parent 7f00de841b
commit b01b3454e6
No known key found for this signature in database
GPG Key ID: FE03C3A163FEDE68
3 changed files with 28 additions and 0 deletions

1
.gitignore vendored
View File

@ -32,6 +32,7 @@
!/apps/testing !/apps/testing
!/apps/admin_audit !/apps/admin_audit
!/apps/updatenotification !/apps/updatenotification
/apps/updatenotification/build
/apps/updatenotification/js/merged.js /apps/updatenotification/js/merged.js
/apps/updatenotification/js/merged.js.map /apps/updatenotification/js/merged.js.map
/apps/updatenotification/js/*.hot-update.* /apps/updatenotification/js/*.hot-update.*

View File

@ -31,3 +31,12 @@
#updatenotification .icon-triangle-n { #updatenotification .icon-triangle-n {
opacity: 0.5; opacity: 0.5;
} }
#updatenotification .channel-description span {
color: #aaa;
}
#updatenotification .channel-description span strong {
color: #555;
font-weight: normal;
}

View File

@ -55,6 +55,12 @@
<em>{{ t('updatenotification', 'Note that after a new release it can take some time before it shows up here. We roll out new versions spread out over time to our users and sometimes skip a version when issues are found.') }}</em> <em>{{ t('updatenotification', 'Note that after a new release it can take some time before it shows up here. We roll out new versions spread out over time to our users and sometimes skip a version when issues are found.') }}</em>
</p> </p>
<p class="channel-description">
<span v-html="productionInfoString"></span><br>
<span v-html="stableInfoString"></span><br>
<span v-html="betaInfoString"></span>
</p>
<p id="oca_updatenotification_groups"> <p id="oca_updatenotification_groups">
{{ t('updatenotification', 'Notify members of the following groups about available updates:') }} {{ t('updatenotification', 'Notify members of the following groups about available updates:') }}
<v-select multiple :value="notifyGroups" :options="availableGroups"></v-select><br /> <v-select multiple :value="notifyGroups" :options="availableGroups"></v-select><br />
@ -174,6 +180,18 @@
this.missingAppUpdates.length, { this.missingAppUpdates.length, {
version: this.newVersionString version: this.newVersionString
}); });
},
productionInfoString: function() {
return t('updatenotification', '<strong>production</strong> will always provide the latest patch level, but not update to the next major release immediately. That update usually happens with the second minor release (x.0.2).');
},
stableInfoString: function() {
return t('updatenotification', '<strong>stable</strong> is the most recent stable version. It is suited for production use and will always update to the latest major version.');
},
betaInfoString: function() {
return t('updatenotification', '<strong>beta</strong> is a pre-release version only for testing new features, not for production environments.');
} }
}, },