Update messaging when no reports/scripts exist

This commit is contained in:
jeremystretch 2023-03-29 10:45:47 -04:00
parent 556353c2f3
commit 22aaa7d097
2 changed files with 6 additions and 6 deletions

View File

@ -108,9 +108,9 @@
{% empty %} {% empty %}
<div class="alert alert-info" role="alert"> <div class="alert alert-info" role="alert">
<h4 class="alert-heading">No Reports Found</h4> <h4 class="alert-heading">No Reports Found</h4>
Reports should be saved to <code>{{ settings.REPORTS_ROOT }}</code>. {% if perms.extras.add_reportmodule %}
<hr/> Get started by <a href="{% url 'extras:reportmodule_add' %}">creating a report</a> from an uploaded file or data source.
<small>This path can be changed by setting <code>REPORTS_ROOT</code> in NetBox's configuration.</small> {% endif %}
</div> </div>
{% endfor %} {% endfor %}
</div> </div>

View File

@ -79,9 +79,9 @@
{% empty %} {% empty %}
<div class="alert alert-info"> <div class="alert alert-info">
<h4 class="alert-heading">No Scripts Found</h4> <h4 class="alert-heading">No Scripts Found</h4>
Scripts should be saved to <code>{{ settings.SCRIPTS_ROOT }}</code>. {% if perms.extras.add_scriptmodule %}
<hr/> Get started by <a href="{% url 'extras:scriptmodule_add' %}">creating a script</a> from an uploaded file or data source.
This path can be changed by setting <code>SCRIPTS_ROOT</code> in NetBox's configuration. {% endif %}
</div> </div>
{% endfor %} {% endfor %}
</div> </div>