| 1 | <div class="panel"> |
| 2 | <div class="head"> |
| 3 | 📚 <a href="/{{OWNER}}">{{OWNER}}</a> / <strong>{{REPO}}</strong> |
| 4 | <span class="vis-badge {{VISIBILITY}}">{{VISIBILITY}}</span> |
| 5 | </div> |
| 6 | <div class="body"> |
| 7 | <p>{{DESCRIPTION}}</p> |
| 8 | <div class="repo-meta"> |
| 9 | <span>📃 {{COMMIT_COUNT}} commits</span> |
| 10 | · |
| 11 | <span>📄 {{FILE_COUNT}} files</span> |
| 12 | · |
| 13 | <span>📅 created {{CREATED_DATE}}</span> |
| 14 | </div> |
| 15 | <div class="repo-nav"> |
| 16 | <a class="btn" href="/{{OWNER}}/{{REPO}}">📝 Code</a> |
| 17 | <a class="btn" href="/{{OWNER}}/{{REPO}}/history">📃 History</a> |
| 18 | <a class="btn" href="/{{OWNER}}/{{REPO}}/archive/{{REF}}.zip">⬇ Download ZIP</a> |
| 19 | {{SETTINGS_LINK}} |
| 20 | </div> |
| 21 | <div class="repo-meta"> |
| 22 | <label for="branchSel">Branch:</label> |
| 23 | <select id="branchSel" onchange="switchBranch(this.value)">{{BRANCH_OPTIONS}}</select> |
| 24 | </div> |
| 25 | <div class="clone-box"> |
| 26 | <label>Clone:</label> |
| 27 | <input class="url" id="cloneUrl" value="" readonly> |
| 28 | </div> |
| 29 | </div> |
| 30 | </div> |
| 31 | |
| 32 | {{LANG_BAR}} |
| 33 | |
| 34 | <div class="panel"> |
| 35 | <div class="head">📁 Files</div> |
| 36 | <table class="retro file-tree"> |
| 37 | <thead> |
| 38 | <tr><th>Type</th><th>Name</th></tr> |
| 39 | </thead> |
| 40 | <tbody> |
| 41 | {{TREE_ROWS}} |
| 42 | </tbody> |
| 43 | </table> |
| 44 | </div> |
| 45 | |
| 46 | {{README_HTML}} |
| 47 | |
| 48 | <script> |
| 49 | (function() { |
| 50 | var owner = '{{OWNER}}', repo = '{{REPO}}'; |
| 51 | document.getElementById('cloneUrl').value = window.location.origin + '/' + owner + '/' + repo + '.git'; |
| 52 | })(); |
| 53 | function switchBranch(ref) { |
| 54 | var owner = '{{OWNER}}', repo = '{{REPO}}'; |
| 55 | window.location = '/' + owner + '/' + repo + '/tree/' + encodeURIComponent(ref); |
| 56 | } |
| 57 | </script> |
| 58 | |