From 93a6c286c5f67a6cb526cd29dbeafed028193993 Mon Sep 17 00:00:00 2001 From: James Smith Date: Sat, 6 Mar 2021 13:11:45 +0000 Subject: [PATCH] show creator in model card --- app/views/application/_model.html.erb | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/app/views/application/_model.html.erb b/app/views/application/_model.html.erb index 3f7faec46..512d6aacb 100644 --- a/app/views/application/_model.html.erb +++ b/app/views/application/_model.html.erb @@ -5,8 +5,11 @@ <% end %>
+ <%= link_to "Open", [model.library, model], {class: "btn btn-primary float-end"} %>
<%= model.name %>
- <%= link_to "Open", [model.library, model], {class: "btn btn-primary"} %> + <% if @creator.nil? && model.creator %> + by <%= link_to model.creator.name, model.creator %> + <% end %>