Renamed lang references, switched to zutil UserMessageManager

This commit is contained in:
Ziver Koc 2018-08-06 18:53:40 +02:00
parent b84f583d1c
commit 9c91d96ce7
27 changed files with 245 additions and 295 deletions

View file

@ -0,0 +1,4 @@
<%@tag description="Footer template" pageEncoding="UTF-8" %>
</body>
</html>

View file

@ -0,0 +1,27 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="description" content="Photo Gallery">
<meta name="author" content="Ziver Koc">
<link rel="icon" href="favicon.ico">
<title>Koc.se</title>
<!-- Bootstrap core CSS -->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
<link rel="stylesheet" href="css/bootstrap-theme.min.css">
<link rel="stylesheet" href="css/form-elements.css">
<link rel="stylesheet" href="css/register3.css">
<link rel="stylesheet" href="css/zallery.css">
<!-- Bootstrap core JavaScript -->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery.imagesloaded/3.1.8/imagesloaded.pkgd.min.js"></script>
<script src="js/masonry.pkgd.min.js"></script>
</head>
<body>
<jsp:include page="fragment_messages.jsp"/>

View file

@ -0,0 +1,34 @@
<%@tag description="User message template" pageEncoding="UTF-8" %>
<%@taglib uri = "http://java.sun.com/jsp/jstl/core" prefix = "c" %>
<%@tag import="com.example.User" %>
<%@attribute name="user" required="true" type="com.example.User"%>
<!-- User Messages -->
<script type="text/javascript">
$(function(){
$(".message").click(function(){
$(this).fade();
});
});
</script>
<div class="menu">
<c:forEach var="messages" var="message">
<c:if test="${message.getType() == MessageType.WARNING}">
</c:if>
if( message.getType() == MessageType.WARNING ){%>
<div class="message" style="border: 2px solid #E6E600; padding: 0px; margin: 5px; background: #FFFF99 none repeat scroll 0%; font-size: 11px; color: black; border-radius: 7px;">
<center><b><%=message.getMessage() %></b></center>
</div>
<%} else if( message.getType() == MessageType.ERROR ){ %>
<div class="message" style="border: 2px solid #FF0000; padding: 0px; margin: 5px; background: #FFDDCC none repeat scroll 0%; font-size: 11px; color: black; border-radius: 7px;">
<center><b><%=message.getMessage() %></b></center>
</div>
<%} else if( message.getType() == MessageType.INFO ){ %>
<div class="message" style="border: 2px solid #039C00; padding: 0px; margin: 5px; background: #9BFB66 none repeat scroll 0%; font-size: 11px; color: black; border-radius: 7px;">
<center><b><%=message.getMessage() %></b></center>
</div>
</c:forEach>
</div>

View file

@ -0,0 +1,58 @@
<!-- Static navbar -->
<nav class="navbar navbar-default">
<div class="navbar-header">
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target=".navbar-collapse">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="#">Project name</a>
</div>
<div class="navbar-collapse collapse">
<ul class="nav navbar-nav">
<li class="active"><a href="#">Gallery</a></li>
<li><a href="#">Faces</a></li>
<li><a href="#">Geni</a></li>
</ul>
<ul class="nav navbar-nav navbar-right">
<li class="dropdown">
<a href="#" class="dropdown-toggle action" data-toggle="dropdown">
<span class="glyphicon glyphicon-wrench"></span>
<strong>Actions</strong>
<span class="caret">
</a>
<ul class="dropdown-menu">
<li class="action">
<a href="#"><span class="glyphicon glyphicon-ban-circle"></span> Make Private</a>
</li>
<li class="action">
<a href="#"><span class="glyphicon glyphicon-folder-open"></span> Create Folder</a>
</li>
<li class="action">
<a href="#"><span class="glyphicon glyphicon-open-file"></span> Upload</a>
</li>
</ul>
</li>
<li class="divider-vertical"></li>
<li class="dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown">
<span class="glyphicon glyphicon-user"></span>
<strong>Ziver Koc</strong>
<span class="caret">
</a>
<ul class="dropdown-menu">
<li><a href="#">Profile</a></li>
<li role="separator" class="divider"></li>
<li class="dropdown-header">Administration</li>
<li><a href="#">Users</a></li>
<li><a href="#">Transcoding Queue</a></li>
<li role="separator" class="divider"></li>
<li><a href="#">Logout</a></li>
</ul>
</li>
</ul>
</div><!--/.nav-collapse -->
</nav>