Skip to content

Commit 5cf639f

Browse files
committed
refactor: hide delete link until contributor is signed on
#2251
1 parent 2762270 commit 5cf639f

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

src/main/webapp/WEB-INF/jsp/content/storybook/edit.jsp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,9 @@
110110
<button id="submitButton" class="btn-large waves-effect waves-light" type="submit" <c:if test="${empty contributor}">disabled</c:if>>
111111
Edit <i class="material-icons right">send</i>
112112
</button>
113-
<a href="<spring:url value='/content/storybook/delete/${storyBook.id}' />" class="waves-effect waves-red red-text btn-flat <c:if test='${empty contributor}'>disabled</c:if> right">Delete</a>
113+
<c:if test="${not empty contributor}">
114+
<a href="<spring:url value='/content/storybook/delete/${storyBook.id}' />" class="waves-effect waves-red red-text btn-flat right">Delete</a>
115+
</c:if>
114116
</form:form>
115117
</div>
116118

src/main/webapp/WEB-INF/jsp/content/storybook/paragraph/edit.jsp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,9 @@
3030
<button id="submitButton" class="btn-large waves-effect waves-light" type="submit" <c:if test="${empty contributor}">disabled</c:if>>
3131
Edit <i class="material-icons right">send</i>
3232
</button>
33-
<a href="<spring:url value='/content/storybook/paragraph/delete/${storyBookParagraph.id}' />" class="waves-effect waves-red red-text btn-flat <c:if test='${empty contributor}'>disabled</c:if> right">Delete</a>
33+
<c:if test="${not empty contributor}">
34+
<a href="<spring:url value='/content/storybook/paragraph/delete/${storyBookParagraph.id}' />" class="waves-effect waves-red red-text btn-flat right">Delete</a>
35+
</c:if>
3436
</form:form>
3537
</div>
3638
</content:section>

0 commit comments

Comments
 (0)