-
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
45 changed files
with
436 additions
and
108 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.11.4 | ||
- 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,10 @@ | ||
# -*- coding: utf-8 -*- | ||
"""Init and utils.""" | ||
|
||
from plone import api | ||
from zope.i18nmessageid import MessageFactory | ||
|
||
|
||
_ = MessageFactory('collective.messagesviewlet') | ||
|
||
HAS_PLONE_5 = api.env.plone_version().startswith('5') |
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
10 changes: 10 additions & 0 deletions
10
src/collective/messagesviewlet/browser/static/messagesviewlet.js
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,10 @@ | ||
$(document).ready(function(){ | ||
$("#messagesviewlet .close-button").click(function(){ | ||
var m_uids = $.cookie('messagesviewlet'); | ||
var m_uid = $(this).parent().attr('id'); | ||
if (typeof m_uids === "undefined") {m_uids = m_uid;} | ||
else {m_uids += "|" + m_uid;} | ||
$.cookie('messagesviewlet', m_uids, { expires: 60 }); | ||
$(this).parent().hide(); | ||
}); | ||
}); |
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'; | ||
} |
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
Oops, something went wrong.