Commit afa7dcfc authored by Taisiya Glushko's avatar Taisiya Glushko
Browse files

news-item-page-ui

parent c397bd05
......@@ -537,6 +537,7 @@ $light-font-family: 'Roboto-Light';
.post-head {
padding-top: 10px;
display: table;
cursor: pointer;
}
.post-actions {
......@@ -2766,6 +2767,24 @@ table.accessions {
padding: 15px 20px 13px 20px;
}
}
//news item page
.genesys-page .news-item-page .top-image {
background-image: none;
min-height: auto;
}
.news-item-page {
.top-image {
img {
width: 100%;
}
}
h1.green-bg {
p {
margin: 0;
}
}
}
@media (min-width: 990px) and (max-width: 1919px) {
.genesys-page {
......
......@@ -6,13 +6,13 @@
<head>
<title><c:out value="${jspHelper.htmlToText(news.title)}" /></title>
</head>
<body>
<body class="about-page text-page news-item-page">
<content tag="header">
<div class="hidden-xs top-image">
<img src="<c:url value="/html/0/images/aim/banner-${jspHelper.randomInt(1, 4)}.jpg" />" title="${title}" />
</div>
<div class="top-title">
<div class="container">
<div class="container" style="position: absolute; right: 0; padding: 10px 0;">
<security:authorize access="hasRole('ADMINISTRATOR') or hasRole('CONTENTMANAGER')">
<form class="inline-form pull-right" >
<a href="<c:url value="/content/activitypost/${news.id}/edit"/>" class="btn btn-default">
......@@ -21,46 +21,38 @@
<a href="<c:url value="/content/activitypost/new"/>" class="btn btn-default">
<spring:message code="activitypost.add-new-post" />
</a>
</form>
</security:authorize>
<h1>
<c:out value="${news.title}" escapeXml="false" />
</h1>
</div>
</div>
</content>
<div class="article">
<div class="right-side main-col col-md-9">
<div class="free-text" dir="ltr">
<c:out value="${news.body}" escapeXml="false" />
</div>
<div class="article-timestamp">
<local:prettyTime date="${news.postDate.time}" locale="${pageContext.response.locale}" />
</div>
<div class="share-article">
<p>
<spring:message code="article.share" />
</p>
<ul class="list-inline">
<li class="twitter">
<local:tweet text="${news.title}" hashTags="GenesysPGR" />
</li>
<li class="linkedin">
<local:linkedin-share text="${news.title}" summary="${news.body}" />
</li>
</ul>
<div class="row">
<h1 class="green-bg"><c:out value="${news.title}" escapeXml="false" /></h1>
<div class="article clearfix">
<div class="right-side main-col col-md-9">
<div class="free-text" dir="ltr">
<c:out value="${news.body}" escapeXml="false" />
</div>
<div class="article-timestamp">
<local:prettyTime date="${news.postDate.time}" locale="${pageContext.response.locale}" />
</div>
<div class="share-article">
<p><spring:message code="article.share" /></p>
<ul class="list-inline">
<li class="twitter"><local:tweet text="${news.title}" hashTags="GenesysPGR" /></li>
<li class="linkedin"><local:linkedin-share text="${news.title}" summary="${news.body}" /></li>
</ul>
</div>
</div>
<div class="col-md-3 sidebar-nav col-xs-12" dir="ltr">
<cms:menu key="${menu.key}" items="${menu.items}" />
</div>
</div>
</div>
<div class="col-md-3 sidebar-nav col-xs-12" dir="ltr">
<cms:menu key="${menu.key}" items="${menu.items}" />
</div>
</div>
</body>
</html>
......
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