Commit 4aa980ec by Anton Sudak

Revert change of the content block styles

parent 17164ee3
......@@ -33,12 +33,6 @@
case _ => None
}
}
@responsiveBlockClass = @{
Some(data).map(_.getParentBlock).map {
case rs: ResponsiveCollection => Template.addColWidthClass(data)
case _ => "container"
}
}
@wrapIntoContainer(content: Html) = {
@Some(data).map {
case rc: ResponsiveCollection => {
......@@ -125,7 +119,7 @@
</div>
} else {
@wrapIntoContainer {
<div class="@Some(CssClass).filterNot(_.isEmpty) @responsiveBlockClass @responsiveCollectionClass">
<div class="@Some(CssClass).filterNot(_.isEmpty).getOrElse("pcms-container") @Template.addColWidthClass(data) @responsiveCollectionClass">
@content
</div>
}
......
......@@ -2,7 +2,7 @@
@(
data: ch.insign.cms.models.ContentBlock
)(extension: Html = Html.apply(""))
@_blockBase(data = data, color = "red") {
@_blockBase(data = data, color = "red", CssClass = "container") {
<h3>@data.getTitle</h3>
<p>@Html(data.getContent.get)</p>
@extension
......
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