|
40 | 40 | <br>
|
41 | 41 |
|
42 | 42 | <section id="databases" class="">
|
43 |
| - <div class="mb-3 flex items-center justify-between border-b"> |
| 43 | + <div class="mb-3 flex items-center justify-between border-b dark:border-gray-800"> |
44 | 44 | <h2 class="text-2xl font-bold">Databases</h2>
|
45 | 45 | <p class="text-right">Total: <strong><%= @databases.size %></strong></p>
|
46 | 46 | </div>
|
|
59 | 59 | <section id="generations" class="ml-6">
|
60 | 60 | <% database['generations'].each do |generation| %>
|
61 | 61 | <details id="<%= generation['generation'] %>" open="open">
|
62 |
| - <summary class="cursor-pointer rounded p-2 hover:bg-gray-50"> |
| 62 | + <summary class="cursor-pointer rounded p-2 hover:bg-gray-50 dark:hover:bg-gray-900"> |
63 | 63 | <code><%= generation['generation'] %></code>
|
64 | 64 | (<em><%= generation['lag'] %> lag</em>)
|
65 | 65 | </summary>
|
|
85 | 85 | <table class="min-w-full divide-y divide-gray-300">
|
86 | 86 | <thead>
|
87 | 87 | <tr>
|
88 |
| - <th scope="col" class="whitespace-nowrap px-2 py-2 text-left text-sm font-semibold text-gray-900">Created at</th> |
89 |
| - <th scope="col" class="whitespace-nowrap px-2 py-2 text-right text-sm font-semibold text-gray-900">Index</th> |
90 |
| - <th scope="col" class="whitespace-nowrap px-2 py-2 text-right text-sm font-semibold text-gray-900">Size</th> |
| 88 | + <th scope="col" class="whitespace-nowrap px-2 py-2 text-left text-sm font-semibold text-gray-900 dark:text-gray-100">Created at</th> |
| 89 | + <th scope="col" class="whitespace-nowrap px-2 py-2 text-right text-sm font-semibold text-gray-900 dark:text-gray-100">Index</th> |
| 90 | + <th scope="col" class="whitespace-nowrap px-2 py-2 text-right text-sm font-semibold text-gray-900 dark:text-gray-100">Size</th> |
91 | 91 | </tr>
|
92 | 92 | </thead>
|
93 | 93 |
|
94 |
| - <tbody class="bg-white"> |
| 94 | + <tbody class="bg-white dark:bg-black"> |
95 | 95 | <% generation['snapshots'].each do |snapshot| %>
|
96 |
| - <tr class="align-top even:bg-gray-50"> |
97 |
| - <td scope="col" class="whitespace-nowrap px-2 py-2 text-sm text-gray-900"> |
| 96 | + <tr class="align-top even:bg-gray-50 dark:even:bg-gray-900"> |
| 97 | + <td scope="col" class="whitespace-nowrap px-2 py-2 text-sm text-gray-900 dark:text-gray-100"> |
98 | 98 | <abbr title="<%= snapshot['created'] %>" class="underline decoration-dashed decoration-gray-500 cursor-help">
|
99 | 99 | <time datetime="<%= snapshot['created'] %>"><%= DateTime.parse(snapshot['created']).to_formatted_s(:db) %></time>
|
100 | 100 | </abbr>
|
101 | 101 | </td>
|
102 |
| - <td scope="col" class="whitespace-nowrap px-2 py-2 text-sm text-gray-900 text-right"> |
| 102 | + <td scope="col" class="whitespace-nowrap px-2 py-2 text-sm text-gray-900 dark:text-gray-100 text-right"> |
103 | 103 | <%= snapshot['index'] %>
|
104 | 104 | </td>
|
105 |
| - <td scope="col" class="whitespace-nowrap px-2 py-2 text-sm text-gray-900 text-right"> |
| 105 | + <td scope="col" class="whitespace-nowrap px-2 py-2 text-sm text-gray-900 dark:text-gray-100 text-right"> |
106 | 106 | <%= number_to_human_size snapshot['size'] %>
|
107 | 107 | </td>
|
108 | 108 | </tr>
|
|
0 commit comments