| 1 | <!DOCTYPE html> |
| 2 | <html> |
| 3 | <head> |
| 4 | @include '../layout/head.html' |
| 5 | </head> |
| 6 | <body> |
| 7 | @include '../layout/header.html' |
| 8 | |
| 9 | <div class="content"> |
| 10 | <h1>Admin panel</h1> |
| 11 | |
| 12 | <div class="admin-menu"> |
| 13 | <span>Settings</span> |
| 14 | | |
| 15 | <a href="/admin/users">Users</a> |
| 16 | | |
| 17 | <a href="/admin/statistics">Statistics</a> |
| 18 | </div> |
| 19 | |
| 20 | <form action='/admin/settings' method='post' class='form' autocomplete='off'> |
| 21 | <div class="field"> |
| 22 | <label>OAuth client id:</label> |
| 23 | <input name='oauth_client_id' type='text' placeholder='...'> |
| 24 | </div> |
| 25 | <div class="field"> |
| 26 | <label>OAuth client secret:</label> |
| 27 | <input name='oauth_client_secret' type='text' placeholder='...'> |
| 28 | </div> |
| 29 | <div class="field"> |
| 30 | <input id="tree_folder_size_enabled" name="tree_folder_size_enabled" type="checkbox" |
| 31 | @if app.settings.tree_folder_size_enabled() |
| 32 | checked |
| 33 | @end |
| 34 | > |
| 35 | <label for="tree_folder_size_enabled">Display folder sizes in repository tree</label> |
| 36 | </div> |
| 37 | <div class="field"> |
| 38 | <input type='submit' value='Update settings'> |
| 39 | </div> |
| 40 | </form> |
| 41 | </div> |
| 42 | |
| 43 | @js '/js/block-form.js' |
| 44 | @include '../layout/footer.html' |
| 45 | </body> |
| 46 | </html> |
| 47 | |