Skip to content

Commit

Permalink
LPS-197121 Use clay:stripe for the lock info
Browse files Browse the repository at this point in the history
  • Loading branch information
ambrinchaudhary authored and brianchandotcom committed Sep 28, 2023
1 parent e33e38f commit 598718c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -172,14 +172,14 @@ public FileVersion getFileVersion() throws PortalException {
return _fileVersion;
}

public String getLockInfoCssClass() {
public String getLockInfoDisplayType() {
FileEntry fileEntry = getFileEntry();

if (!fileEntry.hasLock()) {
return "alert-danger";
return "danger";
}

return "alert-info";
return "info";
}

public String getLockInfoMessage(Locale locale) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -115,9 +115,10 @@ if (portletTitleBasedNavigation) {
</c:if>

<c:if test="<%= dlViewFileEntryDisplayContext.isShowLockInfo() %>">
<div class="alert <%= dlViewFileEntryDisplayContext.getLockInfoCssClass() %>">
<%= dlViewFileEntryDisplayContext.getLockInfoMessage(locale) %>
</div>
<clay:stripe
displayType="<%= dlViewFileEntryDisplayContext.getLockInfoDisplayType() %>"
message="<%= dlViewFileEntryDisplayContext.getLockInfoMessage(locale) %>"
/>
</c:if>

<div class="body-row">
Expand Down

0 comments on commit 598718c

Please sign in to comment.