Skip to content

Commit

Permalink
fix(generic,apis_entities): move action classes to generic app
Browse files Browse the repository at this point in the history
The object action classes are used in the generic templates, therefore
they should be moved to a `generic.css` stylesheet which is included in
the `generic_content.html` base template.

Closes: #1469
  • Loading branch information
b1rger committed Dec 5, 2024
1 parent e336758 commit 73b4d59
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 13 deletions.
13 changes: 0 additions & 13 deletions apis_core/apis_entities/static/css/apis_entities.css
Original file line number Diff line number Diff line change
Expand Up @@ -11,16 +11,3 @@
.next-in-list {
float: left;
}

/* additional object actions */
.object-duplicate {
color: blueviolet;
}

.object-merge {
color: dodgerblue;
}

.object-history {
color: #007bff;
}
12 changes: 12 additions & 0 deletions apis_core/generic/static/css/generic.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
/* additional object actions */
.object-duplicate {
color: blueviolet;
}

.object-merge {
color: dodgerblue;
}

.object-history {
color: #007bff;
}
7 changes: 7 additions & 0 deletions apis_core/generic/templates/generic/generic_content.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,11 @@
{% extends basetemplate|default:"base.html" %}
{% load static %}

{% block styles %}
{{ block.super }}
<link href="{% static 'css/generic.css' %}" rel="stylesheet" />
{% endblock styles %}


{% block content %}
<div class="container-fluid">
Expand Down

0 comments on commit 73b4d59

Please sign in to comment.