Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fewer puzzle list columns #1039

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
58 changes: 29 additions & 29 deletions ServerCore/Pages/Puzzles/Play.cshtml
Original file line number Diff line number Diff line change
Expand Up @@ -101,19 +101,23 @@ else
Answer
</th>
}
<th>
<a asp-page="./Play"
@if (!Model.Event.EmbedPuzzles)
{
<th>
<a asp-page="./Play"
asp-route-singlePlayerPuzzleSort="@Model.SinglePlayerPuzzleSort"
asp-route-teamPuzzleSort="@(Model.SortForColumnLink(Model.TeamPuzzleSort, PlayModel.SortOrder.SolveAscending, PlayModel.SortOrder.SolveDescending))"
asp-route-stateFilter="@Model.StateFilter">
Solve
</a>
</th>
@if (!Model.Event.HideHints)
{
<th>
Hints
Solve
</a>
</th>

@if (!Model.Event.HideHints)
{
<th>
Hints
</th>
}
}
@if (Model.AllowFeedback)
{
Expand Down Expand Up @@ -157,7 +161,7 @@ else
}
else
{
@RawHtmlHelper.Display(item.Name, Model.Event.ID, Html)
<a asp-page="/Submissions/Index" asp-route-puzzleId="@item.ID">@RawHtmlHelper.Display(item.Name, Model.Event.ID, Html)</a>
}

@if (item.PieceMetaUsage != DataModel.PieceMetaUsage.None)
Expand All @@ -178,32 +182,28 @@ else
}
</td>
}
<td class="puzzle-list-submit-customizable">
@if (canSubmit)
{
@if (Model.Event.EmbedPuzzles)
@if (!Model.Event.EmbedPuzzles)
{
<td class="puzzle-list-submit-customizable">
@if (canSubmit)
{
<a asp-page="/Submissions/Index" asp-route-puzzleId="@item.ID">View Puzzle</a>
<a asp-page="/Submissions/Index" asp-route-puzzleId="@item.ID">Submit Answer</a>
}
else
{
<a asp-page="/Submissions/Index" asp-route-puzzleId="@item.ID">Submit Answer</a>
<text>Not yet available</text>
}
}
else
{
<text>Not yet available</text>
}
@if (item.SolvedTime != null)
@if (item.SolvedTime != null)
{
<text> (Solved on </text> @Html.Raw(Model.LocalTime(item.SolvedTime))<text>)</text>
}
</td>
@if (!Model.Event.HideHints)
{
<text> (Solved on </text> @Html.Raw(Model.LocalTime(item.SolvedTime))<text>)</text>
<td class="puzzle-list-hints-customizable">
<a asp-page="/Teams/Hints" asp-route-puzzleid="@item.ID" asp-route-teamId="@Model.Team.ID">Hints</a>
</td>
}
</td>
@if (!Model.Event.HideHints)
{
<td class="puzzle-list-hints-customizable">
<a asp-page="/Teams/Hints" asp-route-puzzleid="@item.ID" asp-route-teamId="@Model.Team.ID">Hints</a>
</td>
}
@if (Model.AllowFeedback)
{
Expand Down