Skip to content

Commit 758b529

Browse files
committed
Prompt-Status indicator + Breadcrumb correction
1 parent 09081d3 commit 758b529

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

src/templates/form.twig

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,9 +46,9 @@
4646

4747
{% if craft.app.sites.getAllSites()|length > 1 %}
4848
{% for site in craft.app.sites.getAllSites () %}
49-
<li><a href="#" class="doAi" data-hash="{{ hash }}" data-prompt="Translate to {{ site.language }}: " type="button" role="button" aria-label="{{ 'Übersetzen zu {language}'|t('chatgpt-integration', params = {
49+
<li><a href="#" class="doAi" data-hash="{{ hash }}" data-prompt="Translate to {{ site.language }}: " type="button" role="button" aria-label="{{ 'Translate to {language}'|t('chatgpt-integration', params = {
5050
language: site.language
51-
} ) }}">{{ 'Übersetzen zu {language}'|t('chatgpt-integration', params = {
51+
} ) }}">{{ 'Translate to {language}'|t('chatgpt-integration', params = {
5252
language: site.language
5353
} ) }}</a></li>
5454
{% endfor %}

src/templates/prompts/_new.twig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
{% set crumbs = [
88
{ label: craft.chatgptIntegration.getPluginName | t('chatgpt-integration'), url: url('chatgpt-integration') },
9-
{ label: 'Prompts' | t('chatgpt-integration'), url: url('chatgpt-integration/promts') },
9+
{ label: 'Prompts' | t('chatgpt-integration'), url: url('chatgpt-integration/prompts') },
1010
{ label: 'New' | t('chatgpt-integration'), url: url('chatgpt-integration/prompts/new') },
1111
] %}
1212

src/templates/prompts/index.twig

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
{% set crumbs = [
99
{ label: craft.chatgptIntegration.getPluginName, url: url('chatgpt-integration') },
10-
{ label: 'Prompts' | t('chatgpt-integration'), url: url('chatgpt-integration/groups') },
10+
{ label: 'Prompts' | t('chatgpt-integration'), url: url('chatgpt-integration/prompts') },
1111
] %}
1212

1313
{% set prompts = craft.chatgptIntegration.getPrompts() %}
@@ -45,7 +45,7 @@
4545
<td class="id-column">{{ prompt.id }}</td>
4646
<td class="label-column"><a href="{{ cpUrl('chatgpt-integration/prompts/edit/' ~ prompt.id) }}">{{ prompt.label }}</a></td>
4747
<td class="prompt-template-column">{{ prompt.promptTemplate }}</td>
48-
<td class="enabled-column">{{ prompt.enabled }}</td>
48+
<td class="enabled-column"><span class="status {{ prompt.enabled ? 'live' : 'disabled' }}" role="img" aria-label="Status: Live"></span></td>
4949
<td class="edit-column"><a href="{{ cpUrl('chatgpt-integration/prompts/edit/' ~ prompt.id) }}" class="edit icon" title="{{ 'Edit'|t('app') }}" role="button"></a></td>
5050
<td class="delete-column"><a href="{{ cpUrl('chatgpt-integration/prompts/delete/' ~ prompt.id) }}" class="delete icon" title="{{ 'Delete'|t('app') }}" role="button"></a></td>
5151
</tr>

0 commit comments

Comments
 (0)