Skip to content

Commit

Permalink
Add tag project displaying
Browse files Browse the repository at this point in the history
  • Loading branch information
Sanqui committed Jul 29, 2024
1 parent 67f7be8 commit 5df3e66
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 2 deletions.
8 changes: 8 additions & 0 deletions rhinventory/static/main.css
Original file line number Diff line number Diff line change
Expand Up @@ -269,3 +269,11 @@ hr {
border-color: var(--color-secondary);
border-style: solid;
}

.infobox {
border: 2px solid var(--color-secondary);
margin: 8px;
padding: 8px;
font-size: 16px;
text-align: center;
}
9 changes: 7 additions & 2 deletions rhinventory/templates/admin/asset/details.html
Original file line number Diff line number Diff line change
Expand Up @@ -82,8 +82,13 @@ <h2><small>{{ organization_icon(model.organization) }}{{ model.code_without_orga
{% endif %}

{% for tag in model.tags %}
{% if tag.is_post %}
<div style="border: 2px solid var(--color-secondary); margin: 8px; padding: 8px; font-size: 16px; text-align: center;">
{% if tag.is_project %}
<div class="infobox">
Tento předmět náleží do projektu:<br>
<strong><a href="{{ tag.url }}">{{ tag.link_title }}</a></strong>
</div>
{% elif tag.is_post %}
<div class="infobox">
O tomto předmětu pojednává blogový příspěvek:<br>
<strong><a href="{{ tag.url }}">{{ tag.link_title }}</a></strong>
</div>
Expand Down

0 comments on commit 5df3e66

Please sign in to comment.