Skip to content

Add instructions on how to make a release #2873

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Feb 1, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
73 changes: 37 additions & 36 deletions warehouse/templates/manage/releases.html
Original file line number Diff line number Diff line change
Expand Up @@ -76,46 +76,47 @@ <h2>Releases ({{ project.releases|length }})</h2>
</tbody>
</table>
<br>
{% else %}
<h2>No releases</h2>
{% endif %}
{# TODO: https://github.com/pypa/warehouse/issues/2809
<div class="callout-block">
<h3>Creating a New Release</h3>
<p>TODO: Some help text here</p>
</div>
#}

<div class="callout-block">
{% if project.releases %}
<h3>Creating a New Release</h3>
{% else %}
<h3>No Releases Found</h3>
{% endif %}
<p>Learn how to create a new release on the <a href="https://packaging.python.org/tutorials/distributing-packages/">Python Packaging User Guide</a></p>
</div>

{# TODO: https://github.com/pypa/warehouse/issues/2808
{% for release in project.releases %}
<div id="delete-release-modal-{{ loop.index }}" class="modal">
<div class="modal__content" role="dialog">
<a href="#modal-close" title="Close" class="modal__close">
<i class="fa fa-times" aria-hidden="true"></i>
<span class="sr-only">close</span>
</a>
<div class="modal__body">
<h3 class="modal__title">Delete {{ project.name }} - release {{ release.version }}?</h3>
<div class="callout-block callout-block--danger callout-block--bottom-margin no-top-margin">
<p>Warning: This action cannot be undone!</p>
</div>
<p>Enter your password to continue.</p>
<form class="modal__form">
<div class="split-layout">
<label for="password">Password</label>
<label for="show-password" class="show-password">
<input id="show-password" type="checkbox">&nbsp;Show password
</label>
</div>
<input type="password" id="password" placeholder="Your password">
</form>
</div>
<div class="modal__footer">
<a href="#modal-close" class="button modal__action">Cancel</a>
<button class="button button--highlight modal__action">Delete Release</button>
</div>
{% for release in project.releases %}
<div id="delete-release-modal-{{ loop.index }}" class="modal">
<div class="modal__content" role="dialog">
<a href="#modal-close" title="Close" class="modal__close">
<i class="fa fa-times" aria-hidden="true"></i>
<span class="sr-only">close</span>
</a>
<div class="modal__body">
<h3 class="modal__title">Delete {{ project.name }} - release {{ release.version }}?</h3>
<div class="callout-block callout-block--danger callout-block--bottom-margin no-top-margin">
<p>Warning: This action cannot be undone!</p>
</div>
<p>Enter your password to continue.</p>
<form class="modal__form">
<div class="split-layout">
<label for="password">Password</label>
<label for="show-password" class="show-password">
<input id="show-password" type="checkbox">&nbsp;Show password
</label>
</div>
<input type="password" id="password" placeholder="Your password">
</form>
</div>
{% endfor %}
<div class="modal__footer">
<a href="#modal-close" class="button modal__action">Cancel</a>
<button class="button button--highlight modal__action">Delete Release</button>
</div>
</div>
</div>
{% endfor %}
#}
{% endblock %}