diff --git a/internal/webserver/tpl/tweet_page_includes/text_with_entities.tpl b/internal/webserver/tpl/tweet_page_includes/text_with_entities.tpl new file mode 100644 index 0000000..ea2d59f --- /dev/null +++ b/internal/webserver/tpl/tweet_page_includes/text_with_entities.tpl @@ -0,0 +1,18 @@ +{{define "text-with-entities"}} + {{range (splitList "\n" .)}} +
+ {{range (get_entities .)}} + {{if (eq .EntityType 1)}} + + @{{.Contents}} + {{else if (eq .EntityType 2)}} + + #{{.Contents}} + {{else}} + + {{.Contents}} + {{end}} + {{end}} +
+ {{end}} +{{end}}