Skip to content

Commit

Permalink
Product API scan config: Display view scan configs button for all pro…
Browse files Browse the repository at this point in the history
…ducts (#10889)
  • Loading branch information
Maffooch authored Sep 16, 2024
1 parent 085b25f commit df6c17d
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 19 deletions.
20 changes: 11 additions & 9 deletions dojo/templates/dojo/product.html
Original file line number Diff line number Diff line change
Expand Up @@ -122,18 +122,20 @@ <h3 class="has-filters">
<i class="fa-solid fa-pen-to-square"></i> Edit Custom Fields
</a>
</li>
<li role="separator" class="divider"></li>
<li role="presentation">
<a class="" href="{% url 'add_api_scan_configuration' prod.id %}">
<i class="fa-solid fa-rectangle-list"></i> Add Scan API Configuration
</a>
</li>
{% endif %}
<li role="separator" class="divider"></li>
{% if prod|has_object_permission:"Product_API_Scan_Configuration_Edit" %}
<li role="presentation">
<a title="View API Scan configurations" href="{% url 'view_api_scan_configurations' prod.id %}">
<i class="fa-solid fa-clock-rotate-left"></i> View Scan API Configurations
</a>
<a class="" href="{% url 'add_api_scan_configuration' prod.id %}">
<i class="fa-solid fa-rectangle-list"></i> Add Scan API Configuration
</a>
</li>
{% endif %}
<li role="presentation">
<a title="View API Scan configurations" href="{% url 'view_api_scan_configurations' prod.id %}">
<i class="fa-solid fa-clock-rotate-left"></i> View Scan API Configurations
</a>
</li>
{% if system_settings.enable_product_tracking_files %}
<li role="separator" class="divider"></li>
{% if prod|has_object_permission:"Product_Tracking_Files_Add" %}
Expand Down
22 changes: 12 additions & 10 deletions dojo/templates/dojo/view_product_details.html
Original file line number Diff line number Diff line change
Expand Up @@ -41,19 +41,21 @@ <h3 class="pull-left">{% trans "Description" %}</h3>
<i class="fa-solid fa-pen-to-square"></i>{% trans "Edit Custom Fields" %}
</a>
</li>
<li role="separator" class="divider"></li>
<li role="presentation">
<a class="" href="{% url 'add_api_scan_configuration' prod.id %}">
<i class="fa-solid fa-plus"></i>{% trans "Add API Scan Configuration" %}
</a>
</li>
{% endif %}
<li role="separator" class="divider"></li>
{% if prod|has_object_permission:"Product_API_Scan_Configuration_Add" %}
<li role="presentation">
<a title="View API Scan Configurations"
href="{% url 'view_api_scan_configurations' prod.id %}">
<i class="fa-solid fa-rectangle-list"></i>{% trans "View API Scan Configurations" %}
</a>
<a class="" href="{% url 'add_api_scan_configuration' prod.id %}">
<i class="fa-solid fa-plus"></i>{% trans "Add API Scan Configuration" %}
</a>
</li>
{% endif %}
<li role="presentation">
<a title="View API Scan Configurations"
href="{% url 'view_api_scan_configurations' prod.id %}">
<i class="fa-solid fa-rectangle-list"></i>{% trans "View API Scan Configurations" %}
</a>
</li>
{% if system_settings.enable_product_tracking_files %}
<li role="separator" class="divider"></li>
{% if prod|has_object_permission:"Product_Tracking_Files_Add" %}
Expand Down

0 comments on commit df6c17d

Please sign in to comment.