Skip to content

Commit 1b4da36

Browse files
committed
Moved the News outside the for loop so that it appears only once
1 parent f6222b7 commit 1b4da36

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

Fritz.StreamTools/Views/GitHub/Contributor_h-scroll.cshtml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -83,17 +83,17 @@
8383
8484
</span>
8585
86-
<span id="news">
86+
}
8787
88-
<b style="color: @Model.News.color!important">Latest news from @Model.News.source</b>
88+
<span id="news">
8989
90-
@foreach(var article in Model.News.blogPosts) {
91-
<span style="margin-right: 3px; text-decoration: underline;">@article.Title</span>
92-
}
90+
<b style="color: @Model.News.color!important">Latest news from @Model.News.source</b>
9391
94-
</span>
92+
@foreach(var article in Model.News.blogPosts) {
93+
<span style="margin-right: 3px; text-decoration: underline;">@article.Title</span>
94+
}
9595
96-
}
96+
</span>
9797
9898
</p>
9999

0 commit comments

Comments
 (0)