Spaces:
Sleeping
Sleeping
ichieh commited on
Commit ·
aa381d8
1
Parent(s): e91bb41
Improve note display in admin panel
Browse files- templates/admin.html +6 -6
templates/admin.html
CHANGED
|
@@ -232,11 +232,11 @@
|
|
| 232 |
<td>${participant.fb_link ? `<a href="${participant.fb_link}" target="_blank">FB連結</a>` : '-'}</td>
|
| 233 |
<td>
|
| 234 |
${participant.introduction ?
|
| 235 |
-
`${participant.introduction.length >
|
| 236 |
-
participant.introduction.substring(0,
|
| 237 |
participant.introduction}
|
| 238 |
<button class="btn btn-link btn-sm" onclick="showFullIntroduction('${participant.introduction.replace(/'/g, "\\'")}')">
|
| 239 |
-
|
| 240 |
</button>`
|
| 241 |
: '-'}
|
| 242 |
</td>
|
|
@@ -248,11 +248,11 @@
|
|
| 248 |
</td>
|
| 249 |
<td>
|
| 250 |
${participant.note ?
|
| 251 |
-
`<span class="note-preview" onclick="editNote(${participant.id}, '${participant.note.replace(/'/g, "\\'")}')">
|
| 252 |
-
${participant.note
|
| 253 |
</span>`
|
| 254 |
: `<button class="btn btn-outline-secondary btn-sm" onclick="editNote(${participant.id}, '')">
|
| 255 |
-
|
| 256 |
</button>`}
|
| 257 |
</td>
|
| 258 |
<td>
|
|
|
|
| 232 |
<td>${participant.fb_link ? `<a href="${participant.fb_link}" target="_blank">FB連結</a>` : '-'}</td>
|
| 233 |
<td>
|
| 234 |
${participant.introduction ?
|
| 235 |
+
`${participant.introduction.length > 5 ?
|
| 236 |
+
participant.introduction.substring(0, 5) + '...' :
|
| 237 |
participant.introduction}
|
| 238 |
<button class="btn btn-link btn-sm" onclick="showFullIntroduction('${participant.introduction.replace(/'/g, "\\'")}')">
|
| 239 |
+
<i class="bi bi-eye"></i>
|
| 240 |
</button>`
|
| 241 |
: '-'}
|
| 242 |
</td>
|
|
|
|
| 248 |
</td>
|
| 249 |
<td>
|
| 250 |
${participant.note ?
|
| 251 |
+
`<span class="note-preview d-inline-block text-truncate" style="max-width: 100px;" onclick="editNote(${participant.id}, '${participant.note.replace(/'/g, "\\'")}')">
|
| 252 |
+
${participant.note}
|
| 253 |
</span>`
|
| 254 |
: `<button class="btn btn-outline-secondary btn-sm" onclick="editNote(${participant.id}, '')">
|
| 255 |
+
<i class="bi bi-pencil"></i>
|
| 256 |
</button>`}
|
| 257 |
</td>
|
| 258 |
<td>
|