🔥 PGMR: Remove "new installs"
It doesn't really add that much information and the UI is already crowded.
This commit is contained in:
1 parent
6d8a131c6d
commit
6396d5ede0
2 files changed
-11
No files matched your search
@@ -76,15 +76,6 @@ $(function() {
|
||||
if (countA < countB) return 1;
|
||||
return 0;
|
||||
},
|
||||
"hotness": function (a, b) {
|
||||
// sorts descending
|
||||
var countA = (a.stats && a.stats.install_events_week) ? a.stats.install_events_week : 0;
|
||||
var countB = (b.stats && b.stats.install_events_week) ? b.stats.install_events_week : 0;
|
||||
|
||||
if (countA > countB) return -1;
|
||||
if (countA < countB) return 1;
|
||||
return 0;
|
||||
},
|
||||
"release_date": function (a, b) {
|
||||
// sorts descending
|
||||
var valA = (a.github && a.github.latest_release) ? a.github.latest_release.date.toLocaleLowerCase() : "";
|
||||
|
||||
@@ -227,7 +227,6 @@
|
||||
<li><a href="javascript:void(0)" data-bind="click: function() { repositoryplugins.changeSorting('release_date'); }"><i class="fa fa-check" data-bind="style: {visibility: repositoryplugins.currentSorting() == 'release_date' ? 'visible' : 'hidden'}"></i> {{ _('Sort by last release date') }} ({{ _('descending') }})</a></li>
|
||||
<li><a href="javascript:void(0)" data-bind="click: function() { repositoryplugins.changeSorting('push_date'); }"><i class="fa fa-check" data-bind="style: {visibility: repositoryplugins.currentSorting() == 'push_date' ? 'visible' : 'hidden'}"></i> {{ _('Sort by last push date') }} ({{ _('descending') }})</a></li>
|
||||
<li><a href="javascript:void(0)" data-bind="click: function() { repositoryplugins.changeSorting('popularity'); }"><i class="fa fa-check" data-bind="style: {visibility: repositoryplugins.currentSorting() == 'popularity' ? 'visible' : 'hidden'}"></i> {{ _('Sort by active instance count') }} ({{ _('descending') }})</a></li>
|
||||
<li><a href="javascript:void(0)" data-bind="click: function() { repositoryplugins.changeSorting('hotness'); }"><i class="fa fa-check" data-bind="style: {visibility: repositoryplugins.currentSorting() == 'hotness' ? 'visible' : 'hidden'}"></i> {{ _('Sort by recent new installations count') }} ({{ _('descending') }})</a></li>
|
||||
<li><a href="javascript:void(0)" data-bind="click: function() { repositoryplugins.changeSorting('stars'); }"><i class="fa fa-check" data-bind="style: {visibility: repositoryplugins.currentSorting() == 'stars' ? 'visible' : 'hidden'}"></i> {{ _('Sort by Github stars') }} ({{ _('descending') }})</a></li>
|
||||
<li class="divider"></li>
|
||||
<li><a href="javascript:void(0)" data-bind="click: function() { repositoryplugins.toggleFilter('filter_installed'); }"><i class="fa fa-check" data-bind="style: {visibility: _.contains(repositoryplugins.currentFilters(), 'filter_installed') ? 'visible' : 'hidden'}"></i> {{ _('Only show uninstalled plugins') }}</a></li>
|
||||
@@ -265,7 +264,6 @@
|
||||
<small class="prop" data-bind="visible: license" title="{{ _('License')|edq }}"><i class="fa fa-gavel"></i> <span data-bind="text: license"></span></small>
|
||||
<small class="prop" data-bind="visible: published" title="{{ _('Publication date')|edq }}"><i class="fa fa-calendar"></i> <span data-bind="text: published.substring(0, 10)"></span></small>
|
||||
<small class="prop" data-bind="visible: $data.stats !== undefined" title="{{ _('Active instances past month')|edq }}"><i class="fa fa-server"></i> <span data-bind="text: $data.stats !== undefined ? formatNumberK($data.stats.instances_month) : 0"></span></small>
|
||||
<small class="prop" data-bind="visible: $data.stats !== undefined" title="{{ _('New installations past week')|edq }}"><i class="fa fa-download"></i> <span data-bind="text: $data.stats !== undefined ? formatNumberK($data.stats.install_events_week) : 0"></span></small>
|
||||
<small class="prop" data-bind="visible: $data.github !== undefined && $data.github.stars !== undefined" title="{{ _('Github stars')|edq }}"><i class="fa fa-star"></i> <span data-bind="text: ($data.github !== undefined && $data.github.stars !== undefined) ? formatNumberK($data.github.stars) : 0"></span></small>
|
||||
<small class="prop" data-bind="visible: $data.github !== undefined && $data.github.last_push !== undefined" title="{{ _('Last push to main branch')|edq }}"><i class="fa fa-refresh"></i> <span data-bind="text: ($data.github !== undefined && $data.github.last_push !== undefined) ? $data.github.last_push.substring(0, 10) : ''"></span></small>
|
||||
<small class="prop" data-bind="visible: $data.github !== undefined && $data.github.latest_release != undefined" title="{{ _('Latest release & date')|edq }}"><i class="fa fa-tag"></i> <span data-bind="text: $data.github !== undefined && $data.github.latest_release !== undefined ? $data.github.latest_release.tag : ''"></span> (<span data-bind="text: $data.github !== undefined && $data.github.latest_release !== undefined ? $data.github.latest_release.date.substring(0, 10) : ''"></span>)</small>
|
||||
|
||||
Reference in new issue
Block a user