Commit f4de9c62 authored by Matija Obreza's avatar Matija Obreza
Browse files

<cms:activitypost

parent 538d465f
......@@ -542,7 +542,7 @@ html[dir="rtl"] .nav-tabs>li>a {
}
.tab-pane {
padding: 0 15px 20px 15px;
padding: 20px 15px;
}
.tab-pane h1 {
......
<%@include file="/WEB-INF/jsp/init.jsp"%>
<div class="post type-article">
<div class="post-icon"></div>
<div class="post-head clearfix">
<div class="user-icon"><img src="<c:url value="/html/images/icon_user_genesys.png" />" alt="" /></div>
<div class="post-head-content" dir="ltr"><c:out value="${activityPost.title}" escapeXml="false" /></div>
</div>
<c:if test="${activityPost.body ne null and activityPost.body.length() gt 0}">
<div class="post-inner clearfix">
<div class="post-content" dir="ltr">
<c:out value="${activityPost.body}" escapeXml="false" />
</div>
</div>
</c:if>
<div class="post-actions">
<security:authorize access="hasRole('ADMINISTRATOR') or hasRole('CONTENTMANAGER')">
<a href="<c:url value="/content/activitypost/${activityPost.id}/edit" />"><spring:message code="edit" /></a>
&bull;
</security:authorize>
<%--
<a href="#">Like</a>
&bull;
<a href="#">Comment</a>
&bull;
<a href="#">Share</a>
&bull;
<a href="#" class="comments-num">12</a>
&bull;
--%>
<local:tweet text="${activityPost.title}" hashTags="GenesysPGR" />
<local:linkedin-share text="${activityPost.title}" summary="${activityPost.body}" />
<%-- <spring:message code="audit.createdBy" arguments="${activityPost.createdBy.name}" /> --%>
<c:if test="${activityPost.lastModifiedBy ne null}"><spring:message code="audit.lastModifiedBy" arguments="${jspHelper.userFullName(activityPost.lastModifiedBy)}" /></c:if>
<local:prettyTime date="${activityPost.postDate.time}" locale="${pageContext.response.locale}" />
</div>
</div>
......@@ -53,25 +53,23 @@
</c:if>
<h2><spring:message code="activity.recent-activity" /></h2>
<div class="tab-content">
<div class="tab-pane active" id="news-feed">
<security:authorize access="hasRole('ADMINISTRATOR')">
<a href="<c:url value="/content/activitypost/new" />" class="pull-right close" style=""> <spring:message code="activitypost.add-new-post" />
</a>
</security:authorize>
<h1><spring:message code="activity.recent-activity" /></h1>
<div class="all-posts">
<c:forEach items="${lastNews}" var="activityPost" varStatus="status">
<%@include file="/WEB-INF/jsp/content/include/activitypost.jsp"%>
</c:forEach>
</div>
</div>
</div>
</div>
<div class="tab-content">
<div class="tab-pane active" id="news-feed">
<security:authorize access="hasRole('ADMINISTRATOR')">
<a href="<c:url value="/content/activitypost/new" />" class="pull-right close" style="">
<spring:message code="activitypost.add-new-post" />
</a>
</security:authorize>
<div class="all-posts">
<c:forEach items="${lastNews}" var="activityPost" varStatus="status">
<cms:activitypost activityPost="${activityPost}" />
</c:forEach>
</div>
</div>
</div>
</div>
<!-- middle column end / right columns start -->
<div class="col-md-3" id="right-col">
......
<%@ tag description="Display menu with menu items" pageEncoding="UTF-8" %>
<%@ tag body-content="empty" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags" %>
<%@ taglib prefix="security" uri="http://www.springframework.org/security/tags" %>
<%@ taglib prefix="local" tagdir="/WEB-INF/tags"%>
<%@ taglib prefix="cms" tagdir="/WEB-INF/tags/cms"%>
<%@ attribute name="activityPost" required="true" type="org.genesys2.server.model.impl.ActivityPost" %>
<div class="post type-article">
<div class="post-icon"></div>
<div class="post-head clearfix">
<div class="user-icon">
<img src="<c:url value="/html/images/icon_user_genesys.png" />" alt="" />
</div>
<div class="post-head-content" dir="ltr">
<c:out value="${activityPost.title}" escapeXml="false" />
</div>
</div>
<c:if test="${activityPost.body ne null and activityPost.body.length() gt 0}">
<div class="post-inner clearfix">
<div class="post-content" dir="ltr">
<c:out value="${activityPost.body}" escapeXml="false" />
</div>
</div>
</c:if>
<div class="post-actions">
<security:authorize access="hasRole('ADMINISTRATOR') or hasRole('CONTENTMANAGER')">
<a href="<c:url value="/content/activitypost/${activityPost.id}/edit" />">
<spring:message code="edit" />
</a>
&bull;
</security:authorize>
<local:tweet text="${activityPost.title}" hashTags="GenesysPGR" />
<local:linkedin-share text="${activityPost.title}" summary="${activityPost.body}" />
<%-- <spring:message code="audit.createdBy" arguments="${activityPost.createdBy.name}" /> --%>
<c:if test="${activityPost.lastModifiedBy ne null}">
<spring:message code="audit.lastModifiedBy" arguments="${jspHelper.userFullName(activityPost.lastModifiedBy)}" />
</c:if>
<local:prettyTime date="${activityPost.postDate.time}" locale="${pageContext.response.locale}" />
</div>
</div>
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment