ソースを参照

Started Implementing Donate Button

Yoginth 7 年 前
コミット
497669897a
4 ファイル変更194 行追加187 行削除
  1. 1 0
      conf/locale/locale_en-GB.ini
  2. 1 0
      conf/locale/locale_en-US.ini
  3. 187 187
      pkg/bindata/bindata.go
  4. 5 0
      templates/repo/header.tmpl

+ 1 - 0
conf/locale/locale_en-GB.ini

@@ -493,6 +493,7 @@ branches = Branches
 tags = Tags
 issues = Issues
 pulls = Pull Requests
+donate = Donate
 labels = Labels
 milestones = Milestones
 commits = Commits

+ 1 - 0
conf/locale/locale_en-US.ini

@@ -493,6 +493,7 @@ branches = Branches
 tags = Tags
 issues = Issues
 pulls = Pull Requests
+donate = Donate
 labels = Labels
 milestones = Milestones
 commits = Commits

ファイルの差分が大きいため隠しています
+ 187 - 187
pkg/bindata/bindata.go


+ 5 - 0
templates/repo/header.tmpl

@@ -84,6 +84,11 @@
 					<i class="menu-icon octicon">📜</i> {{.i18n.Tr "repo.wiki"}}
 				</a>
 			{{end}}
+			{{if .IsBeta}}
+				<a class="{{if .PageIsWiki}}active{{end}} item" href="{{.RepoLink}}/wiki">
+					<i class="menu-icon octicon">💸</i> {{.i18n.Tr "repo.donate"}}
+				</a>
+			{{end}}
 			{{if .IsRepositoryAdmin}}
 				<div class="right menu">
 					<a class="{{if .PageIsSettings}}active{{end}} item" href="{{.RepoLink}}/settings">