Skip to content
This repository has been archived by the owner on Sep 7, 2024. It is now read-only.

Commit

Permalink
Add cover-(type)-tile class to all tile templates.
Browse files Browse the repository at this point in the history
This addresses the issue collective#189 for all the default tiles, but doesn't do it automatically for new tiles.
  • Loading branch information
warpr committed Oct 25, 2013
1 parent 9bc5d99 commit b52d557
Show file tree
Hide file tree
Showing 9 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion src/collective/cover/tiles/templates/banner.pt
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
Drag&drop an image or link here to populate the tile.
</p>

<div class="banner-tile tile-content"
<div class="cover-banner-tile tile-content"
tal:condition="not:is_empty"
tal:define="title view/Title;
has_image view/has_image;
Expand Down
2 changes: 1 addition & 1 deletion src/collective/cover/tiles/templates/basic.pt
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
Please drag&amp;drop some content here to populate the tile.
</p>

<div tal:condition="not: is_empty" class="tile-content"
<div tal:condition="not: is_empty" class="cover-basic-tile tile-content"
tal:define="description view/data/description|nothing">
<tal:fields repeat="field view/get_configured_fields">

Expand Down
2 changes: 1 addition & 1 deletion src/collective/cover/tiles/templates/carousel.pt
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

<body tal:define="tile_id view/id;
autoplay python:str(view.autoplay()).lower();">
<div class="galleria slide tile-content"
<div class="galleria slide cover-carousel-tile tile-content"
tal:attributes="id string:galleria-$tile_id">
<!-- Carousel items -->
<div class="galleria-inner">
Expand Down
2 changes: 1 addition & 1 deletion src/collective/cover/tiles/templates/contentbody.pt
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
Please drag&amp;drop some content here to populate the tile.
</p>

<div tal:condition="body" class="contentbody tile-content">
<div tal:condition="body" class="cover-contentbody-tile tile-content">
<div class="content"
tal:content="structure body">Body</div>
<div class="visualClear"><!-- --></div>
Expand Down
2 changes: 1 addition & 1 deletion src/collective/cover/tiles/templates/embed.pt
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
Please edit the tile to add the code to be embedded.
</p>

<div tal:condition="not: is_empty" class="tile-content">
<div tal:condition="not: is_empty" class="cover-embed-tile tile-content">
<tal:fields repeat="field view/get_configured_fields">
<tal:embed condition="python:field['id'] == 'embed'">
<!-- FIXME -->
Expand Down
2 changes: 1 addition & 1 deletion src/collective/cover/tiles/templates/file.pt
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
Please drag&amp;drop a file here.
</p>

<div tal:condition="not: is_empty" class="tile-content">
<div tal:condition="not: is_empty" class="cover-file-tile tile-content">
<tal:fields repeat="field view/get_configured_fields">
<tal:title define="htmltag python:field.get('htmltag', 'h1')"
condition="python:field['id'] == 'title'">
Expand Down
2 changes: 1 addition & 1 deletion src/collective/cover/tiles/templates/pfg.pt
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<p tal:condition="not: body" i18n:translate="">
Please drag&amp;drop a Form Folder here to populate the tile.
</p>
<div class="tile-content">
<div class="cover-pfg-tile tile-content">
<tal:fields
tal:condition="body"
repeat="field view/get_configured_fields">
Expand Down
2 changes: 1 addition & 1 deletion src/collective/cover/tiles/templates/richtext.pt
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<p tal:condition="not:text" i18n:translate="">
Please edit the tile to enter some text.
</p>
<div class="tile-content">
<div class="cover-richtext-tile tile-content">
<tal:fields repeat="field view/get_configured_fields">
<tal:text condition="python:field['id'] == 'text'">
<div tal:replace="structure python:field['content']">Rich Text</div>
Expand Down
2 changes: 1 addition & 1 deletion src/collective/cover/tiles/templates/tileformlayout.pt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<div class="tile-content">
<div class="cover-tileformlayout-tile tile-content">
<h1 class="documentFirstHeading" tal:content="view/form_instance/label | nothing" />

<span tal:replace="structure view/contents" />
Expand Down

0 comments on commit b52d557

Please sign in to comment.