瀏覽代碼

Added Private email to beta

Yoginth 7 年之前
父節點
當前提交
54be5bb5b7
共有 3 個文件被更改,包括 20 次插入1 次删除
  1. 9 0
      public/css/gitote.css
  2. 10 0
      public/less/_base.less
  3. 1 1
      templates/user/settings/profile.tmpl

+ 9 - 0
public/css/gitote.css

@@ -507,6 +507,15 @@ footer .ui.language .menu {
   font-size: 15px;
   font-family: monospace;
 }
+.beta-badge {
+  padding: 2px 5px;
+  margin-left: 8px;
+  color: #21BA45;
+  border-radius: 4px;
+  font-size: 11px;
+  font-weight: bold;
+  border: 1px solid #21BA45;
+}
 @media only screen and (max-width: 991px) and (min-width: 768px) {
   .ui.container {
     width: 95%;

+ 10 - 0
public/less/_base.less

@@ -565,6 +565,16 @@ footer {
 	}	
 }
 
+.beta-badge {
+	padding: 2px 5px;
+    margin-left: 8px;
+    color: #21BA45;
+    border-radius: 4px;
+    font-size: 11px;
+    font-weight: bold;
+    border: 1px solid #21BA45;
+}
+
 @media only screen and (max-width: 991px) and (min-width: 768px) {
 	.ui.container {
 		width: 95%;

+ 1 - 1
templates/user/settings/profile.tmpl

@@ -37,7 +37,7 @@
 						</div>
 						<div class="inline field">
 							<div class="ui checkbox">
-								<label><strong>Email is Private</strong></label>
+								<label><strong>Email is Private</strong><span class="beta-badge">Beta</span></label>
 								<input name="private_email" type="checkbox" {{if .private_email}}checked{{end}}>
 							</div>
 						</div>