Skip to content

Commit

Permalink
show creator in model card
Browse files Browse the repository at this point in the history
  • Loading branch information
Floppy committed Mar 6, 2021
1 parent 53ac36e commit 93a6c28
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion app/views/application/_model.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,11 @@
</canvas>
<% end %>
<div class="card-body">
<%= link_to "Open", [model.library, model], {class: "btn btn-primary float-end"} %>
<h5 class="card-title"><%= model.name %></h5>
<%= link_to "Open", [model.library, model], {class: "btn btn-primary"} %>
<% if @creator.nil? && model.creator %>
<small>by <%= link_to model.creator.name, model.creator %></small>
<% end %>
</div>
</div>
</div>

0 comments on commit 93a6c28

Please sign in to comment.