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
2121enable_javascript = This website works better with JavaScript.
2222toc = Table of Contents
2323licenses = Licenses
24+ return_to_gitea = Return to Gitea
2425
2526username = Username
2627email = Email Address
Original file line number Diff line number Diff line change 66 <link href="{{StaticUrlPrefix}}/css/swagger.css?v={{MD5 AppVer}}" rel="stylesheet">
77 <style>
88 html {
9- box-sizing: border-box;
10- overflow-y: scroll;
9+ box-sizing: border-box;
10+ overflow-y: scroll;
1111 }
1212 *, *:before, *:after {
13- box-sizing: inherit;
13+ box-sizing: inherit;
1414 }
1515 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;
1832 }
1933 </style>
2034 </head>
2135 <body>
36+ <a class="swagger-back-link" href="{{AppUrl}}">{{svg "octicon-reply" 16}}{{.i18n.Tr "return_to_gitea"}}</a>
2237 <div id="swagger-ui" data-source="{{AppUrl}}swagger.{{.APIJSONVersion}}.json"></div>
2338 <script src="{{StaticUrlPrefix}}/js/swagger.js?v={{MD5 AppVer}}"></script>
2439 </body>
You can’t perform that action at this time.
0 commit comments