Skip to content
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

Fix/ooi detail fixes #4024

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
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
10 changes: 5 additions & 5 deletions rocky/rocky/templates/oois/ooi_detail.html
Original file line number Diff line number Diff line change
Expand Up @@ -34,14 +34,14 @@
{% include "tasks/ooi_detail_task_list.html" %}

</div>
<div>
{% if not ooi|is_finding and not ooi|is_finding_type %}
{% if not ooi|is_finding and not ooi|is_finding_type %}
<div>
{% include "oois/ooi_detail_findings_overview.html" with severity_summary=findings_severity_summary severity_summary_totals=severity_summary_totals %}

{% endif %}
</div>
</div>
{% endif %}
<div>
<h2>{% translate "Scan" %} {{ ooi.human_readable }} {% translate "using boefjes" %}</h2>
<h2>{% translate "Scan" %} {% translate "using boefjes" %}</h2>
{% if enabled_boefjes_available %}
<div class="horizontal-view">
<div>
Expand Down
11 changes: 7 additions & 4 deletions rocky/rocky/templates/oois/ooi_detail_origins_inference.html
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,13 @@ <h2>{% translate "Inferred by" %}</h2>
<a href="{% ooi_url 'ooi_detail' inference.origin.source organization.code %}">{{ inference.origin.source }}</a>
</td>
<td>
{% for param in params %}
<a href="{% ooi_url 'ooi_detail' param.reference organization.code %}">{{ param.reference }}</a>
<br>
{% endfor %}
<ul>
{% for param in params %}
<li>
<a href="{% ooi_url 'ooi_detail' param.reference organization.code %}">{{ param.reference }}</a>
</li>
{% endfor %}
</ul>
</td>
</tr>
{% endfor %}
Expand Down
12 changes: 5 additions & 7 deletions rocky/rocky/templates/partials/ooi_detail_related_object.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,13 @@
<div class="horizontal-scroll">
<h2>{% translate "Related objects" %}</h2>
{% if not related %}
<p>
{% translate "No related objects added to" %} {{ ooi.get_ooi_type }}.
<br>
{% translate "Use the button below to add a related object." %}
</p>
<p>{% translate "No related object known for" %} {{ ooi.get_ooi_type }}.</p>
{% endif %}
{% if not ooi_past_due %}
{% if not ooi|is_finding and not ooi|is_finding_type %}
<div class="horizontal-view {% if related %}toolbar{% endif %}">
<a href="{% ooi_url "ooi_add_related" ooi.primary_key organization.code %}"
class="button ghost">{% translate "Add" %}</a>
class="button ghost">{% translate "Add related" %}</a>
</div>
{% endif %}
{% endif %}
Expand All @@ -32,7 +28,9 @@ <h2>{% translate "Related objects" %}</h2>
<td>
<a href="{% ooi_url "ooi_detail" related_ooi.reference organization.code query=related_ooi.mandatory_fields %}">{{ related_ooi.reference.human_readable }}</a>
</td>
<td>{{ related_ooi.name }}</td>
<td>
<a href="{% url "ooi_list" organization.code %}?ooi_type={{ related_ooi.reference.class_ }}">{{ related_ooi.reference.class_ }}</a>
</td>
</tr>
{% endfor %}
</tbody>
Expand Down
4 changes: 2 additions & 2 deletions rocky/rocky/templates/tasks/ooi_detail_task_list.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@
<h2>{% translate "Tasks" %}</h2>
{% ooi_url 'ooi_detail' ooi.primary_key organization.code query=mandatory_fields as this_url %}
{% if not task_list %}
<p class="emphasized">{% translate "There are no tasks for" %} {{ ooi }}</p>
<p class="emphasized">{% translate "There have been no tasks" %}</p>
{% include "tasks/partials/task_filter.html" with clear_filter_url=this_url %}

{% else %}
<p class="emphasized">{% translate "List of tasks for" %} {{ ooi }}</p>
<p class="emphasized">{% translate "List of tasks" %}</p>
{% include "tasks/partials/task_filter.html" with clear_filter_url=this_url %}

<table rf-selector="table-scan-history">
Expand Down
Loading