瀏覽代碼

Repo URL is aligned left

Yoginth 7 年之前
父節點
當前提交
889ba01434
共有 3 個文件被更改,包括 11 次插入1 次删除
  1. 3 0
      public/css/gitote.css
  2. 7 0
      public/less/_repository.less
  3. 1 1
      templates/repo/home.tmpl

+ 3 - 0
public/css/gitote.css

@@ -2745,6 +2745,9 @@ footer .ui.language .menu {
   margin-left: 26px;
   padding-top: 0;
 }
+.repo.url {
+  margin-left: 5px;
+}
 .webhook .hook.history.list .right.menu .redelivery.button {
   font-size: 12px;
   margin-top: 6px;

+ 7 - 0
public/less/_repository.less

@@ -1632,6 +1632,13 @@
 		}
 	}
 }
+
+.repo {
+	&.url {
+		margin-left: 5px;
+	}	
+}
+
 // End of .repository
 
 // Should apply organization webhooks page

+ 1 - 1
templates/repo/home.tmpl

@@ -9,7 +9,7 @@
 		{{end}}
 			<p id="repo-desc">
 				{{if .Repository.Description}}<span class="description has-emoji">{{.Repository.Description | NewLine2br | Str2html}}</span>{{else}}<span class="no-description text-italic">{{.i18n.Tr "repo.no_desc"}}</span>{{end}}
-				<a class="link" href="{{.Repository.Website}}">{{.Repository.Website}}</a>
+				<a class="link repo url" href="{{.Repository.Website}}">{{.Repository.Website}}</a>
 			</p>
 			<div class="ui segment" id="git-stats">
 				<div class="ui two horizontal center link list">