|
| 1 | +<!DOCTYPE html> |
| 2 | +<html lang="en" th:lang="${#locale.language == 'ru' ? 'ru' : 'en'}" |
| 3 | + xmlns="http://www.w3.org/1999/xhtml" |
| 4 | + xmlns:th="http://www.thymeleaf.org" |
| 5 | + xmlns:sec="http://www.thymeleaf.org/thymeleaf-extras-springsecurity3"> |
| 6 | + <head> |
| 7 | + <meta charset="utf-8" /> |
| 8 | + <meta name="viewport" content="width=device-width, initial-scale=1.0" /> |
| 9 | + <meta http-equiv="X-UA-Compatible" content="IE=edge" /> |
| 10 | + <meta name="robots" content="noindex" /> |
| 11 | + <title th:text="|#{t_my_stamps}: #{t_import_requests}|">My stamps: import requests</title> |
| 12 | + <link rel="shortcut icon" type="image/x-icon" href="../../../../favicon.ico" th:href="${FAVICON_ICO}" /> |
| 13 | + <link rel="stylesheet" href="http://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" th:href="${BOOTSTRAP_CSS}" /> |
| 14 | + <link rel="stylesheet" href="https://cdn.rawgit.com/usrz/bootstrap-languages/3ac2a3d2b27ac43a471cd99e79d378a03b2c6b5f/languages.min.css" th:href="${BOOTSTRAP_LANGUAGE}" /> |
| 15 | + <link rel="stylesheet" href="../../../static/styles/main.css" th:href="${MAIN_CSS}" /> |
| 16 | + </head> |
| 17 | + <body> |
| 18 | + <div class="container-fluid"> |
| 19 | + <div class="row" id="header"> |
| 20 | + <div id="logo" class="col-sm-9 vcenter"> |
| 21 | + <a href="../../site/index.html" th:href="'/'" th:text="#{t_my_stamps}">My stamps</a> |
| 22 | + </div><!-- |
| 23 | + |
| 24 | + --><div class="col-sm-1 vcenter" |
| 25 | + th:with="lang=${#locale.language == 'en' ? 'ru' : 'en'},langName=${#locale.language == 'en' ? 'Русский' : 'English'}"> |
| 26 | + <span class="lang-xs" lang="ru" |
| 27 | + th:lang="${lang}"></span> |
| 28 | + <a href="javascript:void(0)" hreflang="ru" |
| 29 | + th:href="|?lang=${lang}|" th:hreflang="${lang}" th:text="${langName}">Русский</a> |
| 30 | + </div><!-- |
| 31 | + |
| 32 | + --><div id="user_bar" class="col-sm-2 vcenter"> |
| 33 | + <ul class="list-unstyled"> |
| 34 | + <li sec:authorize="isAuthenticated()"> |
| 35 | + <i class="glyphicon glyphicon-user"></i> |
| 36 | + <a sec:authentication="principal.userName" |
| 37 | + href="../../collection/info.html" |
| 38 | + title="Open my collection" |
| 39 | + th:title="#{t_open_my_collection}" |
| 40 | + th:href="@{${INFO_COLLECTION_PAGE}(slug=${#authentication.principal.userCollectionSlug})}"> |
| 41 | + John Doe |
| 42 | + </a> |
| 43 | + </li> |
| 44 | + <!--/*/ |
| 45 | + <li sec:authorize="isAnonymous()"> |
| 46 | + <a href="../../account/auth.html" th:href="@{${AUTHENTICATION_PAGE}}" th:text="#{t_enter}">Sign in</a> |
| 47 | + </li> |
| 48 | + /*/--> |
| 49 | + <li sec:authorize="isAuthenticated()"> |
| 50 | + <form id="logout-form" method="get" action="../../site/index.html" class="no-margin" th:method="post" th:action="@{${LOGOUT_PAGE}}"> |
| 51 | + <i class="glyphicon glyphicon-share"></i> <input type="submit" value="Sign out" class="btn btn-link no-padding" th:value="#{t_logout}" /> |
| 52 | + </form> |
| 53 | + </li> |
| 54 | + <!--/*/ |
| 55 | + <li sec:authorize="isAnonymous()"> |
| 56 | + <a href="../../account/register.html" th:href="@{${REGISTRATION_PAGE}}" th:text="#{t_register}">Register</a> |
| 57 | + </li> |
| 58 | + /*/--> |
| 59 | + </ul> |
| 60 | + </div> |
| 61 | + </div> |
| 62 | + <div class="row"> |
| 63 | + <div id="content" class="col-sm-8 col-sm-offset-2" th:with="header=#{t_import_requests}"> |
| 64 | + <h3 th:text="${#strings.capitalize(header)}"> |
| 65 | + Import requests |
| 66 | + </h3> |
| 67 | + |
| 68 | + <!--/*/ |
| 69 | + <p class="text-center" th:if="${#lists.isEmpty(requests)}" th:text="#{t_no_import_requests}"> |
| 70 | + No import requests |
| 71 | + </p> |
| 72 | + /*/--> |
| 73 | + |
| 74 | + <div class="col-sm-12 table-responsive" th:if="${not #lists.isEmpty(requests)}"> |
| 75 | + <table class="table table-bordered table-striped"> |
| 76 | + <thead> |
| 77 | + <tr> |
| 78 | + <th th:text="#{t_date}">Date</th> |
| 79 | + <th th:text="#{t_status}">Status</th> |
| 80 | + <th th:text="#{t_url}">URL</th> |
| 81 | + </tr> |
| 82 | + </thead> |
| 83 | + <tbody th:remove="all-but-first"> |
| 84 | + <tr th:each="request : ${requests}"> |
| 85 | + <td th:text="${#dates.format(request.updatedAt, 'dd.MM.yyyy HH:mm:ss')}">19.12.2017 21:57:12</td> |
| 86 | + <td th:switch="${request.status}"> |
| 87 | + <!--/*/ |
| 88 | + <span class="label label-default" th:text="${request.status}" th:case=" 'Unprocessed' ">Unprocessed</span> |
| 89 | + <span class="label label-info" th:text="${request.status}" th:case=" 'DownloadingSucceeded' ">DownloadingSucceeded</span> |
| 90 | + <span class="label label-danger" th:text="${request.status}" th:case=" 'DownloadingFailed' ">DownloadingFailed</span> |
| 91 | + /*/--> |
| 92 | + <span class="label label-info" th:text="${request.status}" th:case=" 'ParsingSucceeded' ">ParsingSucceeded</span> |
| 93 | + <!--/*/ |
| 94 | + <span class="label label-danger" th:text="${request.status}" th:case=" 'ParsingFailed' ">ParsingFailed</span> |
| 95 | + <span class="label label-success" th:text="${request.status}" th:case=" 'ImportSucceeded' ">ImportSucceeded</span> |
| 96 | + <span class="label label-warning" th:text="${request.status}" th:case="*">Unknown</span> |
| 97 | + /*/--> |
| 98 | + </td> |
| 99 | + <td> |
| 100 | + <a href="./info.html" th:href="@{${REQUEST_IMPORT_PAGE}(id=${request.id})}" th:text="${request.url}"> |
| 101 | + http://example.com/my-first-series.html |
| 102 | + </a> |
| 103 | + </td> |
| 104 | + </tr> |
| 105 | + <tr> |
| 106 | + <td>19.12.2017 21:50:01</td> |
| 107 | + <td><span class="label label-success">ImportSucceeded</span></td> |
| 108 | + <td><a href="./info.html">http://example.com/my-second-series.html</a></td> |
| 109 | + </tr> |
| 110 | + <tr> |
| 111 | + <td>19.12.2017 21:47:05</td> |
| 112 | + <td><span class="label label-danger">ParsingFailed</span></td> |
| 113 | + <td><a href="./info.html">http://example.com/my-third-series.html</a></td> |
| 114 | + </tr> |
| 115 | + </tbody> |
| 116 | + </table> |
| 117 | + </div> |
| 118 | + |
| 119 | + </div> |
| 120 | + </div> |
| 121 | + <div class="row"> |
| 122 | + <footer class="col-sm-12 text-right"> |
| 123 | + <i class="glyphicon glyphicon-envelope"></i> |
| 124 | + <a href=" mailto:[email protected]" title=" Write e-mail" th:href=" |mailto:#{t_site_author_email}|" th:title=" #{t_write_email}" th:text=" #{t_site_author_name}" >Slava Semushin </a>, 2009-2017 |
| 125 | + </footer> |
| 126 | + </div> |
| 127 | + </div> |
| 128 | + |
| 129 | + <!-- Placed at the end of the document so the pages load faster --> |
| 130 | + <script src="http://yandex.st/jquery/1.9.1/jquery.min.js" th:src="${JQUERY_JS}"></script> |
| 131 | + <script src="http://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js" th:src="${BOOTSTRAP_JS}"></script> |
| 132 | + </body> |
| 133 | +</html> |
0 commit comments