Skip to content

Commit 4a32612

Browse files
committed
Conditionally display the geo form
While GeoData is the only TIMDEX UI app to use full record views, USE will likely include this feature in the future.
1 parent 691d294 commit 4a32612

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

app/views/record/view.html.erb

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,13 @@
77
<%= render(partial: 'shared/error', collection: @errors) %>
88

99
<%= render(partial: 'shared/site_title') %>
10-
<%= render(partial: 'search/form_geo')%>
10+
11+
<% if Feature.enabled?(:geodata) %>
12+
<%= render(partial: 'search/form_geo')%>
13+
<% else %>
14+
<%= render(partial: 'search/form') %>
15+
<% end %>
16+
1117
<%= render(partial: 'back_button') %>
1218

1319
<% if @record.nil? %>

0 commit comments

Comments
 (0)