Add title field to EmailTemplate model and update UI
This commit is contained in:
@ -40,7 +40,7 @@ export default async function AdminEmailTemplates() {
|
||||
scope="col"
|
||||
className="px-3 py-3.5 text-left text-sm font-semibold text-gray-900"
|
||||
>
|
||||
Content Preview
|
||||
Title
|
||||
</th>
|
||||
<th
|
||||
scope="col"
|
||||
@ -76,9 +76,7 @@ export default async function AdminEmailTemplates() {
|
||||
href={`/admin/email-templates/detail/${template.id}`}
|
||||
className="text-indigo-600 hover:text-indigo-900"
|
||||
>
|
||||
{template.content.length > 100
|
||||
? template.content.substring(0, 100) + '...'
|
||||
: template.content}
|
||||
{template.title}
|
||||
</Link>
|
||||
</td>
|
||||
<td className="whitespace-nowrap px-3 py-4 text-sm text-gray-500">
|
||||
|
||||
Reference in New Issue
Block a user