|
| 1 | +@using AventStack.ExtentReports.ViewDefs |
| 2 | + |
| 3 | +@if (Model.HasChildren) |
| 4 | +{ |
| 5 | +<div class="accordion mt-4"> |
| 6 | + @foreach (var node in Model.NodeContext.All()) |
| 7 | + { |
| 8 | + <div class="card"> |
| 9 | + <div class="card-header" role="tab"> |
| 10 | + <h5 class="card-title pl-3"> |
| 11 | + <div class="node">@node.Name</div> |
| 12 | + <div class="status-avatar float-left @node.Status.ToString().ToLower()-bg"> |
| 13 | + < i class= "fa [email protected](node.Status) text-white"></ i> |
| 14 | + </div> |
| 15 | + </h5> |
| 16 | + </div> |
| 17 | + @if (node.HasChildren) |
| 18 | + { |
| 19 | + if (node.BehaviorDrivenTypeName.Equals("Scenario Outline")) |
| 20 | + { |
| 21 | + <div class="collapse scenario_outline"> |
| 22 | + @foreach (var child in node.NodeContext.All()) |
| 23 | + { |
| 24 | + <div class="card-body l1"> |
| 25 | + <div class="card-header" role="tab"> |
| 26 | + <h5 class="card-title outline-child"> |
| 27 | + <div class="node">@child.Name</div> |
| 28 | + <div class="status-avatar float-left @child.Status.ToString().ToLower()-bg"> |
| 29 | + <i class="fa [email protected](child.Status) text-white"></i> |
| 30 | + </div> |
| 31 | + </h5> |
| 32 | + </div> |
| 33 | + <div class="card-body collapse mt-3"> |
| 34 | + @foreach (var step in child.NodeContext.All()) |
| 35 | + { |
| 36 | + <div class="d-flex align-items-center justify-content-start @step.BehaviorDrivenTypeName.Replace(" ","").ToLower()" title="@step.Description"> |
| 37 | + <span class="alert-icon @step.Status.ToString().ToLower()-bg"> |
| 38 | + <i class="fa [email protected](step.Status) text-white"></i> |
| 39 | + </span> |
| 40 | + <span>@step.Name</span> |
| 41 | + </div> |
| 42 | + @Include("SparkStepDetails", step) |
| 43 | + } |
| 44 | + </div> |
| 45 | + </div> |
| 46 | + } |
| 47 | + </div> |
| 48 | + } |
| 49 | + else |
| 50 | + { |
| 51 | + <div class="collapse"> |
| 52 | + <div class="card-body"> |
| 53 | + @foreach (var child in node.NodeContext.All()) |
| 54 | + { |
| 55 | + <div class="d-flex align-items-center justify-content-start @child.BehaviorDrivenTypeName.Replace(" ","").ToLower()" title="@child.Description"> |
| 56 | + <span class="alert-icon @child.Status.ToString().ToLower()-bg"> |
| 57 | + < i class= "fa [email protected](child.Status) text-white"></ i> |
| 58 | + </span> |
| 59 | + <span>@child.Name</span> |
| 60 | + </div> |
| 61 | + @Include("SparkStepDetails", child) |
| 62 | + } |
| 63 | + </div> |
| 64 | + </div> |
| 65 | + } |
| 66 | + } |
| 67 | + </div> |
| 68 | + } |
| 69 | +</div> |
| 70 | +} |
0 commit comments