|
|
@ -41,16 +41,15 @@
|
|
|
|
<div class="row">
|
|
|
|
<div class="row">
|
|
|
|
<div class="span5 offset1 well-small" style="text-align: left">
|
|
|
|
<div class="span5 offset1 well-small" style="text-align: left">
|
|
|
|
<c:if test="${ client.dynamicallyRegistered }">
|
|
|
|
<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:choose>
|
|
|
|
<c:when test="${ gras }">
|
|
|
|
<c:when test="${ gras }">
|
|
|
|
<!-- client is "generally recognized as safe, display a more muted block -->
|
|
|
|
<!-- client is "generally recognized as safe, display a more muted block -->
|
|
|
|
<div>
|
|
|
|
<div>
|
|
|
|
<p class="alert alert-info">
|
|
|
|
<p class="alert alert-info">
|
|
|
|
<i class="icon-globe"></i>
|
|
|
|
<i class="icon-globe"></i>
|
|
|
|
|
|
|
|
|
|
|
|
<spring:message code="approve.dynamically_registered"/>
|
|
|
|
<spring:message code="approve.dynamically_registered"/>
|
|
|
|
<span id="registrationTime" title='<c:out value="${titleRegistrationTime}"/>'> <c:out value="${registrationTime}"/></span>.
|
|
|
|
|
|
|
|
</p>
|
|
|
|
</p>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</c:when>
|
|
|
|
</c:when>
|
|
|
@ -60,8 +59,11 @@
|
|
|
|
<h4>
|
|
|
|
<h4>
|
|
|
|
<i class="icon-globe"></i> <spring:message code="approve.caution"/>:
|
|
|
|
<i class="icon-globe"></i> <spring:message code="approve.caution"/>:
|
|
|
|
</h4>
|
|
|
|
</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:choose>
|
|
|
|
<c:when test="${count == 0}">
|
|
|
|
<c:when test="${count == 0}">
|
|
|
|
<spring:message code="approve.caution.message.none" arguments="${count}"/>
|
|
|
|
<spring:message code="approve.caution.message.none" arguments="${count}"/>
|
|
|
@ -73,6 +75,7 @@
|
|
|
|
<spring:message code="approve.caution.message.plural" arguments="${count}"/>
|
|
|
|
<spring:message code="approve.caution.message.plural" arguments="${count}"/>
|
|
|
|
</c:otherwise>
|
|
|
|
</c:otherwise>
|
|
|
|
</c:choose>
|
|
|
|
</c:choose>
|
|
|
|
|
|
|
|
</p>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</c:otherwise>
|
|
|
|
</c:otherwise>
|
|
|
|
</c:choose>
|
|
|
|
</c:choose>
|
|
|
@ -294,6 +297,25 @@ $(document).ready(function() {
|
|
|
|
$('#toggleMoreInformation i').attr('class', 'icon-chevron-down');
|
|
|
|
$('#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);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
//-->
|
|
|
|
//-->
|
|
|
|