Browse Source

Merge pull request 'fix-887 底部增加图标' (#1298) from fix-887 into V20220110

Reviewed-on: https://git.openi.org.cn/OpenI/aiforge/pulls/1298
Reviewed-by: zhoupzh <zhoupzh@pcl.ac.cn>
tags/v1.22.1.1^2
zhoupzh 3 years ago
parent
commit
5de94efe21
7 changed files with 26 additions and 13 deletions
  1. +2
    -2
      options/locale/locale_en-US.ini
  2. +5
    -4
      templates/base/footer_content.tmpl
  3. +4
    -4
      templates/base/footer_content_fluid.tmpl
  4. +1
    -0
      templates/base/head.tmpl
  5. +1
    -0
      templates/base/head_fluid.tmpl
  6. +1
    -0
      templates/base/head_pro.tmpl
  7. +12
    -3
      web_src/less/openi.less

+ 2
- 2
options/locale/locale_en-US.ini View File

@@ -2697,5 +2697,5 @@ foot.member_news = Member news
foot.industry_advisory = Industry Advisory
foot.help = help
foot.copyright= Copyright: New Generation Artificial Intelligence Open Source Open Platform (OpenI)
Platform_Tutorial=Platform Tutorial
foot.advice_feedback=advice feedback
Platform_Tutorial = Tutorial
foot.advice_feedback = Feedback

+ 5
- 4
templates/base/footer_content.tmpl View File

@@ -26,12 +26,13 @@
{{end}}
</div>
</div>
<a href="https://git.openi.org.cn/zeizei/OpenI_Learning" class="ui item" target="_blank">{{.i18n.Tr "custom.Platform_Tutorial"}}</a>
{{if .EnableSwagger}}<a href="/api/swagger" class="ui item">API</a>{{end}}

<a href="https://git.openi.org.cn/zeizei/OpenI_Learning" class=" item a_margin" target="_blank"><i class="ri-creative-commons-by-line footer_icon" ></i><p class="footer_icon">{{.i18n.Tr "custom.Platform_Tutorial"}}</p> </a>
{{if .EnableSwagger}}<a href="/api/swagger" class=" item a_margin"><i class="ri-exchange-line footer_icon" > </i><p class="footer_icon">API</p> </a>{{end}}
{{if .IsSigned}}
<a href="https://git.openi.org.cn/zeizei/OpenI_Learning/issues/new" class="ui item" target="_blank">{{.i18n.Tr "custom.foot.advice_feedback"}}</a>
<a href="https://git.openi.org.cn/zeizei/OpenI_Learning/issues/new" class=" item a_margin" target="_blank"><i class="ri-mail-send-line footer_icon"></i><p class="footer_icon">{{.i18n.Tr "custom.foot.advice_feedback"}}</p></a>
{{else}}
<a href="{{AppSubUrl}}/user/login" class="ui item">{{.i18n.Tr "custom.foot.advice_feedback"}}</a>
<a href="{{AppSubUrl}}/user/login" class=" item a_margin" ><i class="ri-mail-send-line" ></i><p class="footer_icon footer_icon">{{.i18n.Tr "custom.foot.advice_feedback"}}</p></a>
{{end}}

{{template "custom/extra_links_footer" .}}


+ 4
- 4
templates/base/footer_content_fluid.tmpl View File

@@ -26,12 +26,12 @@
{{end}}
</div>
</div>
<a href="https://git.openi.org.cn/zeizei/OpenI_Learning" class="ui item" target="_blank">{{.i18n.Tr "custom.Platform_Tutorial"}}</a>
{{if .EnableSwagger}}<a href="/api/swagger" class="ui item">API</a>{{end}}
<a href="https://git.openi.org.cn/zeizei/OpenI_Learning" class=" item a_margin" target="_blank"><i class="ri-creative-commons-by-line footer_icon" ></i><p class="footer_icon">{{.i18n.Tr "custom.Platform_Tutorial"}}</p> </a>
{{if .EnableSwagger}}<a href="/api/swagger" class=" item a_margin"><i class="ri-exchange-line footer_icon" > </i><p class="footer_icon">API</p> </a>{{end}}
{{if .IsSigned}}
<a href="https://git.openi.org.cn/zeizei/OpenI_Learning/issues/new" class="ui item" target="_blank">{{.i18n.Tr "custom.foot.advice_feedback"}}</a>
<a href="https://git.openi.org.cn/zeizei/OpenI_Learning/issues/new" class=" item a_margin" target="_blank"><i class="ri-mail-send-line footer_icon"></i><p class="footer_icon">{{.i18n.Tr "custom.foot.advice_feedback"}}</p></a>
{{else}}
<a href="{{AppSubUrl}}/user/login" class="ui item">{{.i18n.Tr "custom.foot.advice_feedback"}}</a>
<a href="{{AppSubUrl}}/user/login" class=" item a_margin" ><i class="ri-mail-send-line" ></i><p class="footer_icon footer_icon">{{.i18n.Tr "custom.foot.advice_feedback"}}</p></a>
{{end}}
{{template "custom/extra_links_footer" .}}
</div>


+ 1
- 0
templates/base/head.tmpl View File

@@ -174,6 +174,7 @@
{{else if ne DefaultTheme "gitea"}}
<link rel="stylesheet" href="{{StaticUrlPrefix}}/css/theme-{{DefaultTheme}}.css?v={{MD5 AppVer}}">
{{end}}
<link rel="stylesheet" href="/RemixIcon_Fonts_v2.5.0/fonts/remixicon.css">
{{template "custom/header" .}}

<script>


+ 1
- 0
templates/base/head_fluid.tmpl View File

@@ -174,6 +174,7 @@
{{else if ne DefaultTheme "gitea"}}
<link rel="stylesheet" href="{{StaticUrlPrefix}}/css/theme-{{DefaultTheme}}.css?v={{MD5 AppVer}}">
{{end}}
<link rel="stylesheet" href="/RemixIcon_Fonts_v2.5.0/fonts/remixicon.css">
{{template "custom/header" .}}

<script>


+ 1
- 0
templates/base/head_pro.tmpl View File

@@ -174,6 +174,7 @@
{{else if ne DefaultTheme "gitea"}}
<link rel="stylesheet" href="{{StaticUrlPrefix}}/css/theme-{{DefaultTheme}}.css?v={{MD5 AppVer}}">
{{end}}
<link rel="stylesheet" href="/RemixIcon_Fonts_v2.5.0/fonts/remixicon.css">
{{template "custom/header" .}}

<script>


+ 12
- 3
web_src/less/openi.less View File

@@ -597,10 +597,19 @@ display: block;
background: #E5F4F4
}
.x_icon{
float: right;
float: right!important;
margin-right: 15px !important;
}
.a_width{
width: 50%;
display:inline-block
width: 50% !important;
display:inline-block !important;
}

.footer_icon{
display: inline-block !important;
vertical-align: middle !important;
margin-right:0.8em !important;
}
.a_margin{
margin: 0px !important;
}

Loading…
Cancel
Save