Skip to content

Commit

Permalink
hide data accessed if not provided
Browse files Browse the repository at this point in the history
fixes #39
  • Loading branch information
wkdewey committed Oct 11, 2024
1 parent e150e8e commit c3bf519
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion app/views/items/_citation.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,8 @@
<% firstname = author.split(" ")[0..-1].join(" ") %>
<%= lastname %>, <%= firstname %>.
<% end %>
"<%= title %>." <cite><%= publisher %></cite>, <%= Date.parse(date).year %>, <%= link_to nil, page_url %>. Accessed <%= accessed %>
"<%= title %>." <cite><%= publisher %></cite>, <%= Date.parse(date).year %>, <%= link_to nil, page_url %>.
<% if accessed %>
Accessed <%= accessed %>
<% end %>
</p>

0 comments on commit c3bf519

Please sign in to comment.