glacier-web-cli 0.5.0

Command-line tool for creating and running Glacier applications.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
{% props name: String = "", time: String = "", datetime: String = "", align: String = "", ai: bool = false, avatar: Slot = Slot::default(), footer: Slot = Slot::default(), inner_block: Slot %}
{# the inner block is the Bubble; leave name out on consecutive messages from the same sender #}
<div class="ui-message"{% if !align.is_empty() %} data-align="{{ align }}"{% end %}>
  <div class="ui-message-avatar">{{ avatar }}</div>
  <div class="ui-message-content">
    {%- if !name.is_empty() %}
    <div class="ui-message-header"><strong>{{ name }}</strong>{% if ai %}<.ai_badge />{% end %}{% if !time.is_empty() %}<time{% if !datetime.is_empty() %} datetime="{{ datetime }}"{% end %}>{{ time }}</time>{% end %}</div>
    {%- end %}
    {{ inner_block }}
    {%- if !footer.to_html().trim().is_empty() %}
    <div class="ui-message-footer">{{ footer }}</div>
    {%- end %}
  </div>
</div>