Fixed media not showing up

This commit is contained in:
Ziver Koc 2018-10-16 00:17:49 +02:00
parent 886b4cdb88
commit 3024826f57
7 changed files with 35 additions and 13 deletions

View file

@ -1,6 +1,6 @@
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@taglib prefix="t" tagdir="/WEB-INF/tags" %>
<%@ page contentType="text/html" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="t" tagdir="/WEB-INF/tags" %>
<t:header />
@ -38,7 +38,7 @@
<div class="grid image-grid">
<c:forEach items="${media}" var="item">
<div class="grid-item photo-thumb col-md-3 col-sm-6 col-xs-12">
<img class="img-responsive" src="${ContentServlet.getMediaUrl(item, Media.Size.SMALL)}"/>
<img class="img-responsive" src="${item.getUrlSmall()}"/>
</div>
</c:forEach>
</div>

View file

@ -1,6 +1,6 @@
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@taglib prefix="t" tagdir="/WEB-INF/tags" %>
<%@ page contentType="text/html" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="t" tagdir="/WEB-INF/tags" %>
<t:header>
<link rel="stylesheet" href="css/form-elements.css">

View file

@ -1,6 +1,6 @@
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@taglib prefix="t" tagdir="/WEB-INF/tags" %>
<%@ page contentType="text/html" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="t" tagdir="/WEB-INF/tags" %>
<t:header>
<link rel="stylesheet" href="css/form-elements.css">