Don't display the build suggestions div if there are no suggestions
This added extraneous spacing to the build page.
@@ -92,19 +92,18 @@ $(document).ready(function () {
</span>
</div>
- <div class="build-ideas">
{% if not build.success and build.commands.count < 4 %}
+ <div class="build-ideas">
<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 %}
+ </div>
+ {% elif not build.success and "setup.py install" in build.commands.last.output %}
+ <div class="build-ideas">
<p>
{% url 'projects_advanced' build.version.project.slug as advanced_url %}
{% blocktrans %}
@@ -112,8 +111,8 @@ $(document).ready(function () {
Change the <strong>Install Project</strong> setting in your <a href="{{ advanced_url }}">advanced settings</a>.
{% endblocktrans %}
</p>
- {% endif %}
</div>
+ {% endif %}
{% if build.output %}
{# If we have build output, this is an old build #}
