cm-cloud/cloud-common-plugin/src/main/resources/templates/file/show-file.html
2020-06-15 12:46:03 +08:00

24 lines
1.1 KiB
HTML

<!doctype html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
<base th:href="${#request.getContextPath() + '/'} ">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta charset="UTF-8"/>
<link rel="stylesheet" type="text/css" href="assets/js/vendor/bootstrap/css/bootstrap.min.css"/>
<link type="text/css" rel="stylesheet" href="assets/css/minimal.css"/>
<link type="text/css" rel="stylesheet" href="assets/css/system.css"/>
</head>
<body>
<div id="content" class="edit-content" style="padding: 5px;">
<div class="tile color">
<img th:if="${type == 'image'}" th:src="@{'route/file/downloadfile/false/'+ ${fileId}}" alt="加载失败" style="width: 100%;"/>
<video th:if="${type == 'video'}" controls style="width:100%;">
<source th:src="@{'route/file/downloadfile/false/'+ ${fileId}}" type="video/mp4">
您的浏览器不支持 video 标签。
</video>
</div>
</div>
<script type="text/javascript" src="assets/js/jquery-3.5.1.min.js"></script>
<script type="text/javascript" src="assets/js/vendor/bootstrap/js/bootstrap.min.js"></script>
</body>
</html>