소스 검색

[templates] Update head

To allow changing the custom GIN header content via the
gogs custom templates, the corresponding code is moved
to its own template file.

Should enable easy updates for in-house-gin deployments.
M. Sonntag 3 년 전
부모
커밋
e897b7c65c
4개의 변경된 파일137개의 추가작업 그리고 133개의 파일을 삭제
  1. 112 112
      internal/assets/public/public_gen.go
  2. 22 19
      internal/assets/templates/templates_gen.go
  3. 1 2
      templates/base/head.tmpl
  4. 2 0
      templates/base/head_gin.tmpl

파일 크기가 너무 크기때문에 변경 상태를 표시하지 않습니다.
+ 112 - 112
internal/assets/public/public_gen.go


파일 크기가 너무 크기때문에 변경 상태를 표시하지 않습니다.
+ 22 - 19
internal/assets/templates/templates_gen.go


+ 1 - 2
templates/base/head.tmpl

@@ -110,8 +110,7 @@
 									</div>
 									</div>*/}}
 
-								<a class="item" href="/G-Node/info/wiki" rel="noreferrer"><i class="octicon octicon-question"></i>{{.i18n.Tr "help"}}</a>
-								<a class="item" href="/G-Node/Info/wiki/News">News</a>
+								{{template "base/head_gin" $}}
 								{{if .IsLogged}}
 									<div class="right menu">
 										<div class="ui dropdown head link jump item poping up" data-content="{{.i18n.Tr "create_new"}}" data-variation="tiny inverted">

+ 2 - 0
templates/base/head_gin.tmpl

@@ -0,0 +1,2 @@
+<a class="item" href="/G-Node/info/wiki" rel="noreferrer"><i class="octicon octicon-question"></i>{{.i18n.Tr "help"}}</a>
+<a class="item" href="/G-Node/Info/wiki/News">News</a>

이 변경점에서 너무 많은 파일들이 변경되어 몇몇 파일들은 표시되지 않았습니다.