From 3764f58e45c9e22e5b5f411e2527098bb677b407 Mon Sep 17 00:00:00 2001 From: roman-yagodin Date: Tue, 29 Jun 2021 15:43:15 +0300 Subject: [PATCH] Fix competition type not displayed for budget competitions #17 --- R7.Enrollment/Renderers/RatingsHtmlRenderer.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/R7.Enrollment/Renderers/RatingsHtmlRenderer.cs b/R7.Enrollment/Renderers/RatingsHtmlRenderer.cs index 3b8bc97..b27899a 100644 --- a/R7.Enrollment/Renderers/RatingsHtmlRenderer.cs +++ b/R7.Enrollment/Renderers/RatingsHtmlRenderer.cs @@ -80,9 +80,9 @@ public void RenderCompetition (Competition competition, XmlWriter html) html.WriteElementString ("h2", $"{competition.EduProgram.Subject} ({competition.EduProgram.Specialization})"); - if (!competition.CompensationTypeBudget) { + if (competition.CompensationTypeBudget) { html.WriteElementString ("h3", - $"{competition.EduProgram.Form} форма, {competition.CompensationType}"); + $"{competition.EduProgram.Form} форма, {competition.CompensationType}, {competition.CompetitionType.ToLower ()}"); } else { html.WriteElementString ("h3",