-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
31 changed files
with
262 additions
and
63 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,30 @@ | ||
language: python | ||
|
||
python: | ||
- 2.7 | ||
|
||
sudo: false | ||
cache: | ||
pip: true | ||
directories: | ||
- buildout-cache/downloads | ||
- buildout-cache/eggs | ||
|
||
- eggs | ||
- downloads | ||
python: | ||
- 2.7 | ||
env: | ||
- PLONE_VERSION=4.3 | ||
- PLONE_VERSION=5.0 | ||
- PLONE_VERSION=5.1 | ||
install: | ||
- mkdir -p buildout-cache/{eggs,downloads} | ||
- python bootstrap-buildout.py --version=2.10.0 -c travis.cfg | ||
- bin/buildout -Nc travis.cfg | ||
|
||
- sed -ie "s#5-latest#$PLONE_VERSION-latest#" buildout.cfg | ||
- python bootstrap-buildout.py --version=2.5.3 | ||
- bin/buildout -N buildout:download-cache=downloads code-analysis:return-status-codes=True annotate | ||
- bin/buildout -N buildout:download-cache=downloads code-analysis:return-status-codes=True | ||
before_script: | ||
- export DISPLAY=:99.0 | ||
- sh -e /etc/init.d/xvfb start | ||
- firefox -v | ||
script: | ||
- bin/test | ||
- bin/coverage run bin/test | ||
|
||
after_success: | ||
- bin/coverage run bin/test | ||
- bin/createcoverage --output-dir htmlcov | ||
- pip install coveralls==0.5 | ||
- coveralls | ||
|
||
notifications: | ||
email: | ||
- devs@imio.be |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
75 changes: 75 additions & 0 deletions
75
src/collective/messagesviewlet/browser/static/messagesviewlet.less
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,75 @@ | ||
.warning-formHelp { | ||
color: orange; | ||
} | ||
.portaltype-messagesconfig #contentview-folderContents,.portaltype-messagesconfig #contentview-edit,.portaltype-messagesconfig #contentview-local_roles { | ||
display: none; | ||
} | ||
dl.messagesviewlet-info,dl.messagesviewlet-warning,dl.messagesviewlet-significant { | ||
border: 1px solid #996; | ||
clear: both; | ||
font-size: 80%; | ||
margin: 1em 0; | ||
} | ||
dl.messagesviewlet-info { | ||
background-color: #ffffe3; | ||
dt { | ||
background-color: #996; | ||
} | ||
} | ||
dl.messagesviewlet-significant { | ||
background-color: #fd7; | ||
dt { | ||
background-color: #d80; | ||
} | ||
} | ||
dl.messagesviewlet-warning { | ||
background-color: #fdc; | ||
dt { | ||
background-color: #d00; | ||
} | ||
} | ||
dl.messagesviewlet-info dt,dl.messagesviewlet-warning dt,dl.messagesviewlet-significant dt { | ||
width: 85px; | ||
color: White; | ||
float: left; | ||
font-weight: bold; | ||
line-height: 1.25em; | ||
margin: 0 0.5em 0 0; | ||
padding: 0.5em 0.75em; | ||
} | ||
dl.messagesviewlet-info dd,dl.messagesviewlet-warning dd,dl.messagesviewlet-significant dd { | ||
line-height: 1.25em; | ||
margin: 0 25px 0 110px; | ||
padding: 0.5em; | ||
} | ||
.close-button { | ||
float: right; | ||
margin-top: -28px; | ||
} | ||
.state-inactive { | ||
color: red !important; | ||
} | ||
#plone-contentmenu-workflow { | ||
.state-inactive { | ||
border-radius: 0.5em 0.5em 0.5em 0.5em; | ||
background-color: red; | ||
padding: 0 0.5em; | ||
color: white !important; | ||
border: 2px solid red; | ||
} | ||
.state-activated { | ||
border-radius: 0.5em 0.5em 0.5em 0.5em; | ||
background-color: blue; | ||
padding: 0 0.5em; | ||
color: white !important; | ||
border: 2px solid blue; | ||
} | ||
} | ||
.state-activated { | ||
color: blue !important; | ||
} | ||
|
||
.icon-controlpanel-messagesviewlet_settings:before { | ||
font-family: 'fontello'; | ||
content: '\E83B'; | ||
} |
1 change: 1 addition & 0 deletions
1
src/collective/messagesviewlet/browser/static/messagesviewlet.min.css
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
<configure | ||
xmlns="http://namespaces.zope.org/zope" | ||
xmlns:zcml="http://namespaces.zope.org/zcml" | ||
xmlns:five="http://namespaces.zope.org/five" | ||
xmlns:genericsetup="http://namespaces.zope.org/genericsetup" | ||
xmlns:i18n="http://namespaces.zope.org/i18n" | ||
i18n_domain="collective.messagesviewlet"> | ||
|
||
<genericsetup:registerProfile | ||
name="install-base" | ||
title="collective.messagesviewlet installation" | ||
directory="profiles/base" | ||
description="Installs the collective.messagesviewlet add-on." | ||
provides="Products.GenericSetup.interfaces.EXTENSION" | ||
/> | ||
|
||
<genericsetup:registerProfile | ||
name="messages" | ||
title="collective.messagesviewlet examples" | ||
directory="profiles/messages" | ||
description="Add default messages for collective.messagesviewlet." | ||
provides="Products.GenericSetup.interfaces.EXTENSION" | ||
/> | ||
|
||
<genericsetup:registerProfile | ||
zcml:condition="have plone-5" | ||
name="default" | ||
title="collective.messagesviewlet plone5 installation" | ||
directory="profiles/plone5" | ||
description="Installs the collective.messagesviewlet add-on on Plone 5." | ||
provides="Products.GenericSetup.interfaces.EXTENSION" | ||
/> | ||
|
||
<genericsetup:registerProfile | ||
zcml:condition="not-have plone-5" | ||
name="default" | ||
title="collective.messagesviewlet plone4 installation" | ||
directory="profiles/plone4" | ||
description="Installs the collective.messagesviewlet add-on on Plone 4." | ||
provides="Products.GenericSetup.interfaces.EXTENSION" | ||
/> | ||
|
||
<utility factory=".setuphandlers.HiddenProfiles" name="collective.messagesviewlet" /> | ||
|
||
</configure> |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Empty file.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
<?xml version="1.0"?> | ||
<metadata> | ||
<version>1000</version> | ||
<dependencies> | ||
<dependency>profile-collective.messagesviewlet:install-base</dependency> | ||
</dependencies> | ||
</metadata> |
File renamed without changes.
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
<?xml version="1.0"?> | ||
<metadata> | ||
<version>1000</version> | ||
<dependencies> | ||
<dependency>profile-collective.messagesviewlet:install-base</dependency> | ||
</dependencies> | ||
</metadata> |
22 changes: 22 additions & 0 deletions
22
src/collective/messagesviewlet/profiles/plone5/registry.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
<?xml version="1.0"?> | ||
<registry> | ||
|
||
<records prefix="plone.resources/messagesviewlet" | ||
interface='Products.CMFPlone.interfaces.IResourceRegistry'> | ||
<value key="js">++plone++collective.messagesviewlet/hidemessageviewlet.js</value> | ||
<value key="deps">jquery.cookie</value> | ||
<value key="css"> | ||
<element>++plone++collective.messagesviewlet/messagesviewlet.less</element> | ||
</value> | ||
</records> | ||
|
||
<records prefix="plone.bundles/messagesviewlet" | ||
interface='Products.CMFPlone.interfaces.IBundleRegistry'> | ||
<value key="resources" purge="false"> | ||
<element>messagesviewlet</element> | ||
</value> | ||
<value key="enabled">True</value> | ||
<value key="csscompilation">++plone++collective.messagesviewlet/messagesviewlet.min.css</value> | ||
<value key="last_compilation">2018-09-11 10:00:00</value> | ||
</records> | ||
</registry> |
Oops, something went wrong.