Skip to content

Commit e8a0cda

Browse files
authored
history: render project archival enter/exit events (#17453)
* history: render project archival enter/exit events * make translations Signed-off-by: William Woodruff <[email protected]> --------- Signed-off-by: William Woodruff <[email protected]>
1 parent 7d0a243 commit e8a0cda

File tree

2 files changed

+50
-22
lines changed

2 files changed

+50
-22
lines changed

warehouse/locale/messages.pot

+38-22
Original file line numberDiff line numberDiff line change
@@ -1809,10 +1809,10 @@ msgstr ""
18091809
#: warehouse/templates/accounts/register.html:64
18101810
#: warehouse/templates/manage/account.html:139
18111811
#: warehouse/templates/manage/account.html:480
1812-
#: warehouse/templates/manage/project/history.html:301
1813-
#: warehouse/templates/manage/project/history.html:312
1814-
#: warehouse/templates/manage/project/history.html:323
1815-
#: warehouse/templates/manage/project/history.html:334
1812+
#: warehouse/templates/manage/project/history.html:313
1813+
#: warehouse/templates/manage/project/history.html:324
1814+
#: warehouse/templates/manage/project/history.html:335
1815+
#: warehouse/templates/manage/project/history.html:346
18161816
#: warehouse/templates/manage/project/settings.html:224
18171817
#: warehouse/templates/manage/project/settings.html:285
18181818
#: warehouse/templates/manage/project/settings.html:291
@@ -3790,7 +3790,7 @@ msgstr ""
37903790

37913791
#: warehouse/templates/manage/account.html:780
37923792
#: warehouse/templates/manage/organization/history.html:201
3793-
#: warehouse/templates/manage/project/history.html:352
3793+
#: warehouse/templates/manage/project/history.html:364
37943794
#: warehouse/templates/manage/team/history.html:108
37953795
#: warehouse/templates/manage/unverified-account.html:466
37963796
msgid "Event"
@@ -3799,8 +3799,8 @@ msgstr ""
37993799
#: warehouse/templates/manage/account.html:781
38003800
#: warehouse/templates/manage/organization/history.html:202
38013801
#: warehouse/templates/manage/organization/history.html:211
3802-
#: warehouse/templates/manage/project/history.html:353
3803-
#: warehouse/templates/manage/project/history.html:362
3802+
#: warehouse/templates/manage/project/history.html:365
3803+
#: warehouse/templates/manage/project/history.html:374
38043804
#: warehouse/templates/manage/team/history.html:109
38053805
#: warehouse/templates/manage/team/history.html:118
38063806
#: warehouse/templates/manage/unverified-account.html:467
@@ -3827,7 +3827,7 @@ msgstr ""
38273827

38283828
#: warehouse/templates/manage/account.html:795
38293829
#: warehouse/templates/manage/organization/history.html:217
3830-
#: warehouse/templates/manage/project/history.html:368
3830+
#: warehouse/templates/manage/project/history.html:380
38313831
#: warehouse/templates/manage/team/history.html:124
38323832
#: warehouse/templates/manage/unverified-account.html:481
38333833
msgid "Device Info"
@@ -4160,8 +4160,8 @@ msgstr ""
41604160
#: warehouse/templates/manage/project/history.html:137
41614161
#: warehouse/templates/manage/project/history.html:182
41624162
#: warehouse/templates/manage/project/history.html:208
4163-
#: warehouse/templates/manage/project/history.html:299
4164-
#: warehouse/templates/manage/project/history.html:321
4163+
#: warehouse/templates/manage/project/history.html:311
4164+
#: warehouse/templates/manage/project/history.html:333
41654165
#: warehouse/templates/manage/team/history.html:88
41664166
msgid "Added by:"
41674167
msgstr ""
@@ -5365,8 +5365,8 @@ msgid "Created by:"
53655365
msgstr ""
53665366

53675367
#: warehouse/templates/manage/organization/history.html:144
5368-
#: warehouse/templates/manage/project/history.html:310
5369-
#: warehouse/templates/manage/project/history.html:332
5368+
#: warehouse/templates/manage/project/history.html:322
5369+
#: warehouse/templates/manage/project/history.html:344
53705370
#: warehouse/templates/manage/team/history.html:76
53715371
msgid "Deleted by:"
53725372
msgstr ""
@@ -5404,7 +5404,7 @@ msgid "Revoked by:"
54045404
msgstr ""
54055405

54065406
#: warehouse/templates/manage/organization/history.html:198
5407-
#: warehouse/templates/manage/project/history.html:349
5407+
#: warehouse/templates/manage/project/history.html:361
54085408
#: warehouse/templates/manage/team/history.html:105
54095409
#, python-format
54105410
msgid "Security history for %(source_name)s"
@@ -6059,30 +6059,46 @@ msgid "Disabled by:"
60596059
msgstr ""
60606060

60616061
#: warehouse/templates/manage/project/history.html:297
6062-
#: warehouse/templates/manage/project/history.html:319
6063-
msgid "Project alternate repository added"
6062+
msgid "Project archived"
6063+
msgstr ""
6064+
6065+
#: warehouse/templates/manage/project/history.html:299
6066+
msgid "Archived by:"
60646067
msgstr ""
60656068

60666069
#: warehouse/templates/manage/project/history.html:302
6067-
#: warehouse/templates/manage/project/history.html:313
6068-
#: warehouse/templates/manage/project/history.html:324
6069-
#: warehouse/templates/manage/project/history.html:335
6070+
msgid "Project unarchived"
6071+
msgstr ""
6072+
6073+
#: warehouse/templates/manage/project/history.html:304
6074+
msgid "Unarchived by:"
6075+
msgstr ""
6076+
6077+
#: warehouse/templates/manage/project/history.html:309
6078+
#: warehouse/templates/manage/project/history.html:331
6079+
msgid "Project alternate repository added"
6080+
msgstr ""
6081+
6082+
#: warehouse/templates/manage/project/history.html:314
6083+
#: warehouse/templates/manage/project/history.html:325
6084+
#: warehouse/templates/manage/project/history.html:336
6085+
#: warehouse/templates/manage/project/history.html:347
60706086
#: warehouse/templates/manage/project/settings.html:225
60716087
#: warehouse/templates/manage/project/settings.html:305
60726088
#: warehouse/templates/manage/project/settings.html:311
60736089
msgid "Url"
60746090
msgstr ""
60756091

6076-
#: warehouse/templates/manage/project/history.html:308
6077-
#: warehouse/templates/manage/project/history.html:330
6092+
#: warehouse/templates/manage/project/history.html:320
6093+
#: warehouse/templates/manage/project/history.html:342
60786094
msgid "Project alternate repository deleted"
60796095
msgstr ""
60806096

6081-
#: warehouse/templates/manage/project/history.html:354
6097+
#: warehouse/templates/manage/project/history.html:366
60826098
msgid "Additional info"
60836099
msgstr ""
60846100

6085-
#: warehouse/templates/manage/project/history.html:366
6101+
#: warehouse/templates/manage/project/history.html:378
60866102
#: warehouse/templates/manage/team/history.html:122
60876103
msgid "Location info"
60886104
msgstr ""

warehouse/templates/manage/project/history.html

+12
Original file line numberDiff line numberDiff line change
@@ -292,6 +292,18 @@ <h2>{% trans %}Security history{% endtrans %}</h2>
292292
{% trans %}Disabled by:{% endtrans %} <a href="{{ request.route_path('accounts.profile', username=event.additional.modified_by) }}">{{ event.additional.modified_by }}</a>
293293
</small>
294294

295+
{# Display project archival enter/exit events #}
296+
{% elif event.tag == EventTag.Project.ProjectArchiveEnter %}
297+
<strong>{% trans %}Project archived{% endtrans %}</strong>
298+
<small>
299+
{% trans %}Archived by:{% endtrans %} <a href="{{ request.route_path('accounts.profile', username=event.additional.submitted_by) }}">{{ event.additional.submitted_by }}</a>
300+
</small>
301+
{% elif event.tag == EventTag.Project.ProjectArchiveExit %}
302+
<strong>{% trans %}Project unarchived{% endtrans %}</strong>
303+
<small>
304+
{% trans %}Unarchived by:{% endtrans %} <a href="{{ request.route_path('accounts.profile', username=event.additional.submitted_by) }}">{{ event.additional.submitted_by }}</a>
305+
</small>
306+
295307
{# Display Project Alternate Repository events #}
296308
{% elif event.tag == EventTag.Account.AlternateRepositoryAdd %}
297309
<strong>{% trans%}Project alternate repository added{% endtrans %}</strong>

0 commit comments

Comments
 (0)