views/repo-home.html - git - Webernet Explorer _X
git 🏠 Home 👤 Sign up Self hosted git, retro shell
★ otgit, code hosting from the year 2000 ★
📄 octuna / views / repo-home.html
58 lines · 1.7 KB · Raw
1<div class="panel">
2 <div class="head">
3 &#128218; <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>&#128195; {{COMMIT_COUNT}} commits</span>
10 &nbsp;&middot;&nbsp;
11 <span>&#128196; {{FILE_COUNT}} files</span>
12 &nbsp;&middot;&nbsp;
13 <span>&#128197; created {{CREATED_DATE}}</span>
14 </div>
15 <div class="repo-nav">
16 <a class="btn" href="/{{OWNER}}/{{REPO}}">&#128221; Code</a>
17 <a class="btn" href="/{{OWNER}}/{{REPO}}/history">&#128195; History</a>
18 <a class="btn" href="/{{OWNER}}/{{REPO}}/archive/{{REF}}.zip">&#11015; 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">&#128193; 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 
Done 🔒 Internet