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-file.html

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