File tree Expand file tree Collapse file tree 2 files changed +15
-9
lines changed
src/Elastic.Markdown/Myst/Directives Expand file tree Collapse file tree 2 files changed +15
-9
lines changed Original file line number Diff line number Diff line change 33@inherits RazorSlice <Elastic .Markdown .Myst .Directives .Admonition .AdmonitionViewModel >
44<div class =" admonition @Model.Directive @Model.Classes" id =" @Model.CrossReferenceName" open =" @Model.Open" >
55 <div class =" admonition-title" >
6-
76 @{
87 switch (Model .Directive )
98 {
3534 }
3635 }
3736 <span >@Model.Title </span >
38- <span class =" blah applies applies-inline" style =" margin-left : auto ;" >
39- @RenderPartialAsync(ApplicableToComponent.Create(Model.ApplicableToViewModel))
40- </span >
37+ @if (Model .ApplicableToViewModel != null )
38+ {
39+ <span class =" blah applies applies-inline" style =" margin-left : auto ;" >
40+ @RenderPartialAsync(ApplicableToComponent.Create(Model.ApplicableToViewModel))
41+ </span >
42+ }
4143 </div >
4244 <div class =" admonition-content" >@Model.RenderBlock() </div >
4345</div >
Original file line number Diff line number Diff line change 1111{
1212 <label class =" tabs-label" data-sync-id =" @Model.SyncKey" data-sync-group =" @Model.TabSetGroupKey" for =" @id" >@Model.Title </label >
1313}
14+ else @if (Model .ApplicableToViewModel != null )
15+ {
16+ <label class =" tabs-label" data-sync-id =" @Model.SyncKey" data-sync-group =" @Model.TabSetGroupKey" for =" @id" >
17+ <span class =" applies applies-inline" >
18+ @RenderPartialAsync(ApplicableToComponent.Create(Model.ApplicableToViewModel))
19+ </span >
20+ </label >
21+ }
1422else
1523{
16- <label class =" tabs-label" data-sync-id =" @Model.SyncKey" data-sync-group =" @Model.TabSetGroupKey" for =" @id" >
17- <span class =" applies applies-inline" >
18- @RenderPartialAsync(ApplicableToComponent.Create(Model.ApplicableToViewModel))
19- </span >
20- </label >
24+ <label class =" tabs-label" data-sync-id =" @Model.SyncKey" data-sync-group =" @Model.TabSetGroupKey" for =" @id" >Tab @( Model .Index + 1 ) </label >
2125}
2226<div class =" tabs-content" tabindex =" 0" >
2327 @Model.RenderBlock()
You can’t perform that action at this time.
0 commit comments