Changeset 1996

Show
Ignore:
Timestamp:
04/19/08 05:57:37 (4 months ago)
Author:
bchoate
Message:

Fixed 'background' option for newly added template maps. BugId:79402

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/release-35/lib/MT/CMS/Template.pm

    r1992 r1996  
    10391039    my $tmpl     = $app->load_tmpl('include/archive_maps.tmpl'); 
    10401040    my $maps     = _populate_archive_loop( $app, $blog, $template ); 
    1041     $tmpl->param( { object_type => 'templatemap' } ); 
    1042     $tmpl->param( { object_loop => $maps } ) if @$maps; 
     1041    $tmpl->param( object_type => 'templatemap' ); 
     1042    $tmpl->param( publish_queue_available => eval 'require List::Util; require Scalar::Util; 1;' ); 
     1043    $tmpl->param( object_loop => $maps ) if @$maps; 
    10431044    my $html = $tmpl->output(); 
    10441045 
  • branches/release-35/tmpl/cms/edit_template.tmpl

    r1965 r1996  
    655655            <!-- untested features --> 
    656656                    <option value="5"<mt:if name="build_type_5"> selected="selected"</mt:if>><__trans phrase="On a schedule"></option> 
    657                     <mt:ignore> 
    658657                        <!-- This code needs to be shown if the "On a schedule" has been selected --> 
    659658                    <__trans phrase=": every "><input name="schedule_interval" id="schedule_interval" value="<mt:var name="schedule_interval" escape="html">" maxlength="10" class="quarter-width" mt:watch-change="1" /> 
     
    663662                        <option value="days"<mt:if name="schedule_period_days"> selected="selected"</mt:if>><__trans phrase="days"></option> 
    664663                    </select> 
    665                     </mt:ignore> 
    666664        </mt:ignore> 
    667665                </mt:if> 
  • branches/release-35/tmpl/cms/include/archive_maps.tmpl

    r1877 r1996  
    3636            <!-- untested features --> 
    3737                    <option value="5"<mt:if name="map_build_type_5"> selected="selected"</mt:if>><__trans phrase="On a schedule"></option> 
    38                     <mt:ignore> 
    3938                        <!-- This code needs to be shown if the "On a schedule" has been selected --> 
    4039                    <__trans phrase=": every "><input name="schedule_interval" id="schedule_interval" value="<mt:var name="schedule_interval" escape="html">" maxlength="10" class="quarter-width" mt:watch-change="1" /> 
     
    4443                        <option value="days"<mt:if name="schedule_period_days"> selected="selected"</mt:if>><__trans phrase="days"></option> 
    4544                    </select> 
    46                     </mt:ignore> 
    4745        </mt:ignore> 
    4846    </mt:if>