|
180 | 180 | { |
181 | 181 | var thirdPartyPackageManager = packageManager as ThirdPartyPackageManagerViewModel; |
182 | 182 | <div role="tabpanel" class="tab-pane @(active ? "active" : string.Empty)" id="@packageManager.Id"> |
183 | | - <div> |
184 | | - <div class="install-script-row"> |
185 | | - @{ |
186 | | - var lastIndex = packageManager.InstallPackageCommands.Length - 1; |
187 | | - var cs = packageManager.InstallPackageCommands.Select((c, i) => i < lastIndex ? c + Environment.NewLine : c); |
188 | | - } |
189 | | - @* Writing out the install command must be on a single line to avoid undesired whitespace in the <pre> tag. *@ |
190 | | - <pre class="install-script" id="@packageManager.Id-text">@foreach (var c in cs) {<span class="install-command-row">@c</span>}</pre> |
191 | | - <div class="copy-button"> |
192 | | - <button id="@packageManager.Id-button" class="btn btn-default btn-warning" type="button" |
193 | | - data-toggle="popover" data-placement="bottom" data-content="Copied." |
194 | | - aria-label="@packageManager.CopyLabel" role="button"> |
195 | | - <span class="ms-Icon ms-Icon--Copy" aria-hidden="true"></span> |
196 | | - </button> |
197 | | - </div> |
| 183 | + <div class="install-script-row"> |
| 184 | + @{ |
| 185 | + var lastIndex = packageManager.InstallPackageCommands.Length - 1; |
| 186 | + var cs = packageManager.InstallPackageCommands.Select((c, i) => i < lastIndex ? c + Environment.NewLine : c); |
| 187 | + } |
| 188 | + @* Writing out the install command must be on a single line to avoid undesired whitespace in the <pre> tag. *@ |
| 189 | + <pre class="install-script" id="@packageManager.Id-text">@foreach (var c in cs) {<span class="install-command-row">@c</span>}</pre> |
| 190 | + <div class="copy-button"> |
| 191 | + <button id="@packageManager.Id-button" class="btn btn-default btn-warning" type="button" |
| 192 | + data-toggle="popover" data-placement="bottom" data-content="Copied." |
| 193 | + aria-label="@packageManager.CopyLabel" role="button"> |
| 194 | + <span class="ms-Icon ms-Icon--Copy" aria-hidden="true"></span> |
| 195 | + </button> |
198 | 196 | </div> |
199 | 197 | </div> |
200 | 198 |
|
|
0 commit comments