By using this site, you agree to have cookies stored on your device, strictly for functional purposes, such as storing your session and preferences.

Dismiss

 repo-tree.html

View raw Download
text/plain • 8.81 kiB
exported SGML document, ASCII text
        
            
1
{% extends "repo.html" %}
2
{% block title %}
3
Tree of {{ username }}/{{ repository }}
4
{% endblock %}
5
{% block content %}
6
<!--
7
<dialog id="commit-dialog">
8
<x-frame style="--width: 768px; --margin: 0;">
9
<div class="card">
10
<section class="card-main">
11
<form>
12
<x-vbox>
13
<x-hbox style="align-items: center; justify-content: space-between;">
14
<h3>Commit</h3>
15
<button class="button-flat big-button"><iconify-icon icon="mdi:close"></iconify-icon></button>
16
</x-hbox>
17
<div>
18
<h4>Changes (-100, +100)</h4>
19
<ul>
20
<li>File 1: removed</li>
21
<li>File 2: created</li>
22
<li>File 3: modified</li>
23
</ul>
24
</div>
25
<x-vbox class="flexible-space nopad">
26
<input id="commit-message" placeholder="Commit message">
27
<textarea rows="6"></textarea>
28
</x-vbox>
29
<x-buttonbox class="buttonbox-right">
30
<button class="button-flat" onclick="document.getElementById('stash-dialog').showModal(); return false;">
31
<iconify-icon icon="mdi:close-box-multiple"></iconify-icon>
32
Stash
33
</button>
34
<button>
35
<iconify-icon icon="mdi:send-check"></iconify-icon>
36
Commit
37
</button>
38
</x-buttonbox>
39
</x-vbox>
40
</form>
41
</section>
42
</div>
43
</x-frame>
44
</dialog>
45
<dialog id="stash-dialog">
46
<x-frame style="--width: 320px; --margin: 0;">
47
<div class="card">
48
<section class="card-main">
49
<form method="dialog">
50
<x-vbox>
51
<div>
52
<h4>Stash changes</h4>
53
<p>Are you sure you want to stash your changes? They will be permanently lost.</p>
54
</div>
55
<x-buttonbox class="buttonbox-right">
56
<button class="button-flat">
57
No
58
</button>
59
<button class="button-flat">
60
Yes
61
</button>
62
</x-buttonbox>
63
</x-vbox>
64
</form>
65
</section>
66
</div>
67
</x-frame>
68
</dialog>
69
-->
70
71
<x-vbox>
72
<!--
73
<x-frame style="--width: 896px;">
74
<article class="card">
75
<section class="card-main">
76
<x-hbox style="align-items: center; justify-content: space-between;">
77
You've got uncommitted changes (N files)
78
<x-buttonbox>
79
<button class="button-flat" onclick="document.getElementById('stash-dialog').showModal();">
80
<iconify-icon icon="mdi:close-box-multiple"></iconify-icon>
81
Stash
82
</button>
83
<button onclick="document.getElementById('commit-dialog').showModal();">
84
<iconify-icon icon="mdi:send"></iconify-icon>
85
Commit
86
</button>
87
</x-buttonbox>
88
</x-hbox>
89
</section>
90
</article>
91
</x-frame>
92
<dialog id="new-branch">
93
<x-frame style="--width: 448px; --margin: 0;">
94
<div class="card">
95
<section class="card-main">
96
<form method="get">
97
<x-vbox>
98
<div>
99
<h4>Create new branch</h4>
100
<p>The branch will be based on the currently selected branch.</p>
101
</div>
102
<x-vbox class="nopad">
103
<label for="current">Copy of:</label>
104
<input id="current" name="current" value="{{ current }}" disabled>
105
</x-vbox>
106
<x-vbox class="nopad">
107
<label for="name">Name</label>
108
<input id="name" name="name" placeholder="{{ current }}" value="" required>
109
</x-vbox>
110
<label><input type="checkbox" id="orphan">Orphan branch</label>
111
<x-buttonbox class="buttonbox-right">
112
<button class="button-flat" onclick="document.getElementById('new-branch').close(); document.getElementById('branch-selection').value = 'branch-{{ current }}';">
113
Cancel
114
</button>
115
<button class="button-flat" type="submit">
116
Create
117
</button>
118
</x-buttonbox>
119
</x-vbox>
120
</form>
121
</section>
122
</div>
123
</x-frame>
124
</dialog>
125
-->
126
<x-frame style="--width: 896px;" class="flexible-space">
127
<article class="card">
128
<section class="card-main">
129
<x-vbox>
130
<x-buttonbox>
131
{% include "path-bar.html" %}
132
<button onclick="history.back();" class="button-flat big-button">
133
<iconify-icon icon="mdi:arrow-left"></iconify-icon>
134
</button>
135
<button onclick="history.forward();" class="button-flat big-button">
136
<iconify-icon icon="mdi:arrow-right"></iconify-icon>
137
</button>
138
<a href="../" class="button button-flat big-button">
139
<iconify-icon icon="mdi:arrow-up"></iconify-icon>
140
</a>
141
<a href="/{{ username }}/{{ repository }}/tree/{{ current }}/" class="button button-flat big-button">
142
<iconify-icon icon="mdi:home"></iconify-icon>
143
</a>
144
<a href="" class="button button-flat big-button">
145
<iconify-icon icon="mdi:refresh"></iconify-icon>
146
</a>
147
</x-buttonbox>
148
{% include "tree-view.html" %}
149
<!--
150
<x-buttonbox class="buttonbox">
151
<button class="button-flat big-button">
152
<iconify-icon icon="mdi:file-plus"></iconify-icon>
153
</button>
154
<button class="button-flat big-button">
155
<iconify-icon icon="mdi:upload"></iconify-icon>
156
</button>
157
<div class="flexible-space"></div>
158
<button class="button-flat big-button" disabled>
159
<iconify-icon icon="mdi:open-in-app"></iconify-icon>
160
</button>
161
<button class="button-flat big-button">
162
<iconify-icon icon="mdi:download"></iconify-icon>
163
</button>
164
<button class="button-flat big-button">
165
<iconify-icon icon="mdi:share"></iconify-icon>
166
</button>
167
<button class="button-flat big-button" disabled>
168
<iconify-icon icon="mdi:content-copy"></iconify-icon>
169
</button>
170
<button class="button-flat big-button" disabled>
171
<iconify-icon icon="mdi:content-cut"></iconify-icon>
172
</button>
173
<button class="button-flat big-button" disabled>
174
<iconify-icon icon="mdi:content-paste"></iconify-icon>
175
</button>
176
<button class="button-flat big-button" disabled>
177
<iconify-icon icon="mdi:rename"></iconify-icon>
178
</button>
179
<button class="button-flat big-button" disabled>
180
<iconify-icon icon="mdi:delete"></iconify-icon>
181
</button>
182
</x-buttonbox>
183
-->
184
</x-vbox>
185
</section>
186
</article>
187
</x-frame>
188
</x-vbox>
189
{% endblock %}