Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #12159 from PennyDreadfulMTG/lock-match-logs-for-n…
…on-admins Hide match logs for 24 hours from non-admins
- Loading branch information
Showing
2 changed files
with
36 additions
and
27 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,33 @@ | ||
<div class="banner"> | ||
<div class="title"> | ||
<h1>{{{players_string_safe}}} ({{id}})</h1> | ||
<div class="subtitle">{{format_name}}: "{{comment}}"</div> | ||
<div class="subtitle">{{display_date}}</div> | ||
{{#hidden}} | ||
<p>The match log will be available one day after the match.</p> | ||
{{/hidden}} | ||
{{^hidden}} | ||
<div class="banner"> | ||
<div class="title"> | ||
<h1>{{{players_string_safe}}} ({{id}})</h1> | ||
<div class="subtitle">{{format_name}}: "{{comment}}"</div> | ||
<div class="subtitle">{{display_date}}</div> | ||
</div> | ||
<ul class="buttons"> | ||
<li><a title="" href="/export/{{id}}">Download</a></li> | ||
{{#has_unexpected_third_game}} | ||
<li><a title="Match has an unexpected game 3" href="#">Switcheroo</a></li> | ||
{{/has_unexpected_third_game}} | ||
{{#is_tournament}} | ||
<li><a title="" href="#">Tournament Match</a></li> | ||
{{/is_tournament}} | ||
</ul> | ||
</div> | ||
<ul class="buttons"> | ||
<li><a title="" href="/export/{{id}}">Download</a></li> | ||
{{#has_unexpected_third_game}} | ||
<li><a title="Match has an unexpected game 3" href="#">Switcheroo</a></li> | ||
{{/has_unexpected_third_game}} | ||
{{#is_tournament}} | ||
<li><a title="" href="#">Tournament Match</a></li> | ||
{{/is_tournament}} | ||
</ul> | ||
</div> | ||
{{#no_games}} | ||
PDBot was interested by this match, but felt no need to join it. | ||
{{/no_games}} | ||
{{#game_one}} | ||
{{#no_games}} | ||
PDBot was interested by this match, but felt no need to join it. | ||
{{/no_games}} | ||
{{#game_one}} | ||
{{> game_view}} | ||
{{/game_one}} | ||
{{#game_two}} | ||
{{> game_view}} | ||
{{/game_two}} | ||
{{#game_three}} | ||
{{/game_three}} | ||
{{> game_view}} | ||
{{/game_one}} | ||
{{#game_two}} | ||
{{> game_view}} | ||
{{/game_two}} | ||
{{#game_three}} | ||
{{> game_view}} | ||
{{/game_three}} | ||
{{/hidden}} |
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