[HTML] Render user ID inside data-user-id attribute

Closes #93
This commit is contained in:
Oleksii Holub 2019-06-06 17:43:30 +03:00
parent 0ced31ca4a
commit 2ed374ee5c

View file

@ -67,7 +67,7 @@
</div> </div>
<div class="chatlog__messages"> <div class="chatlog__messages">
{{~ # Author name and timestamp ~}} {{~ # Author name and timestamp ~}}
<span class="chatlog__author-name" title="{{ group.Author.FullName | html.escape }}">{{ group.Author.Name | html.escape }}</span> <span class="chatlog__author-name" title="{{ group.Author.FullName | html.escape }}" data-user-id="{{ group.Author.Id | html.escape }}">{{ group.Author.Name | html.escape }}</span>
{{~ if group.Author.IsBot ~}} {{~ if group.Author.IsBot ~}}
<span class="chatlog__bot-tag">BOT</span> <span class="chatlog__bot-tag">BOT</span>
{{~ end ~}} {{~ end ~}}