瀏覽代碼

Started Implementing Night Mode

Yoginth 7 年之前
父節點
當前提交
5690132334
共有 3 個文件被更改,包括 1342 次插入4 次删除
  1. 3 3
      models/repo_test.go
  2. 1 0
      public/css/gitote.night.min.css
  3. 1338 1
      public/less/_night.less

+ 3 - 3
models/repo_test.go

@@ -14,7 +14,7 @@ func TestRepo(t *testing.T) {
 		repo.Name = "testrepo"
 		repo.Owner = new(User)
 		repo.Owner.Name = "testuser"
-		repo.ExternalTrackerFormat = "https://someurl.com/{user}/{repo}/{issue}"
+		repo.ExternalTrackerFormat = "https://gitlab.com/{user}/{repo}/{issue}"
 
 		Convey("When no external tracker is configured", func() {
 			Convey("It should be nil", func() {
@@ -23,7 +23,7 @@ func TestRepo(t *testing.T) {
 			})
 			Convey("It should be nil even if other settings are present", func() {
 				repo.EnableExternalTracker = false
-				repo.ExternalTrackerFormat = "http://someurl.com/{user}/{repo}/{issue}"
+				repo.ExternalTrackerFormat = "http://gitlab.com/{user}/{repo}/{issue}"
 				repo.ExternalTrackerStyle = markup.ISSUE_NAME_STYLE_NUMERIC
 				So(repo.ComposeMetas(), ShouldEqual, map[string]string(nil))
 			})
@@ -55,7 +55,7 @@ func TestRepo(t *testing.T) {
 			})
 			Convey("It should contain the URL format", func() {
 				metas := repo.ComposeMetas()
-				So(metas["format"], ShouldEqual, "https://someurl.com/{user}/{repo}/{issue}")
+				So(metas["format"], ShouldEqual, "https://gitlab.com/{user}/{repo}/{issue}")
 			})
 		})
 	})

File diff suppressed because it is too large
+ 1 - 0
public/css/gitote.night.min.css


File diff suppressed because it is too large
+ 1338 - 1
public/less/_night.less