Skip to content

Commit

Permalink
Fix missing wwwroot for icons
Browse files Browse the repository at this point in the history
  • Loading branch information
PhMemmel committed Dec 28, 2024
1 parent 7aafb6f commit 869f205
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion templates/dialog_modal.mustache
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ along with Moodle. If not, see <http://www.gnu.org/licenses/>.
</div>
<div class="block_ai_chat-input-wrapper">
<div class="block_ai_chat-input">
<img src="{{{ config.wwwroot }}}/blocks/ai_chat/pix/ai-icon.svg" alt="" class="ai_chat_icon">
<img src="{{globals.config.wwwroot}}/blocks/ai_chat/pix/ai-icon.svg" alt="" class="ai_chat_icon">
<textarea class="form-control" id="block_ai_chat-input-id" rows="1" placeholder="{{#str}} input, block_ai_chat {{/str}}"></textarea>
<button type="submit" id="block_ai_chat-submit-id" class="btn btn-primary">
<i class="icon fa fa-arrow-right ml-2" aria-hidden="true"></i>
Expand Down
4 changes: 2 additions & 2 deletions templates/floatingbutton.mustache
Original file line number Diff line number Diff line change
Expand Up @@ -27,5 +27,5 @@
}}
<button title="{{title}}" class="btn btn-icon icon-size-3" id="ai_chat_button"
aria-haspopup="dialog" aria-expanded="false" aria-label="{{arialabel}}">
<img src="{{{ config.wwwroot }}}/blocks/ai_chat/pix/ai-icon.svg" alt="" class="ai_chat_icon">
</button>
<img src="{{config.wwwroot}}/blocks/ai_chat/pix/ai-icon.svg" alt="" class="ai_chat_icon">
</button>
4 changes: 2 additions & 2 deletions templates/message.mustache
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
<div class="message ai">
{{/sender}}
<div class="content">
<img src="{{{ config.wwwroot }}}/blocks/ai_chat/pix/ai-icon.svg" alt="" class="ai_chat_icon mr-2">
<img src="{{globals.config.wwwroot}}/blocks/ai_chat/pix/ai-icon.svg" alt="" class="ai_chat_icon mr-2">
<div class="copiedtoast">{{#str}} copied, block_ai_chat {{/str}}</div>
<a class="copy"><i class="fa fa-copy"></i></a>
<div class="text">
Expand All @@ -45,7 +45,7 @@
{{^answer}}
<div class="message ai">
<div class="content awaitanswer">
<img src="{{{ config.wwwroot }}}/blocks/ai_chat/pix/ai-icon.svg" alt="" class="ai_chat_icon mr-2">
<img src="{{globals.config.wwwroot}}/blocks/ai_chat/pix/ai-icon.svg" alt="" class="ai_chat_icon mr-2">
<div class="copiedtoast">{{#str}} copied, block_ai_chat {{/str}}</div>
<a class="copy"><i class="fa fa-copy"></i></a>
<div class="text small">
Expand Down

0 comments on commit 869f205

Please sign in to comment.