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" %>
|
<% if @ext != "png" && @ext != "jpg" && @ext != "bmp" %>
|
||||||
<object data="<%=@url%>" height="100%" type="application/<%=@ext%>" width="100%">
|
<object data="<%=@url%>" height="100%" type="application/<%=@ext%>" width="100%">
|
||||||
<iframe height="100%" src="<%=@url%>" title="<%=@filename%>" width="100%"></iframe>
|
<iframe height="100%" src="<%=@url%>" title="<%=@filename%>" width="100%"></iframe>
|
||||||
|
<img alt="<%=@filename%>" src="<%=@url%>">
|
||||||
</object>
|
</object>
|
||||||
<embed height="100%" src="<%=@url%>" title="<%=@filename%>" width="100%" type="application/pdf"></embed>
|
|
||||||
<% else %>
|
<% else %>
|
||||||
<img alt="<%=@filename%>" src="<%=@url%>">
|
<img alt="<%=@filename%>" src="<%=@url%>">
|
||||||
<% end %>
|
<% end %>
|
||||||
|
|
Loading…
Reference in New Issue