mirror of
				https://gitee.com/gitea/gitea
				synced 2025-11-04 08:30:25 +08:00 
			
		
		
		
	Add nofollow to sign in links (#8509)
This commit is contained in:
		@@ -125,7 +125,7 @@
 | 
			
		||||
					<i class="octicon octicon-person"></i> {{.i18n.Tr "register"}}
 | 
			
		||||
				</a>
 | 
			
		||||
			{{end}}
 | 
			
		||||
			<a class="item{{if .PageIsSignIn}} active{{end}}" href="{{AppSubUrl}}/user/login?redirect_to={{.Link}}">
 | 
			
		||||
			<a class="item{{if .PageIsSignIn}} active{{end}}" rel="nofollow" href="{{AppSubUrl}}/user/login?redirect_to={{.Link}}">
 | 
			
		||||
				<i class="octicon octicon-sign-in"></i> {{.i18n.Tr "sign_in"}}
 | 
			
		||||
			</a>
 | 
			
		||||
		</div><!-- end anonymous right menu -->
 | 
			
		||||
 
 | 
			
		||||
@@ -36,7 +36,7 @@
 | 
			
		||||
					</div>
 | 
			
		||||
					{{if and (not .IsEmpty) ($.Permission.CanRead $.UnitTypeCode)}}
 | 
			
		||||
						<div class="ui labeled button {{if and ($.IsSigned) (not $.CanSignedUserFork)}}disabled-repo-button{{end}}" tabindex="0">
 | 
			
		||||
							<a class="ui compact basic button {{if or (not $.IsSigned) (not $.CanSignedUserFork)}}poping up{{end}}" {{if $.CanSignedUserFork}}href="{{AppSubUrl}}/repo/fork/{{.ID}}"{{else if $.IsSigned}} data-content="{{$.i18n.Tr "repo.fork_from_self"}}" {{ else }} data-content="{{$.i18n.Tr "repo.fork_guest_user" }}" href="{{AppSubUrl}}/user/login?redirect_to={{AppSubUrl}}/repo/fork/{{.ID}}" {{end}} data-position="top center" data-variation="tiny">
 | 
			
		||||
							<a class="ui compact basic button {{if or (not $.IsSigned) (not $.CanSignedUserFork)}}poping up{{end}}" {{if $.CanSignedUserFork}}href="{{AppSubUrl}}/repo/fork/{{.ID}}"{{else if $.IsSigned}} data-content="{{$.i18n.Tr "repo.fork_from_self"}}" {{ else }} data-content="{{$.i18n.Tr "repo.fork_guest_user" }}" rel="nofollow" href="{{AppSubUrl}}/user/login?redirect_to={{AppSubUrl}}/repo/fork/{{.ID}}" {{end}} data-position="top center" data-variation="tiny">
 | 
			
		||||
								<i class="octicon octicon-repo-forked"></i>{{$.i18n.Tr "repo.fork"}}
 | 
			
		||||
							</a>
 | 
			
		||||
							<a class="ui basic label" href="{{.Link}}/forks">
 | 
			
		||||
 
 | 
			
		||||
@@ -1,9 +1,9 @@
 | 
			
		||||
{{if .EnableOpenIDSignIn}}
 | 
			
		||||
<div class="ui secondary pointing tabular top attached borderless menu new-menu navbar">
 | 
			
		||||
	<a class="{{if .PageIsLogin}}active{{end}} item" href="{{AppSubUrl}}/user/login">
 | 
			
		||||
	<a class="{{if .PageIsLogin}}active{{end}} item" rel="nofollow" href="{{AppSubUrl}}/user/login">
 | 
			
		||||
		{{.i18n.Tr "auth.login_userpass"}}
 | 
			
		||||
	</a>
 | 
			
		||||
	<a class="{{if .PageIsLoginOpenID}}active{{end}} item" href="{{AppSubUrl}}/user/login/openid">
 | 
			
		||||
	<a class="{{if .PageIsLoginOpenID}}active{{end}} item" rel="nofollow" href="{{AppSubUrl}}/user/login/openid">
 | 
			
		||||
		<i class="fa fa-openid"></i>
 | 
			
		||||
		 OpenID
 | 
			
		||||
	</a>
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user