Skip to content

Commit

Permalink
Merge pull request #70 from Floppy:bylines
Browse files Browse the repository at this point in the history
show creator in model card
  • Loading branch information
Floppy authored Mar 6, 2021
2 parents 83b39dc + 93a6c28 commit 8f72ce5
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 8f72ce5

Please sign in to comment.