Skip to content

Commit

Permalink
Prettify output
Browse files Browse the repository at this point in the history
  • Loading branch information
roman-yagodin committed Jul 7, 2021
1 parent 9be9cdb commit d3d2ab6
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion R7.Enrollment/Renderers/RatingsHtmlRenderer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ public void RenderCompetition (Competition competition, XmlWriter html)

if (competition.CompensationTypeBudget) {
html.WriteElementString ("h3",
$"{competition.EduProgram.Form} форма, {competition.CompensationType}, {competition.CompetitionType.ToLower ()}");
$"{competition.EduProgram.Form} форма, {competition.CompensationType} - {FirstCharToLower (competition.CompetitionType)}");
}
else {
html.WriteElementString ("h3",
Expand Down Expand Up @@ -324,5 +324,14 @@ string PatchedEduLevelString (Competition competition)

return competition.EduLevel;
}

string FirstCharToLower (string text)
{
if (string.IsNullOrWhiteSpace (text)) {
return text;
}

return text[0].ToString ().ToLower () + text.Substring (1);
}
}
}

0 comments on commit d3d2ab6

Please sign in to comment.