|
21 | 21 | {{ activity.getStartDate().format(' j, Y') }} |
22 | 22 | </span> |
23 | 23 | <button type="button" |
24 | | - class="close text-gray-400 bg-transparent hover:bg-gray-200 hover:text-gray-900 rounded-lg text-sm w-8 h-8 ms-auto inline-flex justify-center items-center dark:hover:bg-gray-600 dark:hover:text-white"> |
| 24 | + class="close text-gray-400 bg-transparent hover:bg-gray-200 hover:text-gray-900 rounded-lg text-sm w-8 h-8 ms-auto inline-flex justify-center items-center"> |
25 | 25 | <svg class="w-3 h-3" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 14 14"> |
26 | 26 | <path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" |
27 | 27 | d="m1 1 6 6m0 0 6 6M7 7l6-6M7 7l-6 6"/> |
|
38 | 38 | <div class="grid grid-cols-1 lg:grid-cols-2 gap-4"> |
39 | 39 | <div> |
40 | 40 | <div class="mb-4 grid grid-cols-6 gap-2"> |
41 | | - <div class="flex flex-col items-center justify-center overflow-hidden px-2 py-2 border border-gray-200 rounded-lg shadow dark:bg-gray-800 dark:border-gray-600"> |
| 41 | + <div class="flex flex-col items-center justify-center overflow-hidden px-2 py-2 border border-gray-200 rounded-lg shadow"> |
42 | 42 | <div class="text-center"> |
43 | 43 | <dd class="text-xs text-gray-500">Distance</dd> |
44 | 44 | <dt class="font-extrabold">{{ renderComponent('measurement', {'measurement': activity.getDistance(), 'precision': 0}) }}</dt> |
45 | 45 | </div> |
46 | 46 | </div> |
47 | | - <div class="flex flex-col items-center justify-center overflow-hidden px-2 py-2 border border-gray-200 rounded-lg shadow dark:bg-gray-800 dark:border-gray-600"> |
| 47 | + <div class="flex flex-col items-center justify-center overflow-hidden px-2 py-2 border border-gray-200 rounded-lg shadow"> |
48 | 48 | <div class="text-center"> |
49 | 49 | <dd class="text-xs text-gray-500">Moving time</dd> |
50 | 50 | <dt class="font-extrabold">{{ activity.getMovingTimeFormatted() }}</dt> |
51 | 51 | </div> |
52 | 52 | </div> |
53 | | - <div class="flex flex-col items-center justify-center overflow-hidden px-2 py-2 border border-gray-200 rounded-lg shadow dark:bg-gray-800 dark:border-gray-600"> |
| 53 | + <div class="flex flex-col items-center justify-center overflow-hidden px-2 py-2 border border-gray-200 rounded-lg shadow"> |
54 | 54 | <div class="text-center"> |
55 | 55 | <dd class="text-xs text-gray-500">Elevation</dd> |
56 | 56 | <dt class="font-extrabold">{{ renderComponent('measurement', {'measurement': activity.getElevation(), 'precision': 0}) }}</dt> |
57 | 57 | </div> |
58 | 58 | </div> |
59 | | - <div class="flex flex-col items-center justify-center overflow-hidden px-2 py-2 border border-gray-200 rounded-lg shadow dark:bg-gray-800 dark:border-gray-600"> |
| 59 | + <div class="flex flex-col items-center justify-center overflow-hidden px-2 py-2 border border-gray-200 rounded-lg shadow"> |
60 | 60 | <div class="text-center"> |
61 | 61 | <dd class="text-xs text-gray-500">Calories</dd> |
62 | 62 | <dt class="font-extrabold">{{ activity.getCalories() }}</dt> |
63 | 63 | </div> |
64 | 64 | </div> |
65 | | - <div class="flex flex-col items-center justify-center overflow-hidden px-2 py-4 border border-gray-200 rounded-lg shadow dark:bg-gray-800 dark:border-gray-600"> |
| 65 | + <div class="flex flex-col items-center justify-center overflow-hidden px-2 py-4 border border-gray-200 rounded-lg shadow"> |
66 | 66 | <div class="text-center"> |
67 | 67 | <dd class="text-xs text-gray-500">Gear</dd> |
68 | 68 | <dt class="text-xs font-extrabold">{{ activity.getGearName() ?: 'Other' }}</dt> |
69 | 69 | </div> |
70 | 70 | </div> |
71 | | - <div class="flex flex-col items-center justify-center overflow-hidden px-2 py-4 border border-gray-200 rounded-lg shadow dark:bg-gray-800 dark:border-gray-600"> |
| 71 | + <div class="flex flex-col items-center justify-center overflow-hidden px-2 py-4 border border-gray-200 rounded-lg shadow"> |
72 | 72 | <div class="text-center"> |
73 | 73 | <dd class="text-xs text-gray-500">Device</dd> |
74 | 74 | <dt class="text-xs font-extrabold">{{ activity.getDeviceName() ?: 'None' }}</dt> |
|
95 | 95 | </a> |
96 | 96 | </div> |
97 | 97 | <div data-popover id="popover-image-{{ loop.index }}" role="tooltip" |
98 | | - class="z-[1000] w-[35rem] absolute invisible inline-block text-sm text-gray-500 transition-opacity duration-300 bg-white border border-gray-200 rounded-lg shadow-sm opacity-0 dark:bg-gray-800 dark:border-gray-600"> |
| 98 | + class="z-[1000] w-[35rem] absolute invisible inline-block text-sm text-gray-500 transition-opacity duration-300 bg-white border border-gray-200 rounded-lg shadow-sm opacity-0"> |
99 | 99 | <img class="h-auto max-w-full rounded-lg lazy" |
100 | 100 | src="{{ renderComponent('placeholder-image') }}" data-src="{{ imagePath }}" |
101 | 101 | alt="Activity image"/> |
102 | 102 | </div> |
103 | 103 | {% endfor %} |
104 | 104 | </div> |
105 | 105 | {% endif %} |
106 | | - <div class="mb-4 relative overflow-x-auto px-2 py-2 border border-gray-200 rounded-lg shadow dark:bg-gray-800 dark:border-gray-600"> |
| 106 | + <div class="mb-4 relative overflow-x-auto px-2 py-2 border border-gray-200 rounded-lg shadow"> |
107 | 107 | <table class="w-full text-sm text-center text-gray-500"> |
108 | 108 | <thead class="text-xs text-gray-700 uppercase"> |
109 | 109 | <tr> |
|
125 | 125 | </tr> |
126 | 126 | </thead> |
127 | 127 | <tbody> |
128 | | - <tr class="border-b dark:border-gray-600"> |
| 128 | + <tr class="border-b"> |
129 | 129 | <th class="px-2 py-2"> |
130 | 130 | Avg |
131 | 131 | </th> |
|
195 | 195 | </table> |
196 | 196 | </div> |
197 | 197 | {% if activity.hasDetailedPowerData() %} |
198 | | - <div class="relative overflow-x-auto px-2 py-2 border border-gray-200 rounded-lg shadow dark:bg-gray-800 dark:border-gray-600"> |
| 198 | + <div class="relative overflow-x-auto px-2 py-2 border border-gray-200 rounded-lg shadow"> |
199 | 199 | <table class="w-full text-sm text-center text-gray-500"> |
200 | 200 | <thead class="text-xs text-gray-700 uppercase"> |
201 | 201 | {% set timeIntervals = [5, 60, 300, 1200] %} |
|
216 | 216 | {% for timeInterval in timeIntervals %} |
217 | 217 | {% set powerOutput = activity.getBestAveragePowerForTimeInterval(timeInterval) %} |
218 | 218 | {% if powerOutput %} |
219 | | - <td class="px-2 py-2 first:border-l-0 border-l dark:border-gray-600"> |
| 219 | + <td class="px-2 py-2 first:border-l-0 border-l"> |
220 | 220 | {{ powerOutput.getPower() }}<span class="text-xs">w</span> |
221 | 221 | </td> |
222 | | - <td class="px-2 py-2 last:border-r-0 border-r dark:border-gray-600"> |
| 222 | + <td class="px-2 py-2 last:border-r-0 border-r"> |
223 | 223 | {{ powerOutput.getRelativePower() }}<span class="text-xs">w/kg</span> |
224 | 224 | </td> |
225 | 225 | {% endif %} |
|
252 | 252 | {% if segmentEfforts|length > 0 %} |
253 | 253 | <div class="grid grid-cols-1 gap-4"> |
254 | 254 | <div id="accordion-segments" data-accordion="collapse" |
255 | | - data-active-classes="text-gray-900 dark:text-white" |
256 | | - data-inactive-classes="text-gray-900 dark:text-white"> |
| 255 | + data-active-classes="text-gray-900" |
| 256 | + data-inactive-classes="text-gray-900"> |
257 | 257 | <a id="accordion-segments-heading" data-accordion-target="#accordion-segments-body" aria-expanded="false" |
258 | 258 | aria-controls="accordion-segments-body" |
259 | | - class="hover:underline cursor-pointer flex items-center gap-3 justify-between w-full px-2 py-3 font-medium rtl:text-right text-gray-900 dark:text-white"> |
| 259 | + class="hover:underline cursor-pointer flex items-center gap-3 justify-between w-full px-2 py-3 font-medium rtl:text-right text-gray-900"> |
260 | 260 | <span>Segments ({{ segmentEfforts|length }})</span> |
261 | 261 | <svg data-accordion-icon class="w-3 h-3 shrink-0" aria-hidden="true" |
262 | 262 | xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 10 6"> |
|
267 | 267 | <div id="accordion-segments-body" class="hidden relative overflow-x-auto" |
268 | 268 | aria-labelledby="accordion-segments-heading"> |
269 | 269 | <table class="w-full text-sm text-center text-gray-500"> |
270 | | - <thead class="text-xs text-gray-700 uppercase bg-gray-50 dark:bg-gray-800"> |
| 270 | + <thead class="text-xs text-gray-700 uppercase bg-gray-50"> |
271 | 271 | <tr> |
272 | 272 | <th scope="col" class="px-2 py-3 text-left"> |
273 | 273 |
|
|
296 | 296 | </thead> |
297 | 297 | <tbody> |
298 | 298 | {% for segmentEffort in segmentEfforts %} |
299 | | - <tr class="{{ cycle(['bg-white border-b dark:bg-gray-900 dark:border-gray-700', 'border-b bg-gray-50 dark:bg-gray-800 dark:border-gray-700'], loop.index0) }}"> |
| 299 | + <tr class="{{ cycle(['bg-white border-b', 'border-b bg-gray-50'], loop.index0) }}"> |
300 | 300 | <td class="px-2 py-2 text-left"> |
301 | 301 | <a href="#" data-model-content-url="segment/{{ segmentEffort.getSegmentId() }}.html" |
302 | | - class="flex items-center gap-x-1 font-medium text-blue-600 dark:text-blue-500 hover:underline" |
| 302 | + class="flex items-center gap-x-1 font-medium text-blue-600 hover:underline" |
303 | 303 | rel="nofollow"> |
304 | 304 | <span class="truncate">{{ segmentEffort.getName()|ellipses(50) }}</span> |
305 | 305 | </a> |
|
0 commit comments