|
32 | 32 | </div> |
33 | 33 | <?php } ?> |
34 | 34 |
|
35 | | - <?php if (!empty($git_log)) { ?> |
36 | | - <a class="btn btn-primary btn-lg my-4" href="post.php?update"><i class="fas fa-fw fa-4x fa-download mb-1"></i><h5>Update App</h5></a> |
37 | | - <a class="btn btn-danger btn-lg" href="post.php?update&force_update=1"><i class="fas fa-fw fa-4x fa-hammer mb-1"></i><h5>FORCE Update App</h5></a> |
| 35 | + <?php if (LATEST_DATABASE_VERSION > CURRENT_DATABASE_VERSION) { ?> |
| 36 | + <div class="alert alert-warning"> |
| 37 | + <strong>Ensure you have a current <a href="https://docs.itflow.org/backups">app & database backup</a> before updating!</strong> |
| 38 | + </div> |
| 39 | + <br> |
| 40 | + <a class="btn btn-dark btn-lg my-4" href="post.php?update_db"><i class="fas fa-fw fa-4x fa-download mb-1"></i><h5>Update Database</h5></a> |
| 41 | + <br> |
| 42 | + <small class="text-secondary">Current DB Version: <?php echo CURRENT_DATABASE_VERSION; ?></small> |
| 43 | + <br> |
| 44 | + <small class="text-secondary">Latest DB Version: <?php echo LATEST_DATABASE_VERSION; ?></small> |
| 45 | + <br> |
| 46 | + <small class="text-secondary">Branch: <?php echo $repo_branch; ?></small> |
| 47 | + |
38 | 48 | <hr> |
39 | 49 |
|
40 | 50 | <?php } else { |
41 | | - if (LATEST_DATABASE_VERSION > CURRENT_DATABASE_VERSION) { ?> |
42 | | - <div class="alert alert-warning"> |
43 | | - <strong>Ensure you have a current <a href="https://docs.itflow.org/backups">app & database backup</a> before updating!</strong> |
44 | | - </div> |
45 | | - <br> |
46 | | - <a class="btn btn-dark btn-lg my-4" href="post.php?update_db"><i class="fas fa-fw fa-4x fa-download mb-1"></i><h5>Update Database</h5></a> |
47 | | - <br> |
48 | | - <small class="text-secondary">Current DB Version: <?php echo CURRENT_DATABASE_VERSION; ?></small> |
49 | | - <br> |
50 | | - <small class="text-secondary">Latest DB Version: <?php echo LATEST_DATABASE_VERSION; ?></small> |
51 | | - <br> |
52 | | - <small class="text-secondary">Branch: <?php echo $repo_branch; ?></small> |
| 51 | + if (!empty($git_log)) { ?> |
| 52 | + |
| 53 | + <a class="btn btn-primary btn-lg my-4" href="post.php?update"><i class="fas fa-fw fa-4x fa-download mb-1"></i><h5>Update App</h5></a> |
| 54 | + <a class="btn btn-danger btn-lg" href="post.php?update&force_update=1"><i class="fas fa-fw fa-4x fa-hammer mb-1"></i><h5>FORCE Update App</h5></a> |
| 55 | + |
53 | 56 | <?php } else { ?> |
54 | 57 | <p class="text-secondary">Current Database Version:<br><strong class="text-dark"><?php echo CURRENT_DATABASE_VERSION; ?></strong></p> |
55 | 58 | <p class="text-secondary">Current App Version:<br><strong class="text-dark"><?php echo $current_version; ?></strong></p> |
|
0 commit comments