Skip to content

Commit

Permalink
Create ERB template for OBO Foundry notification
Browse files Browse the repository at this point in the history
  • Loading branch information
jvendetti committed Apr 18, 2024
1 parent 604e5cb commit e3de5fe
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions views/emails/obofoundry_sync.erb
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<% if missing_onts.present? %>
<strong>The following OBO Foundry ontologies are missing from <%= ui_name %>:</strong><br /><br />
<% missing_onts.each do |ont| %>
<a href="<%= ont['homepage'] %>"><%= ont['id'] %></a> (<%= ont['title'] %>)<br /><br />
<% end %>
<% end %>

<% if obsolete_onts.present? %>
<strong>The following OBO Foundry ontologies have been deprecated:</strong><br /><br />
<% obsolete_onts.each do |ont| %>
<a href="<%= ont['homepage'] %>"><%= ont['id'] %></a> (<%= ont['title'] %>)<br /><br />
<% end %>
<% end %>

<% if missing_onts.blank? && obsolete_onts.blank? %>
<%= ui_name %> and the OBO Foundry are in sync.
<% end %>

0 comments on commit e3de5fe

Please sign in to comment.