accessibility issue of preview pdf
This commit is contained in:
parent
b344e5ee61
commit
834a522029
|
@ -9,8 +9,8 @@
|
|||
<% if @ext != "png" && @ext != "jpg" && @ext != "bmp" %>
|
||||
<object data="<%=@url%>" height="100%" type="application/<%=@ext%>" width="100%">
|
||||
<iframe height="100%" src="<%=@url%>" title="<%=@filename%>" width="100%"></iframe>
|
||||
<img alt="<%=@filename%>" src="<%=@url%>">
|
||||
</object>
|
||||
<embed height="100%" src="<%=@url%>" title="<%=@filename%>" width="100%" type="application/pdf"></embed>
|
||||
<% else %>
|
||||
<img alt="<%=@filename%>" src="<%=@url%>">
|
||||
<% end %>
|
||||
|
|
Loading…
Reference in New Issue