tududi/app/views/notes/_note.erb
2023-11-20 12:42:47 +02:00

28 lines
974 B
Text
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<div class="border-0 bg-white shadow-sm mb-1 px-2 py-2 d-flex align-items-center note-item" data-note-id="<%= note.id %>">
<i class="fs-6 bi-journal-text me-2"></i>
<div class="row flex-grow-1 align-items-center">
<div class="col-md-4">
<div class="note-item">
<a href="#" class="link-dark  fs-5 text-decoration-none">
<%= note.title %>
</a>
<% if note.tags %>
<div class="ms-3 opacity-75 d-inline-block">
<% note.tags.each do |tag| %>
<span class="badge bg-primary-subtle text-primary rounded">
<%= tag.name %>
</span>
<% end %>
</div>
<% end %>
</div>
</div>
<div class="col-md-3">
<% if note.project %>
<a href="/project/<%= note.project.id %>" class="badge border text-decoration-none link-dark bg-light">
<%= note.project.name %>
</a>
<% end %>
</div>
</div>
</div>