Skip to content

Commit

Permalink
updated 2 partials to use the newer dmp_id_for_display helper function.
Browse files Browse the repository at this point in the history
  • Loading branch information
briri committed Aug 16, 2024
1 parent bb4fa38 commit ccddee1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
4 changes: 1 addition & 3 deletions app/views/paginable/plans/_index.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,7 @@
<% if has_dmp_id %>
<td>
<% if plan.dmp_id.present? %>
<a href="<%= plan.dmp_id.value %>" target="_blank" class="has-new-window-popup-info">
<%= id_for_display(id: plan.dmp_id, with_scheme_name: false).html_safe %>
</a>
<%= dmp_id_for_display(dmp_id: plan.dmp_id, without_prefix: true).html_safe %>
<% end %>
</td>
<% end %>
Expand Down
4 changes: 1 addition & 3 deletions app/views/paginable/plans/_org_admin.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,7 @@
<% if has_dmp_id %>
<td>
<% if plan.dmp_id.present? %>
<a href="<%= plan.dmp_id.value %>" target="_blank" class="has-new-window-popup-info">
<%= id_for_display(id: plan.dmp_id, with_scheme_name: false).html_safe %>
</a>
<%= dmp_id_for_display(dmp_id: plan.dmp_id, without_prefix: false).html_safe %>
<% end %>
</td>
<% end %>
Expand Down

0 comments on commit ccddee1

Please sign in to comment.