Changeset d26b95 in indico
- Timestamp:
- 04/26/12 12:14:48 (13 months ago)
- Branches:
- master, hello-world-walkthrough, ipv6, v0.98-series, v0.98.2, v0.98.3, v0.99, 051b2622c51afb171a1dedb46a0df4fbb0cbd02e, d9941f8582b36b24821a11ea5ba16fda6a457fb1
- Children:
- 50136d
- Parents:
- 8e2f05
- git-author:
- Alberto Resco Perez <alberto.resco.perez@…> (04/26/12 11:31:06)
- git-committer:
- Jose Benito <jose.benito.gonzalez@…> (04/26/12 12:14:48)
- Location:
- indico/MaKaC/webinterface
- Files:
-
- 2 edited
-
pages/contributionReviewing.py (modified) (3 diffs)
-
tpls/ContributionReviewingJudgements.tpl (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
indico/MaKaC/webinterface/pages/contributionReviewing.py
r790884 rd26b95 123 123 return wc.getHTML( pars ) 124 124 125 class WContributionReviewingJudgements(wcomponents.WTemplated): 125 class WContributionReviewingBase(wcomponents.WTemplated): 126 127 def _getStatusClass( self, judgement ): 128 if judgement == "Accept": 129 return "contributionReviewingStatusAccepted" 130 elif judgement == "Reject": 131 return "contributionReviewingStatusRejected" 132 elif judgement == "To be corrected": 133 return "contributionReviewingStatusCorrected" 134 else: 135 return "contributionReviewingStatusCorrected" 136 137 def _getStatusText( self, judgement ): 138 if judgement == "Accept": 139 return _("ACCEPTED") 140 elif judgement == "Reject": 141 return _("REJECTED") 142 elif judgement == "To be corrected": 143 return _("To be corrected") 144 else: 145 return judgement 146 147 class WContributionReviewingJudgements(WContributionReviewingBase): 126 148 127 149 def __init__(self, conference, aw): … … 152 174 vars["Review"] = self.__target.getReviewManager().getLastReview() 153 175 vars["TrackList"] = self._conf.getTrackList() 176 vars["getStatusClass"] = lambda judgement: self._getStatusClass(judgement) 177 vars["getStatusText"] = lambda judgement: self._getStatusText(judgement) 154 178 155 179 return vars … … 233 257 return wc.getHTML({"ShowReviewingTeam" : True}) 234 258 235 class WContributionReviewingHistory( wcomponents.WTemplated):259 class WContributionReviewingHistory(WContributionReviewingBase): 236 260 237 261 def __init__(self, contribution): 238 262 self._contribution = contribution 239 263 self._conf = contribution.getConference() 240 241 def _getStatusClass( self, judgement ):242 if judgement == "Accept":243 return "contributionReviewingStatusAccepted"244 elif judgement == "Reject":245 return "contributionReviewingStatusRejected"246 elif judgement == "To be corrected":247 return "contributionReviewingStatusCorrected"248 else:249 return "contributionReviewingStatusCorrected"250 251 def _getStatusText( self, judgement ):252 if judgement == "Accept":253 return _("ACCEPTED")254 elif judgement == "Reject":255 return _("REJECTED")256 elif judgement == "To be corrected":257 return _("To be corrected")258 else:259 return judgement260 264 261 265 def getHTML( self, params ): -
indico/MaKaC/webinterface/tpls/ContributionReviewingJudgements.tpl
red6775 rd26b95 65 65 <table cellspacing="0" cellpadding="5" width="100%"> 66 66 % for advice in AdviceList: 67 <%include file="AdviceJudgementDisplay.tpl" args=" advice = advice, ShowReviewer = True, format=format"/>67 <%include file="AdviceJudgementDisplay.tpl" args="Advice = advice, ShowReviewer = True, format=format"/> 68 68 % endfor 69 69 </table>
Note: See TracChangeset
for help on using the changeset viewer.
