lancew/DojoList

View on GitHub
views/admin/sync.html.php

Summary

Maintainability
A
0 mins
Test Coverage
<h2><?php echo _("Sync"); ?></h2>

<p>Number of Dojo in far site that are not in the local database: <?php echo h($NewInFar); ?></p>
<p>Number of Dojo in far site that are more up to date than the local database: <?php echo h($UpdatedInFar); ?></p>

<h3><a href="<?php
                if($NewInFar){
                    echo url_for('admin', 'sync_new');
                } elseif ($UpdatedInFar) {
                    echo url_for('admin', 'sync_updated');
                } else {
                    echo url_for('/');
                
                }
            ?>
            ">
            
            <?php
            if($NewInFar+$UpdatedInFar == 0) {
                echo 'NO UPDATES - Return to main';
            } else {
            
                echo 'NEXT';
                }
                ?>
                </a></h3>