aboutsummaryrefslogtreecommitdiff
path: root/subsonic-main/src/main/webapp/WEB-INF/jsp/avatarUploadResult.jsp
blob: 6c3b1010d5259dd4351aec709c1d5b4a523984cc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
<%@ page language="java" contentType="text/html; charset=utf-8" pageEncoding="iso-8859-1" %>

<html>
<head>
    <%@ include file="head.jsp" %>
</head>
<body class="mainframe bgcolor1">

<h1>
    <img src="<spring:theme code="settingsImage"/>" alt=""/>
    <fmt:message key="avataruploadresult.title"/>
</h1>

<c:choose>
    <c:when test="${empty model.error}">
        <p>
            <fmt:message key="avataruploadresult.success"><fmt:param value="${model.avatar.name}"/></fmt:message>
            <sub:url value="avatar.view" var="avatarUrl">
                <sub:param name="username" value="${model.username}"/>
            </sub:url>
            <img src="${avatarUrl}" alt="${model.avatar.name}" width="${model.avatar.width}"
                 height="${model.avatar.height}" style="padding-left:2em"/>
        </p>
    </c:when>
    <c:otherwise>
        <p class="warning">
            <fmt:message key="avataruploadresult.failure"/>
        </p>
    </c:otherwise>
</c:choose>

<div class="back"><a href="personalSettings.view?"><fmt:message key="common.back"/></a></div>

</body>
</html>