Skip to content

Commit

Permalink
Add more style in version comparision
Browse files Browse the repository at this point in the history
  • Loading branch information
ShoyuVanilla committed Jun 15, 2020
1 parent c761d19 commit b2759f3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
1 change: 1 addition & 0 deletions module/scripts/modules2ko.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ class Modules2ko {
moduleVersion: module.data.version,
translationVersion: info.version,
isOutdated: isNewerVersion(module.data.version, info.version),
isPredated: isNewerVersion(info.version, module.data.version),
active: active
});
}
Expand Down
6 changes: 4 additions & 2 deletions module/templates/modules2ko-config.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,11 @@
<h3 class="package-title">{{this.title}}</h3>
<div class="package-tags">
{{#if this.isOutdated }}
<span class="tag unavailable">{{localize "modules2ko.module-version"}} {{ this.moduleVersion }} | {{localize "modules2ko.translated-version"}} {{ this.translationVersion }}</span>
<span class="tag unavailable">{{localize "modules2ko.module-version"}} {{ this.moduleVersion }} &gt; {{localize "modules2ko.translated-version"}} {{ this.translationVersion }}</span>
{{else if this.isPredated}}
<span class="tag unknown">{{localize "modules2ko.module-version"}} {{ this.moduleVersion }} &lt; {{localize "modules2ko.translated-version"}} {{ this.translationVersion }}</span>
{{else}}
<span class="tag version">{{localize "modules2ko.module-version"}} {{ this.moduleVersion }} | {{localize "modules2ko.translated-version"}} {{ this.translationVersion }}</span>
<span class="tag version">{{localize "modules2ko.module-version"}} {{ this.moduleVersion }} &equals; {{localize "modules2ko.translated-version"}} {{ this.translationVersion }}</span>
{{/if}}
</div>
</div>
Expand Down

0 comments on commit b2759f3

Please sign in to comment.