Skip to content

Commit 85962f1

Browse files
committed
Fix new proposal form when running without user_profiles
1 parent 3c8fab6 commit 85962f1

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

app/views/proposals/show.html.erb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,11 +26,13 @@ show_private_note = (can_edit?(@proposal) || selector?) && ! @proposal.note_to_o
2626
<%- if SETTINGS.twitter -%>
2727
<meta name="twitter:site" content="<%= SETTINGS.twitter %>">
2828
<%- end -%>
29+
<%- if user_profiles? -%>
2930
<%- if multiple_presenters? && first_user_with_twitter = @proposal.users.detect{|u| !u.twitter.blank?} -%>
3031
<meta name="twitter:creator" content="<%= first_user_with_twitter.normalized_twitter %>">
3132
<%- elsif !multiple_presenters? && !@proposal.user.twitter.blank? -%>
3233
<meta name="twitter:creator" content="<%= @proposal.user.normalized_twitter %>">
3334
<% end -%>
35+
<% end -%>
3436
<% end -%>
3537

3638
<% content_for :scripts do %>

0 commit comments

Comments
 (0)