mirror of
https://github.com/ppy/osu.git
synced 2024-12-15 02:42:54 +08:00
Display stub notice in marked wiki articles
This commit is contained in:
parent
0cf69a1084
commit
ea88aee41f
@ -19,6 +19,7 @@ namespace osu.Game.Overlays.Wiki.Markdown
|
||||
{
|
||||
private readonly bool isOutdated;
|
||||
private readonly bool needsCleanup;
|
||||
private readonly bool isStub;
|
||||
|
||||
public WikiNoticeContainer(YamlFrontMatterBlock yamlFrontMatterBlock)
|
||||
{
|
||||
@ -37,6 +38,10 @@ namespace osu.Game.Overlays.Wiki.Markdown
|
||||
case @"needs_cleanup: true":
|
||||
needsCleanup = true;
|
||||
break;
|
||||
|
||||
case @"stub: true":
|
||||
isStub = true;
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -60,6 +65,14 @@ namespace osu.Game.Overlays.Wiki.Markdown
|
||||
Text = WikiStrings.ShowNeedsCleanupOrRewrite,
|
||||
});
|
||||
}
|
||||
|
||||
if (isStub)
|
||||
{
|
||||
Add(new NoticeBox
|
||||
{
|
||||
Text = WikiStrings.ShowStub,
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
private partial class NoticeBox : Container
|
||||
|
Loading…
Reference in New Issue
Block a user