Skip to content

Commit 5df3e66

Browse files
committed
Add tag project displaying
1 parent 67f7be8 commit 5df3e66

File tree

2 files changed

+15
-2
lines changed

2 files changed

+15
-2
lines changed

rhinventory/static/main.css

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -269,3 +269,11 @@ hr {
269269
border-color: var(--color-secondary);
270270
border-style: solid;
271271
}
272+
273+
.infobox {
274+
border: 2px solid var(--color-secondary);
275+
margin: 8px;
276+
padding: 8px;
277+
font-size: 16px;
278+
text-align: center;
279+
}

rhinventory/templates/admin/asset/details.html

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,8 +82,13 @@ <h2><small>{{ organization_icon(model.organization) }}{{ model.code_without_orga
8282
{% endif %}
8383

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

0 commit comments

Comments
 (0)