no longer show user language in badge

This commit is contained in:
Thibault Duplessis 2017-06-01 18:47:02 +02:00
parent 92af72dc13
commit e2ecbdb73a
2 changed files with 2 additions and 7 deletions

View file

@ -3,16 +3,11 @@
<div> <div>
@u.profileOrDefault.countryInfo.map { @u.profileOrDefault.countryInfo.map {
case (code, name) => { case (code, name) => {
<span class="countrylang"> <span class="country">
<img class="flag" src="@staticUrl(s"images/flags/$code.png")" alt="@name" title="@name" /> <img class="flag" src="@staticUrl(s"images/flags/$code.png")" alt="@name" title="@name" />
@if(u.username.size < 15) { @name } @if(u.username.size < 15) { @name }
</span> </span>
} }
}.getOrElse {
@u.lang.map(shortLangName).map { name =>
<span class="countrylang" data-icon="c">&nbsp;@name</span>
}
}
@userLink(u, withPowerTip = false) @userLink(u, withPowerTip = false)
</div> </div>
@if(u.engine && ctx.me.fold(true)(u !=)) { @if(u.engine && ctx.me.fold(true)(u !=)) {

View file

@ -281,7 +281,7 @@ body.dark .ddloader {
#powerTip a.mini_board { #powerTip a.mini_board {
border-width: 0 0 1px 0; border-width: 0 0 1px 0;
} }
#powerTip .countrylang { #powerTip .country {
float: right; float: right;
font-size: 0.9em; font-size: 0.9em;
padding-right: 3px; padding-right: 3px;