浏览代码

Merge branch 'master' of https://gitote.in/gitote/gitote

Yoginth 7 年之前
父节点
当前提交
13ac3e42c6

+ 1 - 3
README.md

@@ -114,9 +114,7 @@ View **Gitote** documentations [here](docs)
 
 ## Core team 👬
 
-- [@yogi](https://gitote.in/yogi)
-- [@dimensi0n](https://gitote.in/dimensi0n)
-- [@dantehemerson](https://gitote.in/dantehemerson)
+- [@yoginth](https://gitote.in/yogi)
 
 ## Sponsors 🤗
 

+ 1 - 0
cmd/web.go

@@ -317,6 +317,7 @@ func runWeb(c *cli.Context) error {
 	m.Get("/features", ignSignIn, pages.Features)
 	m.Get("/request", ignSignIn, pages.FeatureRequest)
 	m.Get("/sponsorship", ignSignIn, pages.Sponsorship)
+	m.Get("/sponsors", ignSignIn, pages.Sponsors)
 
 	// ***** END: Pages *****
 

+ 1 - 1
gitote.go

@@ -29,7 +29,7 @@ import (
 )
 
 // AppVer represents the version of Gitote
-const AppVer = "1.0.1-prod-rc.26"
+const AppVer = "1.0.2-prod-rc.1"
 
 // APIVer represents the API version of Gitote
 const APIVer = "v1"

文件差异内容过多而无法显示
+ 1 - 1
models/user.go


文件差异内容过多而无法显示
+ 1 - 1
public/css/gitote.min.css


+ 10 - 0
routes/pages/pages.go

@@ -53,6 +53,9 @@ const (
 	// SponsorshipTPL page template
 	SponsorshipTPL = "pages/sponsorship"
 
+	// SponsorsTPL page template
+	SponsorsTPL = "pages/sponsors"
+
 	// SitemapTPL page template
 	SitemapTPL = "pages/sitemap"
 )
@@ -157,3 +160,10 @@ func Sponsorship(c *context.Context) {
 
 	c.HTML(200, SponsorshipTPL)
 }
+
+// Sponsors shows sponsorship page
+func Sponsors(c *context.Context) {
+	c.Data["Title"] = "Sponsorship"
+
+	c.HTML(200, SponsorsTPL)
+}

+ 10 - 0
templates/pages/sponsors.tmpl

@@ -0,0 +1,10 @@
+<div class="pages bg">
+    {{template "base/head" .}}
+    <div class="pages head">
+        <p class="text">Gitote Features</p>
+    </div>
+    <div class="pages body">
+        {{template "misc/soon" .}}
+    </div>
+    {{template "base/footer" .}}
+</div>

+ 5 - 1
templates/repo/bare.tmpl

@@ -53,7 +53,11 @@ git push -u origin master</code></pre>
 						</div>
 					{{else}}
 						<div class="ui segment center">
-							{{.i18n.Tr "repo.bare_message"}}
+							<div class="ui center dashboard no-activity">
+								<img class="ui avatar small image" src="https://cdn.gitote.in/img/svg/collection.svg">
+								<br/>
+								<h2>{{.i18n.Tr "repo.bare_message"}}</h2>
+							</div>
 						</div>
 					{{end}}
 				</div>

+ 7 - 1
templates/repo/issue/list.tmpl

@@ -101,7 +101,13 @@
 				</div>
 			</div>
 		</div>
-
+		{{if not .Issues}}
+			<div class="ui center dashboard no-activity">
+				<img class="ui avatar small image" src="https://cdn.gitote.in/img/svg/no_data.svg">
+				<br/>
+				<h2>Nothing Here</h2>
+			</div>
+		{{end}}
 		<div class="issue list">
 			{{range .Issues}}
 				{{ $timeStr:= TimeSince .Created $.Lang }}

+ 7 - 1
templates/repo/issue/milestones.tmpl

@@ -22,7 +22,13 @@
 				{{.i18n.Tr "repo.milestones.close_tab" .ClosedCount}}
 			</a>
 		</div>
-
+		{{if not .Milestones}}
+			<div class="ui center dashboard no-activity">
+				<img class="ui avatar small image" src="https://cdn.gitote.in/img/svg/milestone.svg">
+				<br/>
+				<h2>No Milestones</h2>
+			</div>
+		{{end}}
 		<div class="milestone list">
 			{{range .Milestones}}
 				<li class="item">