remove duplicated function
This commit is contained in:
parent
0296e03efd
commit
70bd659b66
|
@ -1,6 +1,6 @@
|
|||
@(c: lila.coach.Coach.WithUser, size: Int)(implicit ctx: Context)
|
||||
@c.coach.picturePath.map { path =>
|
||||
<img width=@size height=@size class="picture" src="@dbImageUrl(path.value)" alt="@c.user.titleName lichess coach" />
|
||||
<img width=@size height=@size class="picture" src="@dbImageUrl(path.value)" alt="@c.user.titleUsername lichess coach" />
|
||||
}.getOrElse {
|
||||
<img width=@size height=@size class="picture" src="@staticUrl("images/coach-nopic.svg")" />
|
||||
}
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
@(pag: Paginator[lila.study.Study.WithChaptersAndLiked], order: lila.study.Order, owner: User)(implicit ctx: Context)
|
||||
|
||||
@listLayout(
|
||||
title = s"Studies created by ${owner.titleName}",
|
||||
title = s"Studies created by ${owner.titleUsername}",
|
||||
active = "owner",
|
||||
order = order,
|
||||
pag = pag,
|
||||
|
|
|
@ -39,8 +39,6 @@ case class User(
|
|||
|
||||
def light = LightUser(id = id, name = username, title = title, isPatron = isPatron)
|
||||
|
||||
def titleName = title.fold(username)(_ + " " + username)
|
||||
|
||||
def realNameOrUsername = profileOrDefault.nonEmptyRealName | username
|
||||
|
||||
def langs = ("en" :: lang.toList).distinct.sorted
|
||||
|
|
Loading…
Reference in a new issue