Changeset 6181 for extensions/autoupdate/trunk/template/autoupdate.tpl
- Timestamp:
- May 15, 2010, 2:03:52 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/autoupdate/trunk/template/autoupdate.tpl
r6167 r6181 1 {html_head} 2 {literal} 3 <style type="text/css"> 4 form { width: 750px; } 5 fieldset { padding-bottom: 30px; } 6 p, form p { text-align: left; margin-left:20px; } 7 li { margin: 5px; } 8 </style> 9 {/literal} 10 {/html_head} 11 1 12 <div class="titrePage"> 2 13 {if $STEP < 2} … … 10 21 {if $CHECK_VERSION} 11 22 <p>{'You are running the latest version of Piwigo.'|@translate}</p> 12 {else} 23 {elseif $DEV_VERSION} 24 <p>{'You are running on development sources, no check possible.'|@translate}</p> 25 {else} 13 26 <p>{'Check for upgrade failed for unknown reasons.'|@translate}</p> 14 27 {/if} … … 16 29 17 30 {if $STEP == 1} 18 < p>{'2 upgrades are available'|@translate}</p>31 <h4>{'Two upgrades are available'|@translate}:</h4> 19 32 <p> 20 33 <ul> 21 <li><a href="{$AU_URL}&step=2&to={$ new_versions.1}">{'Upgrade to Piwigo %s'|@translate|@sprintf:$new_versions.1}</a>: {'This is a minor upgrade, with only bug corrections'|@translate}</li>22 <li><a href="{$AU_URL}&step=3&to={$ new_versions.0}">{'Upgrade to Piwigo %s'|@translate|@sprintf:$new_versions.0}</a>: {'This is a major upgrade, with <a href="http://piwigo.org/releases/%s">new exciting features</a>. Some themes and plugins may be not available yet.'|@translate|@sprintf:$new_versions.0}</li>34 <li><a href="{$AU_URL}&step=2&to={$MINOR_VERSION}"><strong>{'Upgrade to Piwigo %s'|@translate|@sprintf:$MINOR_VERSION}</strong></a>: {'This is a minor upgrade, with only bug corrections.'|@translate}</li> 35 <li><a href="{$AU_URL}&step=3&to={$MAJOR_VERSION}"><strong>{'Upgrade to Piwigo %s'|@translate|@sprintf:$MAJOR_VERSION}</strong></a>: {'This is a major upgrade, with <a href="%s">new exciting features</a>.'|@translate|@sprintf:$RELEASE_URL} {'Some themes and plugins may be not available yet.'|@translate}</li> 23 36 </ul> 24 37 </p> 38 <p>{'You can upgrade to Piwigo %s directly, without upgrading to Piwigo %s (recommended).'|@translate|@sprintf:$MAJOR_VERSION:$MINOR_VERSION}</p> 25 39 {/if} 26 40 27 41 {if $STEP == 2} 42 <p> 43 {'A new version of Piwigo is available.'|@translate}<br> 44 {'This is a minor upgrade, with only bug corrections.'|@translate} 45 </p> 28 46 <form action="" method="post"> 29 <p style="text-align:left; margin-left:20px;"> 30 {'A new version of Piwigo is available.'}<br> 31 {'This is a minor upgrade, with only bug corrections'|@translate} 32 </p> 33 <p> 34 <input type="hidden" name="upgrade_to" value="{$UPGRADE_TO}"> 35 <input type="submit" name="submit" value="{'Upgrade to Piwigo %s'|@translate|@sprintf:$UPGRADE_TO}" onClick="return confirm('{'autoupdate_alert'|@translate}');"> 36 </p> 47 <p><input type="submit" name="submit" value="{'Upgrade to Piwigo %s'|@translate|@sprintf:$UPGRADE_TO}" onClick="return confirm('{'autoupdate_alert'|@translate}');"></p> 48 <p><input type="hidden" name="upgrade_to" value="{$UPGRADE_TO}"></p> 37 49 </form> 38 50 {/if} 39 51 40 52 {if $STEP == 3} 53 <p> 54 {'A new version of Piwigo is available.'|@translate}<br> 55 {'This is a major upgrade, with <a href="%s">new exciting features</a>.'|@translate|@sprintf:$RELEASE_URL} {'Some themes and plugins may be not available yet.'|@translate} 56 </p> 41 57 <form action="" method="post"> 42 <p style="text-align:left; margin-left:20px;"> 43 {'A new version of Piwigo is available.'}<br> 44 {'This is a major upgrade, with <a href="http://piwigo.org/releases/%s">new exciting features</a>. Some themes and plugins may be not available yet.'|@translate|@sprintf:$UPGRADE_TO} 45 </p> 46 <input type="hidden" name="upgrade_to" value="{$UPGRADE_TO}"> 47 <fieldset style="text-align:left;"> 48 <legend>{'Save template directory'|@translate}</legend> 49 <p><input type="submit" name="saveTemplate" value="{'Save template directory'|@translate}"></p> 58 <fieldset> 59 <legend>{'First Step'|@translate}</legend> 60 <p><input type="submit" name="saveTemplate" value="{'Save Template Directory'|@translate}"></p> 50 61 </fieldset> 51 62 <fieldset> 52 <legend>{' Dump Database'|@translate}</legend>53 <p><input type="checkbox" name="includeHistory"> {'Include history table'|@translate}</p>54 <p><input type="submit" name="dumpDatabase" value="{'Dump Database'|@translate |@sprintf:$UPGRADE_TO}"></p>63 <legend>{'Second Step'|@translate}</legend> 64 <p><input type="checkbox" name="includeHistory"> {'Include history data (Warning: server memory limit may be exceeded)'|@translate}</p> 65 <p><input type="submit" name="dumpDatabase" value="{'Dump Database'|@translate}"></p> 55 66 </fieldset> 56 67 <fieldset> 57 <legend>{' Upgrade to Piwigo %s'|@translate|@sprintf:$UPGRADE_TO}</legend>58 <p><input type="submit" name="submit" value="{'Upgrade to Piwigo %s'|@translate|@sprintf:$UPGRADE_TO}" ></p>68 <legend>{'Third Step'|@translate|@sprintf:$UPGRADE_TO}</legend> 69 <p><input type="submit" name="submit" value="{'Upgrade to Piwigo %s'|@translate|@sprintf:$UPGRADE_TO}" onClick="return confirm('{'autoupdate_alert'|@translate}');"></p> 59 70 </fieldset> 71 <p><input type="hidden" name="upgrade_to" value="{$UPGRADE_TO}"></p> 60 72 </form> 61 73 {/if}
Note: See TracChangeset
for help on using the changeset viewer.