| | @@ -33,11 +33,11 @@ |
| 33 | 33 | return; |
| 34 | 34 | } |
| 35 | 35 | |
| 36 | 36 | style_header("Transfer Setup"); |
| 37 | 37 | |
| 38 | | - @ <table border="0" cellspacing="20"> |
| 38 | + @ <table class="xfersetup"> |
| 39 | 39 | setup_menu_entry("Common", "xfersetup_com", |
| 40 | 40 | "Common TH1 code run before all transfer request processing."); |
| 41 | 41 | setup_menu_entry("Push", "xfersetup_push", |
| 42 | 42 | "Specific TH1 code to run after \"push\" transfer requests."); |
| 43 | 43 | setup_menu_entry("Commit", "xfersetup_commit", |
| | @@ -60,33 +60,33 @@ |
| 60 | 60 | syncFlags = SYNC_PUSH | SYNC_PULL; |
| 61 | 61 | zButton = "Synchronize"; |
| 62 | 62 | zWarning = mprintf("WARNING: Pushing to \"%s\" is enabled.", |
| 63 | 63 | g.url.canonical); |
| 64 | 64 | } |
| 65 | | - if( P("sync") ){ |
| 66 | | - user_select(); |
| 67 | | - url_enable_proxy(0); |
| 68 | | - client_sync(syncFlags, 0, 0); |
| 69 | | - } |
| 70 | | - @ <p>Press the %h(zButton) button below to synchronize with the |
| 71 | | - @ "%h(g.url.canonical)" repository now. This may be useful when |
| 72 | | - @ testing the various transfer scripts.</p> |
| 73 | | - @ <p>You can use the "http -async" command in your scripts, but |
| 74 | | - @ make sure the "th1-uri-regexp" setting is set first.</p> |
| 65 | + @ <p>Press the <strong>%h(zButton)</strong> button below to |
| 66 | + @ synchronize with the <em>%h(g.url.canonical)</em> repository now.<br/> |
| 67 | + @ This may be useful when testing the various transfer scripts.</p> |
| 68 | + @ <p>You can use the <code>http -async</code> command in your scripts, but |
| 69 | + @ make sure the <code>th1-uri-regexp</code> setting is set first.</p> |
| 75 | 70 | if( zWarning ){ |
| 76 | 71 | @ |
| 77 | 72 | @ <big><b>%h(zWarning)</b></big> |
| 78 | 73 | free(zWarning); |
| 79 | 74 | } |
| 80 | 75 | @ |
| 81 | | - @ <blockquote> |
| 82 | 76 | @ <form method="post" action="%s(g.zTop)/%s(g.zPath)"><div> |
| 83 | 77 | login_insert_csrf_secret(); |
| 84 | 78 | @ <input type="submit" name="sync" value="%h(zButton)" /> |
| 85 | 79 | @ </div></form> |
| 86 | | - @ </blockquote> |
| 87 | 80 | @ |
| 81 | + if( P("sync") ){ |
| 82 | + user_select(); |
| 83 | + url_enable_proxy(0); |
| 84 | + @ <pre class="xfersetup"> |
| 85 | + client_sync(syncFlags, 0, 0); |
| 86 | + @ </pre> |
| 87 | + } |
| 88 | 88 | } |
| 89 | 89 | |
| 90 | 90 | style_footer(); |
| 91 | 91 | } |
| 92 | 92 | |
| | @@ -137,18 +137,18 @@ |
| 137 | 137 | } |
| 138 | 138 | @ <form action="%s(g.zTop)/%s(g.zPath)" method="post"><div> |
| 139 | 139 | login_insert_csrf_secret(); |
| 140 | 140 | @ <p>%s(zDesc)</p> |
| 141 | 141 | @ <textarea name="x" rows="%d(height)" cols="80">%h(z)</textarea> |
| 142 | | - @ <blockquote><p> |
| 142 | + @ <p> |
| 143 | 143 | @ <input type="submit" name="submit" value="Apply Changes" /> |
| 144 | 144 | @ <input type="submit" name="clear" value="Revert To Default" /> |
| 145 | 145 | @ <input type="submit" name="setup" value="Cancel" /> |
| 146 | | - @ </p></blockquote> |
| 146 | + @ </p> |
| 147 | 147 | @ </div></form> |
| 148 | | - @ <hr /> |
| 149 | 148 | if ( zDfltValue ){ |
| 149 | + @ <hr /> |
| 150 | 150 | @ <h2>Default %s(zTitle)</h2> |
| 151 | 151 | @ <blockquote><pre> |
| 152 | 152 | @ %h(zDfltValue) |
| 153 | 153 | @ </pre></blockquote> |
| 154 | 154 | } |
| | @@ -181,11 +181,12 @@ |
| 181 | 181 | /* |
| 182 | 182 | ** WEBPAGE: xfersetup_push |
| 183 | 183 | */ |
| 184 | 184 | void xfersetup_push_page(void){ |
| 185 | 185 | static const char zDesc[] = |
| 186 | | - @ Enter TH1 script that runs after processing "push" transfer requests. |
| 186 | + @ Enter TH1 script that runs after processing <strong>push</strong> |
| 187 | + @ transfer requests. |
| 187 | 188 | ; |
| 188 | 189 | xfersetup_generic( |
| 189 | 190 | "Transfer Push Script", |
| 190 | 191 | "xfer-push-script", |
| 191 | 192 | zDefaultXferPush, |
| 192 | 193 | |