|
|
|
@ -41,16 +41,15 @@
|
|
|
|
|
<div class="row"> |
|
|
|
|
<div class="span5 offset1 well-small" style="text-align: left"> |
|
|
|
|
<c:if test="${ client.dynamicallyRegistered }"> |
|
|
|
|
<fmt:formatDate type="both" value="${client.createdAt}" var="titleRegistrationTime"/> |
|
|
|
|
<fmt:formatDate type="date" value="${client.createdAt}" var="registrationTime"/> |
|
|
|
|
<c:choose> |
|
|
|
|
<c:when test="${ gras }"> |
|
|
|
|
<!-- client is "generally recognized as safe, display a more muted block --> |
|
|
|
|
<div> |
|
|
|
|
<p class="alert alert-info"> |
|
|
|
|
<i class="icon-globe"></i> |
|
|
|
|
|
|
|
|
|
<spring:message code="approve.dynamically_registered"/> |
|
|
|
|
<span id="registrationTime" title='<c:out value="${titleRegistrationTime}"/>'> <c:out value="${registrationTime}"/></span>. |
|
|
|
|
|
|
|
|
|
</p> |
|
|
|
|
</div> |
|
|
|
|
</c:when> |
|
|
|
@ -60,8 +59,11 @@
|
|
|
|
|
<h4> |
|
|
|
|
<i class="icon-globe"></i> <spring:message code="approve.caution"/>: |
|
|
|
|
</h4> |
|
|
|
|
<spring:message code="approve.dynamically_registered"/> |
|
|
|
|
<span id="registrationTime" title='<c:out value="${titleRegistrationTime}"/>'> <c:out value="${registrationTime}"/></span>. |
|
|
|
|
|
|
|
|
|
<p> |
|
|
|
|
<spring:message code="approve.dynamically_registered" arguments="${ client.createdAt }"/> |
|
|
|
|
</p> |
|
|
|
|
<p> |
|
|
|
|
<c:choose> |
|
|
|
|
<c:when test="${count == 0}"> |
|
|
|
|
<spring:message code="approve.caution.message.none" arguments="${count}"/> |
|
|
|
@ -73,6 +75,7 @@
|
|
|
|
|
<spring:message code="approve.caution.message.plural" arguments="${count}"/> |
|
|
|
|
</c:otherwise> |
|
|
|
|
</c:choose> |
|
|
|
|
</p> |
|
|
|
|
</div> |
|
|
|
|
</c:otherwise> |
|
|
|
|
</c:choose> |
|
|
|
@ -294,6 +297,25 @@ $(document).ready(function() {
|
|
|
|
|
$('#toggleMoreInformation i').attr('class', 'icon-chevron-down'); |
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
var creationDate = "<c:out value="${ client.createdAt }" />"; |
|
|
|
|
var displayCreationDate = $.t('approve.dynamically-registered-unkown'); |
|
|
|
|
var hoverCreationDate = ""; |
|
|
|
|
if (creationDate != null && moment(creationDate).isValid()) { |
|
|
|
|
creationDate = moment(creationDate); |
|
|
|
|
if (moment().diff(creationDate, 'months') < 6) { |
|
|
|
|
displayCreationDate = creationDate.fromNow(); |
|
|
|
|
} else { |
|
|
|
|
displayCreationDate = "on " + creationDate.format("LL"); |
|
|
|
|
} |
|
|
|
|
hoverCreationDate = creationDate.format("LLL"); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
$('#registrationTime').html(displayCreationDate); |
|
|
|
|
$('#registrationTime').attr('title', hoverCreationDate); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
//--> |
|
|
|
|