This website works better with JavaScript.
Home
Issues
Pull Requests
Milestones
Repositories
Datasets
Forum
实训
竞赛
大数据
应用
Register
Sign In
OpenI
/
aiforge
Not watched
Unwatch
Watch all
Watch but not notify
1
Star
0
Fork
0
Code
Releases
128
Wiki
Activity
Issues
0
Pull Requests
0
Datasets
Model
Cloudbrain
Browse Source
feat: add options adn templates
master
colorfulberry
4 years ago
parent
c399b20a9e
commit
09e99d0526
4 changed files
with
19 additions
and
0 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+1
-0
options/locale/locale_en-US.ini
+1
-0
options/locale/locale_zh-CN.ini
+1
-0
templates/base/footer_content.tmpl
+16
-0
templates/swagger/ui.tmpl
+ 1
- 0
options/locale/locale_en-US.ini
View File
@@ -21,6 +21,7 @@ user_profile_and_more = Profile and Settings…
signed_in_as = Signed in as
enable_javascript = This website works better with JavaScript.
toc = Table of Contents
return=Back OpenI
username = Username
email = Email Address
+ 1
- 0
options/locale/locale_zh-CN.ini
View File
@@ -21,6 +21,7 @@ user_profile_and_more=个人信息和配置
signed_in_as=已登录用户
enable_javascript=使用 JavaScript能使本网站更好的工作。
toc=目录
return=返回OpenI
username=用户名
email=电子邮件地址
+ 1
- 0
templates/base/footer_content.tmpl
View File
@@ -26,6 +26,7 @@
{{end}}
</div>
</div>
{{if .EnableSwagger}}<a href="/api/swagger" class="ui item">API</a>{{end}}
{{template "custom/extra_links_footer" .}}
</div>
</div>
+ 16
- 0
templates/swagger/ui.tmpl
View File
@@ -16,9 +16,25 @@
margin: 0;
background: #fff;
}
.swagger-back-link {
color: #1f69c0;
text-decoration: none;
position: absolute;
top: 1rem;
right: 1.5rem;
display: flex;
align-items: center;
}
.swagger-back-link svg {
color: inherit;
fill: currentColor;
margin-right: .5rem;
}
</style>
</head>
<body>
<a class="swagger-back-link" href="{{AppUrl}}">{{svg "octicon-reply" 16}}{{.i18n.Tr "return"}}</a>
<div id="swagger-ui" data-source="{{AppUrl}}swagger.{{.APIJSONVersion}}.json"></div>
<script src="{{StaticUrlPrefix}}/js/swagger.js?v={{MD5 AppVer}}"></script>
</body>
Write
Preview
Loading…
Cancel
Save