summaryrefslogtreecommitdiffstats
path: root/templates/devtest/gitea-ui.tmpl
blob: 1ab9ae7b7c7aa784d6449e0c491e0e40c09482d6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
{{template "base/head" .}}
<div class="page-content devtest ui container">

	<div>
		<h1>Tooltip</h1>
		<div><span data-tooltip-content="test tooltip">text with tooltip</span></div>
		<div><span data-tooltip-content="test tooltip" data-tooltip-interactive="true">text with interactive tooltip</span></div>
	</div>

	<div>
		<h1>GiteaOriginUrl</h1>
		<div><gitea-origin-url data-url="test/url"></gitea-origin-url></div>
		<div><gitea-origin-url data-url="/test/url"></gitea-origin-url></div>
	</div>

	<div>
		<h1>LocaleNumber</h1>
		<div>{{LocaleNumber 1}}</div>
		<div>{{LocaleNumber 12}}</div>
		<div>{{LocaleNumber 123}}</div>
		<div>{{LocaleNumber 1234}}</div>
		<div>{{LocaleNumber 12345}}</div>
		<div>{{LocaleNumber 123456}}</div>
		<div>{{LocaleNumber 1234567}}</div>
	</div>

	<div>
		<h1>TimeSince</h1>
		<div>Now: {{TimeSince .TimeNow $.locale}}</div>
		<div>5s past: {{TimeSince .TimePast5s $.locale}}</div>
		<div>5s future: {{TimeSince .TimeFuture5s $.locale}}</div>
		<div>2m past: {{TimeSince .TimePast2m $.locale}}</div>
		<div>2m future: {{TimeSince .TimeFuture2m $.locale}}</div>
		<div>1y past: {{TimeSince .TimePast1y $.locale}}</div>
		<div>1y future: {{TimeSince .TimeFuture1y $.locale}}</div>
	</div>

	<div>
		<h1>ComboMarkdownEditor</h1>
		<div>ps: no JS code attached, so just a layout</div>
		{{template "shared/combomarkdowneditor" .}}
	</div>

	<style>
		h1 {
			margin: 0;
			padding: 10px 0;
		}
	</style>
</div>
{{template "base/footer" .}}