File tree Expand file tree Collapse file tree 2 files changed +21
-5
lines changed Expand file tree Collapse file tree 2 files changed +21
-5
lines changed Original file line number Diff line number Diff line change @@ -21,6 +21,7 @@ signed_in_as = Signed in as
21
21
enable_javascript = This website works better with JavaScript.
22
22
toc = Table of Contents
23
23
licenses = Licenses
24
+ return_to_gitea = Return to Gitea
24
25
25
26
username = Username
26
27
email = Email Address
Original file line number Diff line number Diff line change 6
6
<link href="{{StaticUrlPrefix}}/css/swagger.css?v={{MD5 AppVer}}" rel="stylesheet">
7
7
<style>
8
8
html {
9
- box-sizing: border-box;
10
- overflow-y: scroll;
9
+ box-sizing: border-box;
10
+ overflow-y: scroll;
11
11
}
12
12
*, *:before, *:after {
13
- box-sizing: inherit;
13
+ box-sizing: inherit;
14
14
}
15
15
body {
16
- margin: 0;
17
- background: #fff;
16
+ margin: 0;
17
+ background: #fff;
18
+ }
19
+ .swagger-back-link {
20
+ color: #1f69c0;
21
+ text-decoration: none;
22
+ position: absolute;
23
+ top: 1rem;
24
+ right: 1.5rem;
25
+ display: flex;
26
+ align-items: center;
27
+ }
28
+ .swagger-back-link svg {
29
+ color: inherit;
30
+ fill: currentcolor;
31
+ margin-right: .5rem;
18
32
}
19
33
</style>
20
34
</head>
21
35
<body>
36
+ <a class="swagger-back-link" href="{{AppUrl}}">{{svg "octicon-reply" 16}}{{.i18n.Tr "return_to_gitea"}}</a>
22
37
<div id="swagger-ui" data-source="{{AppUrl}}swagger.{{.APIJSONVersion}}.json"></div>
23
38
<script src="{{StaticUrlPrefix}}/js/swagger.js?v={{MD5 AppVer}}"></script>
24
39
</body>
You can’t perform that action at this time.
0 commit comments