Skip to content

Commit

Permalink
Added changelog to update view
Browse files Browse the repository at this point in the history
  • Loading branch information
saschadube committed Jan 28, 2016
1 parent 9fe7efc commit 0e4107b
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 4 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
- Filter cache for widget and site settings
- Remember last finder position and view setting
- Pagination cache and pagination links
- Added changelog to update view

### Changed
- Hide Trash menu from Site node picker
Expand Down
14 changes: 13 additions & 1 deletion app/installer/app/views/update.js
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,19 @@ module.exports = {
};

renderer.listitem = function (text) {
return '<li><span class="uk-badge">' + section + '</span> ' + text + '</li>';
if (section === 'Added'){
return '<li><span class="uk-badge pk-badge-justify uk-badge-success uk-margin-right">' + section + '</span> ' + text + '</li>';
} if (section === 'Deprecated') {
return '<li><span class="uk-badge pk-badge-justify uk-badge-warning uk-margin-right">' + section + '</span> ' + text + '</li>';
} if (section === 'Removed') {
return '<li><span class="uk-badge pk-badge-justify uk-badge-warning uk-margin-right">' + section + '</span> ' + text + '</li>';
} if (section === 'Fixed') {
return '<li><span class="uk-badge pk-badge-justify uk-badge-danger uk-margin-right">' + section + '</span> ' + text + '</li>';
} if (section === 'Security') {
return '<li><span class="uk-badge pk-badge-justify uk-badge-danger uk-margin-right">' + section + '</span> ' + text + '</li>';
} else {
return '<li><span class="uk-badge pk-badge-justify uk-margin-right">' + section + '</span> ' + text + '</li>';
}
};

renderer.list = function (text) {
Expand Down
6 changes: 3 additions & 3 deletions app/installer/views/update.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,10 @@
</p>

<h1 v-show="changelog.length">{{ 'Changelog' | trans }}</h1>
<div v-for="release in releases" v-if="release.version | showChangelog">
<div class="uk-margin-large" v-for="release in releases" v-if="release.version | showChangelog">

<h2>{{ release.version }}</h2>
<ul class="uk-list uk-list-line" v-html="release.changelog | changelog"></ul>
<h2>{{ release.version }} <small class="uk-text-muted">/ 9 days ago</small></h2>
<ul class="uk-list uk-list-space" v-html="release.changelog | changelog"></ul>

</div>

Expand Down
8 changes: 8 additions & 0 deletions app/system/assets/less/pagekit.less
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,14 @@
border-left: 1px solid @global-border;
}

/* Modifier: Badge
========================================================================== */

.pk-badge-justify {
box-sizing: border-box;
width: 100px;
}


/* SVG Icons
========================================================================== */
Expand Down

0 comments on commit 0e4107b

Please sign in to comment.