Browse Source

Updated to Old Style #81

Yoginth 7 years ago
parent
commit
0bb1bc450e
2 changed files with 8 additions and 5 deletions
  1. 6 3
      templates/repo/header.tmpl
  2. 2 2
      templates/user/profile.tmpl

+ 6 - 3
templates/repo/header.tmpl

@@ -28,7 +28,7 @@
 								{{$.CSRFTokenHTML}}
 								<div class="ui labeled button" tabindex="0">
 									<button class="ui basic button">
-										<i class="eye{{if not $.IsWatchingRepo}} slash outline{{end}} icon"></i>{{if $.IsWatchingRepo}}{{$.i18n.Tr "repo.unwatch"}}{{else}}{{$.i18n.Tr "repo.watch"}}{{end}}
+										<i class="menu-icon octicon">👀</i> {{if $.IsWatchingRepo}}{{$.i18n.Tr "repo.unwatch"}}{{else}}{{$.i18n.Tr "repo.watch"}}{{end}}
 									</button>
 									<a class="ui basic label" href="{{.Link}}/watchers">
 										{{.NumWatches}}
@@ -39,14 +39,17 @@
 								{{$.CSRFTokenHTML}}
 								<div class="ui labeled button" tabindex="0">
 									<button class="ui basic button">
-										<i class="star{{if not $.IsStaringRepo}} outline{{end}} icon"></i>{{if $.IsStaringRepo}}{{$.i18n.Tr "repo.unstar"}}{{else}}{{$.i18n.Tr "repo.star"}}{{end}}
+										{{if $.IsStaringRepo}}
+											<i class="menu-icon octicon">🌟</i> {{$.i18n.Tr "repo.unstar"}}
+										{{else}}
+											<i class="menu-icon octicon">⭐</i> {{$.i18n.Tr "repo.star"}}
+										{{end}}
 									</button>
 									<a class="ui basic label" href="{{.Link}}/stars">
 										{{.NumStars}}
 									</a>
 								</div>
 							</form>
-							
 							{{if .CanBeForked}}
 								<div class="ui labeled button" tabindex="0">
 									<a class="ui basic button {{if eq .OwnerID $.LoggedUserID}}poping up{{end}}" href="{{AppSubURL}}/repo/fork/{{.ID}}">

+ 2 - 2
templates/user/profile.tmpl

@@ -232,14 +232,14 @@
 										<form action="{{.Link}}/action/unfollow?redirect_to={{$.Link}}" method="POST">
 											{{.CSRFTokenHTML}}
 											<button class="ui basic red button">
-												<i class="octicon octicon-person"></i> {{.i18n.Tr "user.unfollow"}}
+												<i class="menu-icon octicon">👦🏽</i> {{.i18n.Tr "user.unfollow"}}
 											</button>
 										</form>
 									{{else}}
 										<form action="{{.Link}}/action/follow?redirect_to={{$.Link}}" method="POST">
 											{{.CSRFTokenHTML}}
 											<button class="ui basic green button">
-												<i class="octicon octicon-person"></i> {{.i18n.Tr "user.follow"}}
+												<i class="menu-icon octicon">👦</i> {{.i18n.Tr "user.follow"}}
 											</button>
 										</form>
 									{{end}}