Skip to content

Commit

Permalink
List docs in Operation and Service details
Browse files Browse the repository at this point in the history
qqq

qq
  • Loading branch information
a-belhadj authored and Sispheor committed Jan 10, 2024
1 parent 2839db7 commit 7eca383
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 0 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@

- CSS issue in documentation rendering for <pre></pre> block in dark theme

## Enhancement

- List related docs in OperationDetails and ServiceDetails view
# 2.5.0 2024-01-09

## Fix
Expand Down
9 changes: 9 additions & 0 deletions templates/service_catalog/operation_detail.html
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,15 @@ <h3 class="card-title">Details</h3>
{{ object.enabled | display_boolean }}
</div>
</li>
<li class="list-group-item border-bottom-0">
<b>Docs</b>
{% for doc in object.docs.all %}
<a class="float-right"
href="{% url 'service_catalog:doc_details' pk=doc.id %}">
{{ doc.title }}
</a> <br>
{% endfor %}
</li>
</ul>
</div>
</div>
Expand Down
10 changes: 10 additions & 0 deletions templates/service_catalog/service_detail.html
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ <h3 class="card-title">{{ object.name }}</h3>
<div class="text-center">
<img class="card-img-top" src="
{% if object.image %}{{ object.image.url }}{% else %}{% static '/squest/img/no_image.png' %}{% endif %}"
alt="Service image">
</div>
Expand Down Expand Up @@ -55,6 +56,15 @@ <h3 class="card-title">{{ object.name }}</h3>
{% endfor %}
</span>
</li>
<li class="list-group-item border-bottom-0">
<b>Docs</b>
{% for doc in object.docs.all %}
<a class="float-right"
href="{% url 'service_catalog:doc_details' pk=doc.id %}">
{{ doc.title }}
</a> <br>
{% endfor %}
</li>
</ul>
</div>
</div>
Expand Down

0 comments on commit 7eca383

Please sign in to comment.