forked from lichess-org/lila
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* master: fix game export analysed flag inc assets version New Crowdin translations (lichess-org#4321) show streamer notes - closes lichess-org#4257 show streamer notes - closes lichess-org#4257 improve 429 error message - closes lichess-org#4265 upgrade scalachess to 8.6.10 - closes lichess-org#4332 upgrade scalachess update dictionary
- Loading branch information
Showing
10 changed files
with
34 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
@(s: lila.streamer.Streamer.WithUserAndStream, form: Form[_], modLog: Option[List[lila.mod.Modlog]])(implicit ctx: Context) | ||
@(s: lila.streamer.Streamer.WithUserAndStream, form: Form[_], modData: Option[(List[lila.mod.Modlog], List[lila.user.Note])])(implicit ctx: Context) | ||
|
||
@import play.api.data.Field | ||
|
||
|
@@ -71,7 +71,8 @@ <h1>@s.streamer.name</h1> | |
<strong>If your stream is in another language than English</strong>, include the correct language tag (<a class="blue" href="https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes">2-letter ISO 639-1 code</a> enclosed in square brackets) at the start of your stream title. As examples, include "[RU]" for Russian, "[TR]" for Turkish, "[FR]" for French, etc. If your stream is in English, there is no need to include a language tag. | ||
</div> | ||
} | ||
@modLog.map { log => | ||
@modData.map { | ||
case (log, notes) => { | ||
<div class="mod_log status"> | ||
<strong class="text" data-icon="!">Moderation history@if(log.isEmpty){: nothing to show.}</strong> | ||
@if(log.nonEmpty) { | ||
|
@@ -81,8 +82,21 @@ <h1>@s.streamer.name</h1> | |
} | ||
</ul> | ||
} | ||
<br /> | ||
<strong class="text" data-icon="!">Moderator notes@if(notes.isEmpty){: nothing to show.}</strong> | ||
@if(notes.nonEmpty) { | ||
<ul> | ||
@notes.map { note => | ||
<li> | ||
<p class="meta">@userIdLink(note.from.some) @momentFromNow(note.date)</p> | ||
<p class="text">@richText(note.text)</p> | ||
</li> | ||
} | ||
</ul> | ||
} | ||
</div> | ||
} | ||
} | ||
<form class="content_box_content material form" action="@routes.Streamer.edit@if(!ctx.is(s.user)){[email protected]}" method="POST"> | ||
@errMsgMaterial(form.errors) | ||
@if(isGranted(_.Streamers)) { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,7 +11,7 @@ net { | |
ip = "5.196.91.160" | ||
asset { | ||
domain = "lichess-assets.local" | ||
version = 2055 | ||
version = 2056 | ||
} | ||
email = "[email protected]" | ||
crawlable = false | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters