mirror of
https://github.com/foo-dogsquared/website.git
synced 2025-01-31 04:58:26 +00:00
Create custom chat dialog template
This commit is contained in:
parent
abd1be0193
commit
b3782881f9
13
templates/chat.html.erb
Normal file
13
templates/chat.html.erb
Normal file
@ -0,0 +1,13 @@
|
||||
<div<%= @id && %( id="#{@id}") %>
|
||||
role="figure"
|
||||
class="dialogblock <%= role %>"
|
||||
data-avatar="<%= attr 'name' %>">
|
||||
<div class="dialogblock__avatar" title="<%= attr 'name' %>">
|
||||
<img src="<%= parent.image_uri (attr :avatarsticker), 'avatarsdir' %>"
|
||||
alt="<%= attr 'name' %>"
|
||||
loading="lazy"/>
|
||||
</div>
|
||||
<div class="dialogblock__text">
|
||||
<%= content %>
|
||||
</div>
|
||||
</div>
|
Loading…
Reference in New Issue
Block a user