|
4 | 4 | @{ |
5 | 5 | ViewBag.Title = "API Keys"; |
6 | 6 | ViewBag.MdPageColumns = GalleryConstants.ColumnsFormMd; |
7 | | - var featureFlagService = DependencyResolver.Current.GetService<IFeatureFlagService>(); |
8 | | - ViewBag.IsTrustedPublishingEnabled = featureFlagService != null && featureFlagService.IsTrustedPublishingEnabled(CurrentUser); |
9 | 7 | } |
10 | 8 |
|
11 | 9 | <section role="main" class="container main-container page-api-keys"> |
|
14 | 12 | <div class="@ViewHelpers.GetColumnClasses(ViewBag)"> |
15 | 13 | @ViewHelpers.BreadcrumbWithProfile(Url, CurrentUser, true, @<text>API keys</text>) |
16 | 14 |
|
17 | | - @if (ViewBag.IsTrustedPublishingEnabled) |
18 | | - { |
19 | | - @ViewHelpers.Alert( |
| 15 | + @ViewHelpers.Alert( |
20 | 16 | @<text> |
21 | 17 | <strong>Looking for a more secure and streamlined way to publish packages?</strong> |
22 | 18 | If you're using GitHub Actions, we recommend switching to |
23 | 19 | <a href="@Url.ManageMyTrustedPublishing()">Trusted Publishing</a> since it eliminates the need to manage API keys. |
24 | 20 | </text>, |
25 | | - "info", icon: null) |
26 | | - } |
| 21 | + "info", icon: null) |
27 | 22 |
|
28 | 23 | <p> |
29 | 24 | An API key is a token that can identify you to @(Config.Current.Brand). The |
|
33 | 28 | @if (!CurrentUser.Confirmed) |
34 | 29 | { |
35 | 30 | @ViewHelpers.AlertWarning( |
36 | | - @<text> |
37 | | - To get an API Key you will need to |
38 | | - <a href="@Url.ConfirmationRequired()">confirm your account</a>. |
39 | | - </text>) |
| 31 | + @<text> |
| 32 | + To get an API Key you will need to |
| 33 | + <a href="@Url.ConfirmationRequired()">confirm your account</a>. |
| 34 | + </text>) |
40 | 35 | } |
41 | 36 | else |
42 | 37 | { |
|
49 | 44 | @ViewHelpers.Section(this, |
50 | 45 | "create", |
51 | 46 | "Create", |
52 | | - @<text> |
53 | | - <div class="upsert-api-key"> |
54 | | - <div class="panel-body" data-bind="template: { name: 'upsert-api-key', data: NewApiKey }"></div> |
55 | | - </div> |
56 | | - </text>, |
57 | | - expanded: false, |
58 | | - expandedIcon: "Subtraction", |
59 | | - collapsedIcon: "Add") |
| 47 | + @<text> |
| 48 | + <div class="upsert-api-key"> |
| 49 | + <div class="panel-body" data-bind="template: { name: 'upsert-api-key', data: NewApiKey }"></div> |
| 50 | + </div> |
| 51 | + </text>, |
| 52 | + expanded: false, |
| 53 | + expandedIcon: "Subtraction", |
| 54 | + collapsedIcon: "Add") |
60 | 55 |
|
61 | 56 | @ViewHelpers.Section(this, |
62 | 57 | "manage", |
63 | 58 | "Manage", |
64 | | - @<text> |
65 | | - <div data-bind="template: 'manage-api-keys'"></div> |
66 | | - </text>) |
| 59 | + @<text> |
| 60 | + <div data-bind="template: 'manage-api-keys'"></div> |
| 61 | + </text>) |
67 | 62 | } |
68 | 63 | </div> |
69 | 64 | </div> |
|
0 commit comments