Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Add CSS Classes (#392) #394

Merged
merged 6 commits into from
Jan 21, 2024
Merged
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
2 changes: 1 addition & 1 deletion src/Resources/views/Audit/audits.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
{% block dh_auditor_content %}
<div class="auditor-audits mb-6 grid grid-cols-1 sm:grid-cols-2 md:grid-cols-3 gap-4 mx-4 sm:mx-0">
{% for entity, table in audited %}
<div class="bg-white overflow-hidden rounded border border-gray-200 hover:bg-blue-50 hover:border-blue-300 transition-all duration-300 group flex flex-col justify-between">
<div id="audit-entity-{{ entity|escape|split('\\')|last|lower }}" class="auditor-audit bg-white overflow-hidden rounded border border-gray-200 hover:bg-blue-50 hover:border-blue-300 transition-all duration-300 group flex flex-col justify-between">
<div class="px-4 py-3 sm:px-4">
<h3 class="text-lg leading-6 text-gray-900">
<code class="text-pink-500">{{ entity|escape }}</code>
Expand Down
8 changes: 4 additions & 4 deletions src/Resources/views/Audit/entry.html.twig
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{% import '@DHAuditor/Audit/helpers/helper.html.twig' as helper %}

<div class="relative pb-8">
<div class="auditor-audit-history-entry relative pb-8">
{% if not is_last %}
<span class="absolute top-4 left-4 -ml-px h-full w-0.5 bg-gray-200" aria-hidden="true"></span>
{% endif %}
Expand All @@ -10,7 +10,7 @@
{{ helper.icon_type(entry.getType()) }}
</span>
</div>
<div class="min-w-0 flex-1 bg-gray-100 rounded pb-2 px-3 border hover:border hover:border-blue-400 hover:bg-blue-50 transition-all duration-300 group">
<div class="auditor-audit-history-entry-table min-w-0 flex-1 bg-gray-100 rounded pb-2 px-3 border hover:border hover:border-blue-400 hover:bg-blue-50 transition-all duration-300 group">
<div class="min-w-0 flex-1 pt-1.5 flex justify-between space-x-4">
<div>
<p class="text-sm text-gray-500">{{ helper.summarize(entity, entry) }}</p>
Expand Down Expand Up @@ -51,7 +51,7 @@
<td class="px-3 py-1 whitespace-nowrap text-sm font-medium text-gray-900">
<code class="text-gray-700">{{ key }}</code>
</td>
<td class="px-3 py-1 whitespace-nowrap text-sm text-gray-500">
<td class="px-3 py-1 text-sm text-gray-500">
{% if values.old is defined %}
{% if values.old is null %}
<span class="bg-gray-500 px-2 py-0.5 rounded text-white">null</span>
Expand All @@ -60,7 +60,7 @@
{% endif %}
{% endif %}
</td>
<td class="px-3 py-1 whitespace-nowrap text-sm text-gray-500">
<td class="px-3 py-1 text-sm text-gray-500">
{% if values.new is defined %}
{% if values.new is null %}
<span class="bg-gray-500 px-2 py-0.5 rounded text-white">null</span>
Expand Down
2 changes: 1 addition & 1 deletion src/Resources/views/Audit/transaction.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
<hr class="m-6" />
{% endif %}

<div class="flow-root">
<div class="audit-transactions flow-root">
<div class="mb-6 flex items-center justify-between">
<div>
<code class="text-pink-500">{{ entity }}</code>
Expand Down