mirror of
https://github.com/YunoHost/yunohost-admin.git
synced 2024-09-03 20:06:15 +02:00
[fix] Line break in package changelog
This commit is contained in:
parent
abcd9afafa
commit
b1857d5f8e
2 changed files with 6 additions and 2 deletions
|
@ -952,6 +952,10 @@ app = Sammy('#main', function (sam) {
|
|||
// System update & upgrade
|
||||
sam.get('#/tools/update', function (c) {
|
||||
c.api('/update', function(data) {
|
||||
packagesLength = data.packages.length;
|
||||
for(var i = 0; i < packagesLength; i++) {
|
||||
data.packages[i].changelog = data.packages[i].changelog.replace(/\n/g, '<br />');
|
||||
}
|
||||
c.view('tools/tools_update', data);
|
||||
}, 'PUT');
|
||||
});
|
||||
|
|
|
@ -16,12 +16,12 @@
|
|||
{{#packages}}
|
||||
<div class="list-group-item">
|
||||
<h3 class="list-group-item-heading">{{name}} <small>{{fullname}}</small></h3>
|
||||
<p class="list-group-item-text">{{changelog}}</p>
|
||||
<p class="list-group-item-text">{{{changelog}}}</p>
|
||||
</div>
|
||||
{{/packages}}
|
||||
|
||||
<div class="br"></div>
|
||||
<a href="#/tools/upgrade/packages" class="btn btn-default">Upgrade packages</a>
|
||||
<a href="#/tools/upgrade/packages" class="btn btn-success">Upgrade packages</a>
|
||||
{{else}}
|
||||
There is no packages to upgrade.
|
||||
{{/if}}
|
||||
|
|
Loading…
Reference in a new issue