File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ app.title =Calories management
2+ app.home =Home
3+ app.footer =Internship <a href =" https://github.com/JavaOPs/topjava" target =_blank>Spring 5/JPA Enterprise (Topjava)</a> application
4+ app.login =Login as
5+ user.title =Users
6+ user.name =Name
7+ user.email =Email
8+ user.roles =Roles
9+ user.active =Active
10+ user.registered =Registered
11+ meal.title =Meals
12+ common.select =Select
Original file line number Diff line number Diff line change 1+ app.title =Подсчет калорий
2+ app.home =Главная
3+ app.footer =Приложение стажировки <a href =" https://github.com/JavaOPs/topjava" target =_blank>Spring 5/JPA Enterprise (Topjava)</a>
4+ app.login =Зайти как
5+ user.title =Пользователи
6+ user.name =Имя
7+ user.email =Почта
8+ user.roles =Роли
9+ user.active =Активный
10+ user.registered =Зарегистрирован
11+ meal.title =Моя еда
12+ common.select =Выбрать
Original file line number Diff line number Diff line change @@ -22,3 +22,11 @@ tr[data-mealExcess="false"] {
2222tr [data-mealExcess = "true" ] {
2323 color : red;
2424}
25+
26+ header , footer {
27+ background : none repeat scroll 0 0 # A6C9E2 ;
28+ color : # 2E6E9E ;
29+ font-size : 20px ;
30+ padding : 5px 20px ;
31+ margin : 6px 0 ;
32+ }
Original file line number Diff line number Diff line change 1+ <%@page contentType =" text/html" pageEncoding =" UTF-8" %>
2+ <%@ taglib prefix =" fmt" uri =" http://java.sun.com/jsp/jstl/fmt" %>
3+
4+ <fmt:setBundle basename =" messages.app" />
5+ <header ><a href =" meals" ><fmt:message key =" app.title" /></a > | <a href =" users" ><fmt:message key =" user.title" /></a > | <a href =" index.jsp" ><fmt:message key =" app.home" /></a ></header >
Original file line number Diff line number Diff line change 1+ <%@page contentType =" text/html" pageEncoding =" UTF-8" %>
2+ <%@ taglib prefix =" fmt" uri =" http://java.sun.com/jsp/jstl/fmt" %>
3+ <fmt:setBundle basename =" messages.app" />
4+ <hr >
5+ <footer ><fmt:message key =" app.footer" /></footer >
Original file line number Diff line number Diff line change 1+ <%@page contentType =" text/html" pageEncoding =" UTF-8" %>
2+ <%@ taglib prefix =" fmt" uri =" http://java.sun.com/jsp/jstl/fmt" %>
3+ <%@ taglib prefix =" c" uri =" http://java.sun.com/jstl/core" %>
4+ <fmt:setBundle basename =" messages.app" />
5+
6+ <head >
7+ <meta http-equiv =" Content-Type" content =" text/html; charset=UTF-8" >
8+ <title ><fmt:message key =" app.title" /></title >
9+ <link rel =" stylesheet" href =" css/style.css" >
10+ </head >
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1+ <%@ page contentType =" text/html;charset=UTF-8" language =" java" %>
2+ <%@ taglib prefix =" c" uri =" http://java.sun.com/jsp/jstl/core" %>
3+ <%@ taglib prefix =" fmt" uri =" http://java.sun.com/jsp/jstl/fmt" %>
4+
5+ <fmt:setBundle basename =" messages.app" />
6+
7+ <html >
8+ <jsp:include page =" fragments/headTag.jsp" />
9+ <body >
10+ <jsp:include page =" fragments/bodyHeader.jsp" />
11+ <br >
12+ <section >
13+ <form method =" post" action =" users" >
14+ <fmt:message key =" app.login" />: <select name =" userId" >
15+ <option value =" 100000" selected >User</option >
16+ <option value =" 100001" >Admin</option >
17+ </select >
18+ <button type =" submit" ><fmt:message key =" common.select" /></button >
19+ </form >
20+ </section >
21+ <jsp:include page =" fragments/footer.jsp" />
22+ </body >
23+ </html >
Original file line number Diff line number Diff line change 99</head >
1010<body >
1111<section >
12- <h3 ><a href =" index.html " >Home</a ></h3 >
12+ <h3 ><a href =" index.jsp " >Home</a ></h3 >
1313 <hr />
1414 <h2 >Meals</h2 >
1515 <form method =" get" action =" meals" >
Original file line number Diff line number Diff line change 11<%@ page contentType =" text/html;charset=UTF-8" language =" java" %>
2+ <%@ taglib prefix =" c" uri =" http://java.sun.com/jsp/jstl/core" %>
3+ <%@ taglib prefix =" fmt" uri =" http://java.sun.com/jsp/jstl/fmt" %>
4+
5+ <fmt:setBundle basename =" messages.app" />
6+
27<html >
3- <head >
4- <title >Users</title >
5- </head >
8+ <jsp:include page =" fragments/headTag.jsp" />
69<body >
7- <h3 ><a href =" index.html" >Home</a ></h3 >
8- <hr >
9- <h2 >Users</h2 >
10+ <jsp:include page =" fragments/bodyHeader.jsp" />
11+
12+ <section >
13+ <h3 ><fmt:message key =" user.title" /></h3 >
14+
15+ <table border =" 1" cellpadding =" 8" cellspacing =" 0" >
16+ <thead >
17+ <tr >
18+ <th ><fmt:message key =" user.name" /></th >
19+ <th ><fmt:message key =" user.email" /></th >
20+ <th ><fmt:message key =" user.roles" /></th >
21+ <th ><fmt:message key =" user.active" /></th >
22+ <th ><fmt:message key =" user.registered" /></th >
23+ </tr >
24+ </thead >
25+ <c:forEach items =" ${ users } " var =" user" >
26+ <jsp:useBean id =" user" scope =" page" type =" ru.javawebinar.topjava.model.User" />
27+ <tr >
28+ <td ><c:out value =" ${ user. name } " /></td >
29+ <td ><a href =" mailto:${ user. email } " >${ user. email } </a ></td >
30+ <td >${ user. roles } </td >
31+ <td ><%= user. isEnabled() % >
32+ </td >
33+ <td ><fmt:formatDate value =" ${ user. registered } " pattern =" dd-MM-yyyy" /></td >
34+ </tr >
35+ </c:forEach >
36+ </table >
37+ </section >
38+ <jsp:include page =" fragments/footer.jsp" />
1039</body >
1140</html >
You can’t perform that action at this time.
0 commit comments