mirror of
git://git.yoctoproject.org/layerindex-web.git
synced 2025-07-19 20:59:01 +02:00
Show the 'Upstream version' column only when relevant
Currently the recipes table always shows the 'Upstream version' column. However, for recipes up-to-date, this column is irrelevant, since for such recipes 'version' always equals 'upstream version'. Since the vast majority of the recipes are up-to-date, when you are showing all the recipes the 'upstream version' column is also pretty useless. The column is only really relevant when you are looking at recipes with status 'not updated' or 'can't be updated'. I would have thought there would be nothing to show in the 'Upstream version' column for recipes with status 'Unknown', but it turns out some of those do have an upstream version value, that I thought might be useful to the maintainer somehow. So, this patch hides the 'Upstream version' column whenever you are looking at all the recipes or up-to-date recipes; and shows it when you select any of the other recipe statuses Signed-off-by: Belen Barros Pena <belen.barros.pena@intel.com>
This commit is contained in:
parent
baf1798be1
commit
7259ed2393
|
@ -234,6 +234,12 @@ $(document).ready(function() {
|
|||
$('.summary_column').show()
|
||||
}
|
||||
|
||||
if (upstreamStatus == 'Up-to-date' || upstreamStatus == 'All') {
|
||||
$('.upstream_version_column').hide();
|
||||
} else {
|
||||
$('.upstream_version_column').show();
|
||||
}
|
||||
|
||||
if (upstreamStatus == 'All') {
|
||||
upstreamStatusFilter = ''
|
||||
} else {
|
||||
|
|
Loading…
Reference in New Issue
Block a user