Skip to content

Commit

Permalink
show both media & media_file_url
Browse files Browse the repository at this point in the history
Supports #381
Supports #245
  • Loading branch information
walter committed Feb 27, 2014
1 parent 82ab47a commit d5a0fa8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/views/questions/_media.html.erb
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
<%- if question.media_file_url.present? %>
<%= question.media_file_url_html %>
<%- elsif question.media.url.present? %>
<%- end %>
<%- if question.media.url.present? %>
<%- if is_image?(question.media.url) %>
<%= cdn_image_tag(question.media.url, class: "question-image") %>
<%- else %>
Expand Down

0 comments on commit d5a0fa8

Please sign in to comment.