From eb78cea96f94d2ac4aa88a9b2b040c0e24cee364 Mon Sep 17 00:00:00 2001
From: Mike Fiedler
+ {% trans %}The following custom Trusted Publisher issuers have been configured for this organization.
+ These issuers can be used to configure Trusted Publishing for your organization's projects.{% endtrans %}
+ {% trans %}Modifying custom Trusted Publishers is not currently supported.{% endtrans %}
+ {% trans href="mailto:support+orgs@pypi.org" %}Please contact PyPI Support if you need to modify custom Trusted Publishers.{% endtrans %}
+ {% trans %}Billing details{% endtrans %}
{% endif %}
{% endif %}
+{% if request.has_permission(Permissions.OrganizationsManage) and organization.oidc_issuers %}
+
+ {% trans %}Custom Trusted Publishers{% endtrans %}
+
+ {% for issuer in organization.oidc_issuers %}
+
+
{% trans %}Security history{% endtrans %}
{% trans href=request.route_path('accounts.profile', username=target_user), username=target_user, team_name=event.additional.team_name %}{{ username }} removed from {{ team_name }} team{% endtrans %}
+ {# Display custom trusted publisher events #}
+ {% elif event.tag == EventTag.Organization.OIDCPublisherAdded %}
+ {% set submitted_by = get_user(event.additional.submitted_by_user_id).username %}
+
+ {% trans issuer_url=event.additional.issuer_url, issuer_type=event.additional.issuer_type %}Custom Trusted Publisher '{{ issuer_type }}' for {{ issuer_url }} added to organization{% endtrans %}
+
+
+ {% trans %}Added by:{% endtrans %} {{ submitted_by }}
+
+ {% elif event.tag == EventTag.Organization.OIDCPublisherRemoved %}
+ {% set deleted_by = get_user(event.additional.deleted_by_user_id).username %}
+
+ {% trans issuer_url=event.additional.issuer_url, issuer_type=event.additional.issuer_type %}Custom Trusted Publisher '{{ issuer_type }}' for {{ issuer_url }} removed from organization{% endtrans %}
+
+
+ {% trans %}Removed by:{% endtrans %} {{ deleted_by }}
+
+ {# For everything else, display the tag itself #}
{% else %}
{{ event.tag }}
{% endif %}
From 9cab09528d990923e1e9c5c7d162ef82115ba17d Mon Sep 17 00:00:00 2001
From: Mike Fiedler {% trans %}Change organization account name{% endtrans %}
{% trans href="mailto:support+orgs@pypi.org" %}Please contact PyPI Support if you need to rename your organization.{% endtrans %}
%(issuer_url)s added to organization"
+msgstr ""
+
+#: warehouse/templates/manage/organization/history.html:114
+#, python-format
+msgid ""
+"Custom Trusted Publisher '%(issuer_type)s' for "
+"%(issuer_url)s removed from organization"
+msgstr ""
+
+#: warehouse/templates/manage/organization/history.html:127
msgid "Registered by:"
msgstr ""
-#: warehouse/templates/manage/organization/history.html:115
+#: warehouse/templates/manage/organization/history.html:133
#: warehouse/templates/manage/project/history.html:19
#: warehouse/templates/manage/team/history.html:52
msgid "Created by:"
msgstr ""
-#: warehouse/templates/manage/organization/history.html:120
+#: warehouse/templates/manage/organization/history.html:138
#: warehouse/templates/manage/project/history.html:293
#: warehouse/templates/manage/project/history.html:315
#: warehouse/templates/manage/team/history.html:57
msgid "Deleted by:"
msgstr ""
-#: warehouse/templates/manage/organization/history.html:125
+#: warehouse/templates/manage/organization/history.html:143
#: warehouse/templates/manage/team/history.html:62
msgid "Renamed by:"
msgstr ""
-#: warehouse/templates/manage/organization/history.html:130
+#: warehouse/templates/manage/organization/history.html:148
msgid "Approved by:"
msgstr ""
-#: warehouse/templates/manage/organization/history.html:135
+#: warehouse/templates/manage/organization/history.html:153
msgid "Declined by:"
msgstr ""
-#: warehouse/templates/manage/organization/history.html:151
+#: warehouse/templates/manage/organization/history.html:169
#: warehouse/templates/manage/project/history.html:133
#: warehouse/templates/manage/project/history.html:179
#: warehouse/templates/manage/team/history.html:78
msgid "Changed by:"
msgstr ""
-#: warehouse/templates/manage/organization/history.html:156
-#: warehouse/templates/manage/organization/history.html:161
+#: warehouse/templates/manage/organization/history.html:174
+#: warehouse/templates/manage/organization/history.html:179
#: warehouse/templates/manage/project/history.html:140
#: warehouse/templates/manage/project/history.html:147
msgid "Invited by:"
msgstr ""
-#: warehouse/templates/manage/organization/history.html:166
+#: warehouse/templates/manage/organization/history.html:184
#: warehouse/templates/manage/project/history.html:154
msgid "Revoked by:"
msgstr ""
-#: warehouse/templates/manage/organization/history.html:172
+#: warehouse/templates/manage/organization/history.html:190
#: warehouse/templates/manage/project/history.html:330
#: warehouse/templates/manage/team/history.html:84
#, python-format
@@ -6055,68 +6069,75 @@ msgid "Activate billing"
msgstr ""
#: warehouse/templates/manage/organization/settings.html:194
-#: warehouse/templates/manage/organization/settings.html:228
-msgid "Change organization account name"
+msgid "Custom Trusted Publishers"
msgstr ""
#: warehouse/templates/manage/organization/settings.html:196
-msgid "Renaming organizations is not currently supported."
+msgid ""
+"The following custom Trusted Publisher issuers have been configured for "
+"this organization. These issuers can be used to configure Trusted "
+"Publishing for your organization's projects."
msgstr ""
-#: warehouse/templates/manage/organization/settings.html:198
+#: warehouse/templates/manage/organization/settings.html:209
+msgid "Modifying custom Trusted Publishers is not currently supported."
+msgstr ""
+
+#: warehouse/templates/manage/organization/settings.html:211
#, python-format
msgid ""
-"Please contact PyPI Support if you need to rename "
-"your organization."
+"Please contact PyPI Support if you need to modify "
+"custom Trusted Publishers."
msgstr ""
-#: warehouse/templates/manage/organization/settings.html:206
-msgid ""
-"You will not be able to revert to your current account name after you "
-"rename your organization."
+#: warehouse/templates/manage/organization/settings.html:219
+msgid "Change organization account name"
msgstr ""
-#: warehouse/templates/manage/organization/settings.html:228
-msgid "Change organization account name for"
+#: warehouse/templates/manage/organization/settings.html:221
+msgid "Renaming organizations is not currently supported."
msgstr ""
-#: warehouse/templates/manage/organization/settings.html:228
-msgid "Current organization account name"
+#: warehouse/templates/manage/organization/settings.html:223
+#, python-format
+msgid ""
+"Please contact PyPI Support if you need to rename "
+"your organization."
msgstr ""
-#: warehouse/templates/manage/organization/settings.html:234
-#: warehouse/templates/manage/organization/settings.html:284
+#: warehouse/templates/manage/organization/settings.html:259
+#: warehouse/templates/manage/organization/settings.html:309
msgid "Delete organization"
msgstr ""
-#: warehouse/templates/manage/organization/settings.html:237
+#: warehouse/templates/manage/organization/settings.html:262
msgid "Cannot delete organization"
msgstr ""
-#: warehouse/templates/manage/organization/settings.html:239
+#: warehouse/templates/manage/organization/settings.html:264
#, python-format
msgid "Your organization currently owns %(count)s project."
msgid_plural "Your organization currently owns %(count)s projects."
msgstr[0] ""
msgstr[1] ""
-#: warehouse/templates/manage/organization/settings.html:244
+#: warehouse/templates/manage/organization/settings.html:269
msgid "For each project, you must either:"
msgstr ""
-#: warehouse/templates/manage/organization/settings.html:246
+#: warehouse/templates/manage/organization/settings.html:271
msgid "Transfer ownership and remove the project from your organization"
msgstr ""
-#: warehouse/templates/manage/organization/settings.html:247
+#: warehouse/templates/manage/organization/settings.html:272
msgid "Delete the project"
msgstr ""
-#: warehouse/templates/manage/organization/settings.html:249
+#: warehouse/templates/manage/organization/settings.html:274
msgid "Before you can delete your organization."
msgstr ""
-#: warehouse/templates/manage/organization/settings.html:255
+#: warehouse/templates/manage/organization/settings.html:280
#, python-format
msgid ""
"transfer ownership and delete project"
msgstr ""
-#: warehouse/templates/manage/organization/settings.html:267
+#: warehouse/templates/manage/organization/settings.html:292
msgid "You will not be able to recover your organization after you delete it."
msgstr ""
-#: warehouse/templates/manage/organization/settings.html:274
+#: warehouse/templates/manage/organization/settings.html:299
msgid ""
"Your subscription will be cancelled, and you will lose access to the "
"billing portal."
msgstr ""
-#: warehouse/templates/manage/organization/settings.html:276
+#: warehouse/templates/manage/organization/settings.html:301
msgid "You will lose access to the billing portal."
msgstr ""
-#: warehouse/templates/manage/organization/settings.html:278
+#: warehouse/templates/manage/organization/settings.html:303
#, python-format
msgid ""
"Please ensure you have retrieved all invoices from