Skip to content

Commit

Permalink
fixed MLItemPrettyLinkAdapter
Browse files Browse the repository at this point in the history
  • Loading branch information
odelaere committed Apr 18, 2019
1 parent a1f3a72 commit 83b4896
Showing 1 changed file with 16 additions and 45 deletions.
61 changes: 16 additions & 45 deletions src/Products/MeetingCPASLalouviere/adapters.py
Original file line number Diff line number Diff line change
Expand Up @@ -353,54 +353,25 @@ def _leadingIcons(self):
tool = api.portal.get_tool('portal_plonemeeting')
cfg = tool.getMeetingConfig(item)

# add some icons specific for dashboard if we are actually on the dashboard...
if itemState in cfg.itemDecidedStates and \
item.REQUEST.form.get('topicId', '') == 'searchitemsfollowupdashboard':
itemFollowUp = item.getFollowUp()
if itemFollowUp == 'follow_up_yes':
icons.append(('follow_up_yes.png', 'icon_help_follow_up_needed'))
elif itemFollowUp == 'follow_up_provided':
icons.append(('follow_up_provided.png', 'icon_help_follow_up_provided'))

# Add our icons for wf states
if itemState == 'proposed_to_director':
icons.append(('proposeToDirector.png',
translate('icon_help_proposed_to_director',
domain="PloneMeeting",
context=self.request)))
elif itemState == 'proposed_to_divisionhead':
icons.append(('proposeToDivisionHead.png',
translate('icon_help_proposed_to_divisionhead',
domain="PloneMeeting",
context=self.request)))
elif itemState == 'proposed_to_officemanager':
icons.append(('proposeToOfficeManager.png',
translate('icon_help_proposed_to_officemanager',
domain="PloneMeeting",
context=self.request)))
elif itemState == 'item_in_council':
icons.append(('item_in_council.png',
translate('icon_help_item_in_council',
domain="PloneMeeting",
context=self.request)))
elif itemState == 'proposed_to_servicehead':
icons.append(('proposeToServiceHead.png',
translate('icon_help_proposed_to_servicehead',
domain="PloneMeeting",
if itemState == 'proposed_to_n1':
icons.append(('proposeToN1.png',
translate('proposed_to_n1',
domain="plone",
context=self.request)))
elif itemState == 'item_in_committee':
icons.append(('item_in_committee.png',
translate('icon_help_item_in_committee',
domain="PloneMeeting",
elif itemState == 'proposed_to_n2':
icons.append(('proposeToN2.png',
translate('proposed_to_n2',
domain="plone",
context=self.request)))
elif itemState == 'proposed_to_budgetimpact_reviewer':
icons.append(('proposed_to_budgetimpact_reviewer.png',
translate('icon_help_proposed_to_budgetimpact_reviewer',
domain="PloneMeeting",
elif itemState == 'proposed_to_president':
icons.append(('proposeToPresident.png',
translate('proposed_to_president',
domain="plone",
context=self.request)))
elif itemState == 'itemcreated_waiting_advices':
icons.append(('itemcreated_waiting_advices.png',
translate('icon_help_itemcreated_waiting_advices ',
domain="PloneMeeting",
elif itemState == 'proposed_to_secretaire':
icons.append(('proposeToSecretaire.png',
translate('proposed_to_secretaire',
domain="plone",
context=self.request)))
return icons

0 comments on commit 83b4896

Please sign in to comment.