Changeset 511011 in indico


Ignore:
Timestamp:
10/04/10 17:17:56 (3 years ago)
Author:
Jose Benito <jose.benito.gonzalez@…>
Branches:
master, burotel, hello-world-walkthrough, ipv6, v0.98-series, v0.98.2, v0.98.3, v0.98b1, v0.98b2, v0.99, 051b2622c51afb171a1dedb46a0df4fbb0cbd02e, 4c7d4152dff271ba5df5a8606605969cab454080
Children:
e5cb23
Parents:
2cc959
git-author:
csvetelina.angelova@…> (03/01/10 15:12:42)
git-committer:
Jose Benito <jose.benito.gonzalez@…> (10/04/10 17:17:56)
Message:

[IMP] - if no Comments - "None" in the field

  • Giving Judgement(for all reviewers): if there are no Comments - "None" in the field
Location:
indico/MaKaC/webinterface
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • indico/MaKaC/webinterface/pages/contributions.py

    r5596fa r511011  
    416416            if (confReviewChoice == 3 or confReviewChoice == 4) and \ 
    417417                self._contrib.getReviewManager().isEditor(self._rh._getUser()) and \ 
    418 <<<<<<< HEAD:indico/MaKaC/webinterface/pages/contributions.py 
    419418                (not self._contrib.getReviewManager().getLastReview().getRefereeJudgement().isSubmitted() or confReviewChoice == 3) and \ 
    420419                self._contrib.getReviewManager().getLastReview().isAuthorSubmitted(): 
    421 <<<<<<< HEAD:indico/MaKaC/webinterface/pages/contributions.py 
    422  
    423                 self._tabJudgeEditing = self._tabCtrl.newTab( "editing", "Editing", \ 
    424 ======= 
    425 ======= 
    426                 (not self._contrib.getReviewManager().getLastReview().getRefereeJudgement().isSubmitted() or confReviewChoice == 3): 
    427 >>>>>>> [IMP] - if materials not submitted - no exception:indico/MaKaC/webinterface/pages/contributions.py 
    428420                 
    429421                self._tabJudgeEditing = self._subtabReviewing.newSubTab( "editing", "Judge Layout", \ 
    430 >>>>>>> [DEVELOPMENT] - new subtabs + other:indico/MaKaC/webinterface/pages/contributions.py 
    431                                          urlHandlers.UHContributionEditingJudgement.getURL(self._target) ) 
     422                urlHandlers.UHContributionEditingJudgement.getURL(self._target) ) 
    432423 
    433424            if (confReviewChoice == 2 or confReviewChoice == 4) and \ 
     
    471462            banner = wcomponents.WContribListBannerModif(self._target).getHTML() 
    472463        body = wcomponents.WTabControl( self._tabCtrl, self._getAW() ).getHTML( self._getTabContent( params ) ) 
    473 <<<<<<< HEAD:indico/MaKaC/webinterface/pages/contributions.py 
    474464        return banner + body 
    475465 
    476 ======= 
    477466        if not self._canModify or self._isPRM: 
    478467            return body 
    479468        else: 
    480469            return banner + body 
    481      
    482 >>>>>>> [FIXES] - task #108 + small layout fixes:indico/MaKaC/webinterface/pages/contributions.py 
     470 
    483471 
    484472class WPContribModifMain( WPContributionModifBase ): 
  • indico/MaKaC/webinterface/tpls/ContributionReviewingJudgements.tpl

    rc0ad9d r511011  
    213213            function(result, error){ 
    214214                if (!error) { 
    215                     $E('inPlaceEditComments').set(result) 
    216                     $E('commentsMessage').set('') 
     215                    if(result.length == 0){ 
     216                        $E('inPlaceEditComments').set($T('No comments given.')); 
     217                    } else { 
     218                        $E('inPlaceEditComments').set(result) 
     219                    } 
    217220                } 
    218221            } 
  • indico/MaKaC/webinterface/tpls/GiveAdvice.tpl

    r89ef8e r511011  
    5959        </td> 
    6060    </tr>    
    61 <% end %>     
    6261</table> 
    6362 
     
    129128            function(result, error){ 
    130129                if (!error) { 
    131                     $E('inPlaceEditComments').set(result) 
    132                     $E('commentsMessage').set('') 
     130                    if(result.length == 0){ 
     131                        $E('inPlaceEditComments').set($T('No comments given.')); 
     132                    } else { 
     133                        $E('inPlaceEditComments').set(result) 
     134                    } 
    133135                } 
    134136            } 
  • indico/MaKaC/webinterface/tpls/JudgeEditing.tpl

    r89ef8e r511011  
    138138            function(result, error){ 
    139139                if (!error) { 
    140                     $E('inPlaceEditComments').set(result); 
     140                    if(result.length == 0){ 
     141                        $E('inPlaceEditComments').set($T('No comments given.')); 
     142                    } else { 
     143                        $E('inPlaceEditComments').set(result) 
     144                    } 
    141145                } 
    142146            } 
Note: See TracChangeset for help on using the changeset viewer.