forked from support-project/knowledge
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add unread tab (support-project#1114)
- Loading branch information
1 parent
c5eb93b
commit 8c222d7
Showing
10 changed files
with
144 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
68 changes: 68 additions & 0 deletions
68
src/main/webapp/WEB-INF/views/open/knowledge/show_unread.jsp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,68 @@ | ||
<%@page import="java.util.List"%> | ||
<%@page pageEncoding="UTF-8" isELIgnored="false" session="false" errorPage="/WEB-INF/views/commons/errors/jsp_error.jsp"%> | ||
<%@page import="org.support.project.common.util.NumberUtils"%> | ||
<%@page import="org.support.project.knowledge.logic.KnowledgeLogic"%> | ||
<%@page import="org.support.project.web.util.JspUtil"%> | ||
|
||
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%> | ||
<%@taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%> | ||
<%@taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%> | ||
|
||
<% | ||
JspUtil jspUtil = new JspUtil(request, pageContext); | ||
%> | ||
|
||
<c:import url="/WEB-INF/views/commons/layout/layoutMain.jsp"> | ||
|
||
<c:param name="PARAM_HEAD"> | ||
<jsp:include page="partials/partials-list-styles.jsp"></jsp:include> | ||
</c:param> | ||
|
||
<c:param name="PARAM_SCRIPTS"> | ||
<jsp:include page="partials/partials-list-scripts.jsp"></jsp:include> | ||
</c:param> | ||
|
||
<c:param name="PARAM_CONTENT"> | ||
|
||
<!-- Title --> | ||
<div class="row"> | ||
<ul class="nav nav-tabs"> | ||
<li role="presentation"><a href="<%=request.getContextPath()%>/open.knowledge/list"><%=jspUtil.label("knowledge.list.kind.list")%></a></li> | ||
<li role="presentation"><a href="<%=request.getContextPath()%>/open.knowledge/show_popularity"><%=jspUtil.label("knowledge.list.kind.popular")%></a></li> | ||
<% if (jspUtil.logined()) { %> | ||
<li role="presentation"><a href="<%=request.getContextPath()%>/open.knowledge/stocks"><%=jspUtil.label("knowledge.list.kind.stock")%></a></li> | ||
<li role="presentation" class="active"><a href="<%=request.getContextPath()%>/open.knowledge/show_unread"><%=jspUtil.label("knowledge.list.kind.unread")%></a></li> | ||
<% } %> | ||
<li role="presentation"><a href="<%=request.getContextPath()%>/open.knowledge/show_history"><%=jspUtil.label("knowledge.list.kind.history")%></a></li> | ||
|
||
</ul> | ||
</div> | ||
|
||
<!-- リスト --> | ||
<div class="row" id="knowledgeList"> | ||
<% | ||
request.setAttribute("list_data", jspUtil.getValue("unreads", List.class)); | ||
%> | ||
<c:import url="/WEB-INF/views/open/knowledge/partials/common_list.jsp" /> | ||
<c:import url="/WEB-INF/views/open/knowledge/partials/common_sub_list.jsp" /> | ||
</div> | ||
|
||
<!-- Pager --> | ||
<nav> | ||
<ul class="pager"> | ||
<li class="previous"><a | ||
href="<%=request.getContextPath()%>/open.knowledge/show_unread/<%=jspUtil.out("previous")%><%=jspUtil.out("params")%>"> | ||
<span aria-hidden="true">←</span><%=jspUtil.label("label.previous")%> | ||
</a></li> | ||
<li class="next"><a | ||
href="<%=request.getContextPath()%>/open.knowledge/show_unread/<%=jspUtil.out("next")%><%=jspUtil.out("params")%>"> | ||
<%=jspUtil.label("label.next")%> <span aria-hidden="true">→</span> | ||
</a></li> | ||
</ul> | ||
</nav> | ||
|
||
</c:param> | ||
|
||
</c:import> | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters