Skip to content

Commit f5e1449

Browse files
committed
Initial work on a UI for yanking releases
1 parent dc9741d commit f5e1449

File tree

2 files changed

+31
-1
lines changed

2 files changed

+31
-1
lines changed

warehouse/static/sass/blocks/_callout-block.scss

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,27 @@
7373
}
7474
}
7575

76+
&--warn {
77+
border-color: $warn-color;
78+
79+
> :not(.modal):not(.button) {
80+
color: $warn-text;
81+
82+
a:not(.button) {
83+
color: $warn-text;
84+
text-decoration: underline;
85+
86+
&:hover {
87+
color: darken($warn-text, 4);
88+
}
89+
}
90+
}
91+
92+
&:before {
93+
background-color: $warn-color;
94+
}
95+
}
96+
7697
&--success {
7798
border-color: $success-color;
7899

warehouse/templates/manage/release.html

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,15 @@ <h3>No files found</h3>
115115

116116
<h3>Release settings</h3>
117117

118+
<div class="callout-block callout-block--warn">
119+
<h3>Yank release</h3>
120+
<p>
121+
Yanking will mark this release{% if files %}, and {{ files|length() }} {% trans count=files|length %}file{% pluralize %}files{% endtrans %}{% endif %}
122+
to be ignored when installing in most common scenarios, except when being
123+
installed as a pinned release.
124+
</p>
125+
</div>
126+
118127
<div class="callout-block callout-block--danger">
119128
<h3>Delete release</h3>
120129
<p>
@@ -130,7 +139,7 @@ <h3>Delete release</h3>
130139
Deleting will irreversibly delete this release.
131140
{% endif %}
132141
You will not be able to re-upload a new distribution of the same type with the same version number.
133-
Consider making a new release or a <a href="https://www.python.org/dev/peps/pep-0440/#post-releases">post release</a> instead.
142+
Consider yanking this release, making a new release, or a <a href="https://www.python.org/dev/peps/pep-0440/#post-releases">post release</a> instead.
134143
</p>
135144
{{ confirm_button("Delete release", "Version", release.version) }}
136145
</div>

0 commit comments

Comments
 (0)