Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
Jesse Stippel committed Jun 25, 2019
1 parent 3973bf1 commit df10581
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 14 deletions.
4 changes: 1 addition & 3 deletions src/collective/frontpage/browser/templates/frontpage.pt
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,7 @@

<head>
<metal:block fill-slot="style_slot">
<link rel="stylesheet" type="text/css"
tal:define="navroot context/@@plone_portal_state/navigation_root_url"
tal:attributes="href string:${navroot}/++resource++collective.frontpage/frontpage.css" />
<link rel="stylesheet" type="text/css" href="++resource++collective.frontpage/frontpage.css">
</metal:block>
</head>

Expand Down
16 changes: 9 additions & 7 deletions src/collective/frontpage/browser/templates/frontpage_macros.pt
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
<div class="frontpage-section" metal:define-macro="frontpage_section_static"
<!-- Standard Section -->

<div class="frontpage-section"
metal:define-macro="frontpage_section_static"
tal:define="image python:section.get('background_image', None)"
tal:attributes="style python:'background-image: url(' + section.absolute_url() +'@@images/background_image)' if image else ''"
>
tal:attributes="style python:'background-image: url(' + section.absolute_url() +'@@images/background_image)' if image else ''">

<div class="section-content" style="background-color: ${section/background_color}">
<h2 class="section-title" style="color: ${python: view.text_color(section)};">${section/title}</h2>
Expand All @@ -19,12 +21,12 @@

</div>

<!-- Full-Height Section -->


<div class="frontpage-section full-height" metal:define-macro="frontpage_section_teaser"
<div class="frontpage-section full-height"
metal:define-macro="frontpage_section_teaser"
tal:define="image python:section.get('background_image', None)"
tal:attributes="style python:'background-image: url(' + section.absolute_url() +'@@images/background_image)' if image else ''"
>
tal:attributes="style python:'background-image: url(' + section.absolute_url() +'@@images/background_image)' if image else ''">

<div class="section-content full-height" style="background-color: ${section/background_color}">
<h2 class="section-title" style="color: ${python: view.text_color(section)};">${section/title}</h2>
Expand Down
4 changes: 1 addition & 3 deletions src/collective/frontpage/browser/templates/section.pt
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,7 @@

<head>
<metal:block fill-slot="style_slot">
<link rel="stylesheet" type="text/css"
tal:define="navroot context/@@plone_portal_state/navigation_root_url"
tal:attributes="href string:${navroot}/++resource++collective.frontpage/frontpage.css" />
<link rel="stylesheet" type="text/css" href="++resource++collective.frontpage/frontpage.css">
</metal:block>
</head>

Expand Down
2 changes: 1 addition & 1 deletion src/collective/frontpage/setuphandlers.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ def _create_teaser_section(frontpage):
container=frontpage,
id="section-teaser",
title=u"Teaser",
description="This is an example Teaser Section. It is fullscreen.",
description="This is an example of a fullscreen Teaser Section.",
section_type=u"teaser",
background_color="#0083BE",
primary_color="#F5F5F5",
Expand Down

0 comments on commit df10581

Please sign in to comment.