-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
Suggest wiping your environment to folks with bad build outcomes. #3347
Changes from 5 commits
67aaae9
cb46220
116dd1a
2d5cfc5
a37a3da
277b529
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -92,6 +92,29 @@ | |
</span> | ||
</div> | ||
|
||
<div class="build-ideas"> | ||
{% if not build.success and build.commands.count < 4 %} | ||
<p> | ||
|
||
{% url 'wipe_version' build.version.project.slug build.version.slug as wipe_url %} | ||
{% blocktrans %} | ||
Having trouble with your build environment? | ||
Try <a href="{{ wipe_url }}">reseting it</a>. | ||
{% endblocktrans %} | ||
</p> | ||
{% endif %} | ||
|
||
{% if not build.success and "setup.py install" in build.commands.last.output %} | ||
<p> | ||
{% url 'projects_advanced' build.version.project.slug as advanced_url %} | ||
{% blocktrans %} | ||
Don't want <pre>setup.py install</pre> called? | ||
Change the <strong>Install Project</strong> setting in your <a href="{{ advanced_url }}">advanced settings</a>. | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
|
||
{% endblocktrans %} | ||
</p> | ||
{% endif %} | ||
</div> | ||
|
||
{% if build.output %} | ||
{# If we have build output, this is an old build #} | ||
<p> | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,31 @@ | ||
{% extends "base.html" %} | ||
|
||
{% block project_editing %} | ||
{% with versions_active="active" %} | ||
{% include "core/project_bar.html" %} | ||
{% endwith %} | ||
{% endblock %} | ||
|
||
|
||
{% block title %}Wipe the build directories for a version {% endblock %} | ||
|
||
{% block content %} | ||
|
||
{% blocktrans with slug=version.slug %} | ||
<h3>Remove build environment for <em>{{ slug }}</em> version.</h3> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I'd remove the h3 at least from the blocktrans |
||
{% endblocktrans %} | ||
|
||
{% if deleted %} | ||
Your project environment has been wiped.<br><br> | ||
{% blocktrans %} | ||
Your project environment has been wiped.<br><br> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. All |
||
{% endblocktrans %} | ||
{% else %} | ||
Having trouble getting your documentation build to complete? By clicking on the button below you'll clean out your build checkouts and environment, but not your generated documentation. | ||
{% blocktrans %} | ||
Having trouble getting your documentation build to complete? By clicking on the button below you'll clean out your build checkouts and environment, but not your generated documentation. | ||
{% endblocktrans %} | ||
|
||
<form method="post" action="#"> | ||
<input type="submit" value="Wipe version"> | ||
<input type="submit" value="Wipe {{ version.slug }}"> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Non-translated copy here |
||
</form> | ||
{% endif %} | ||
|
||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
wipe_url
should be in the blocktrans variable listThere was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is how the docs say to do it. https://docs.djangoproject.com/en/1.9/topics/i18n/translation/#blocktrans-template-tag