fix(chat): tag styling

This commit is contained in:
Daniel Kempkens 2023-08-21 00:41:01 +02:00
parent b301a3a726
commit 8900987e2c
Signed by: daniel
SSH key fingerprint: SHA256:Ks/MyhQYcPRQiwMKLAKquWCdCPe3JXlb1WttgnAoSeM
2 changed files with 9 additions and 5 deletions

View file

@ -11,11 +11,9 @@
</h6> </h6>
<%= if length(chat.tags) > 0 do %> <%= if length(chat.tags) > 0 do %>
<p> <%= for tag <- chat.tags do %>
<%= for tag <- chat.tags do %> <span class="badge text-bg-info"><%= tag %></span>
<span class="badge text-bg-info"><%= tag %></span> <% end %>
<% end %>
</p>
<% end %> <% end %>
</div> </div>
</div> </div>

View file

@ -74,6 +74,12 @@
<h6 class="card-subtitle mb-2 text-body-secondary"> <h6 class="card-subtitle mb-2 text-body-secondary">
<%= chat.num_messages %> message(s) - <%= DateTime.to_iso8601(chat.latest_message) %> <%= chat.num_messages %> message(s) - <%= DateTime.to_iso8601(chat.latest_message) %>
</h6> </h6>
<%= if length(chat.tags) > 0 do %>
<%= for tag <- chat.tags do %>
<span class="badge text-bg-info"><%= tag %></span>
<% end %>
<% end %>
</div> </div>
</div> </div>
<% end %> <% end %>