mirror of
https://github.com/foo-dogsquared/website.git
synced 2025-02-07 12:19:36 +00:00
chat-block-processor: insert the content blocks
This commit is contained in:
parent
7f64d47525
commit
fc2aec087d
@ -23,14 +23,19 @@ class ChatBlock < Asciidoctor::Extensions::BlockProcessor
|
||||
<div class="dialogblock dialogblock__avatar">
|
||||
), nil)
|
||||
|
||||
# TODO: Create the image block here
|
||||
avatar_sticker = "#{to_kebab_case attrs['avatar']}/#{to_kebab_case attrs['state']}.#{attrs['avatarstype']}"
|
||||
avatar_img_attrs = {
|
||||
'target' => parent.image_uri(avatar_sticker, 'avatarsdir'),
|
||||
'alt' => attrs['name']
|
||||
}
|
||||
block << (create_image_block block, avatar_img_attrs)
|
||||
|
||||
block << (create_block block, :pass, %(
|
||||
</div>
|
||||
<div class="dialogblock dialogblock__text">
|
||||
), nil)
|
||||
|
||||
# TODO: Insert the content.
|
||||
parse_content block, reader
|
||||
|
||||
block << (create_block block, :pass, %(
|
||||
</div>
|
||||
|
Loading…
Reference in New Issue
Block a user