Skip to content

Commit

Permalink
Fix bug 1500854: Fix display of grouped Machinery results (#1107)
Browse files Browse the repository at this point in the history
If MT suggestion gets grouped with suggestions from other Machinery
sources, and is returned first, it:
- causes the group to lack "percent match" at the beginning
- lacks a dot separating it from the other services
  • Loading branch information
mathjazz committed Oct 23, 2018
1 parent dc18fd5 commit 005b9d0
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pontoon/base/static/css/style.css
Expand Up @@ -1150,9 +1150,9 @@ body > form,
padding-right: 3px;
}

#helpers > section.machinery ul li > header .sources li[data-source='Google Translate']:before,
#helpers > section.machinery ul li > header .sources li[data-source='Microsoft Translator']:before,
#helpers > section.machinery ul li > header .sources li[data-source='Caighdean']:before {
#helpers > section.machinery ul li > header .sources li[data-source='Google Translate']:only-child:before,
#helpers > section.machinery ul li > header .sources li[data-source='Microsoft Translator']:only-child:before,
#helpers > section.machinery ul li > header .sources li[data-source='Caighdean']:only-child:before {
content: "";
padding-right: 0;
}
Expand Down
4 changes: 4 additions & 0 deletions pontoon/base/static/js/main.js
Expand Up @@ -364,6 +364,10 @@ var Pontoon = (function (my) {
'</a></li>'
);

if (data.quality && sources.find('.stress').length === 0) {
sources.prepend('<span class="stress">' + data.quality + '</span>');
}

} else {
if (data.source !== 'Caighdean') {
var originalTextForDiff = originalText;
Expand Down

0 comments on commit 005b9d0

Please sign in to comment.