]> source.dussan.org Git - gitea.git/commitdiff
Fix duplicated rel attribute (#2549)
authorJorge Maldonado Ventura <jorgesumle@freakspot.net>
Wed, 20 Sep 2017 04:20:11 +0000 (06:20 +0200)
committerLauris BH <lauris@nix.lv>
Wed, 20 Sep 2017 04:20:11 +0000 (07:20 +0300)
According to the HTML 5.1 recommendation "The rel attribute on a
and area elements controls what kinds of links the elements create.
The attribute’s value must be a set of space-separated tokens."
(source https://www.w3.org/TR/html51/links.html#links-created-by-a-and-area-elements)

templates/base/head.tmpl

index 23292cdbcd5f3bc1afae79a089c6078556441673..cd4533f4140ddf438ffd3a07e7034b0b867e668f 100644 (file)
                                                                                                        <i class="octicon octicon-settings"></i>
                                                                                                        {{.i18n.Tr "your_settings"}}<!-- Your settings -->
                                                                                                </a>
-                                                                                               <a class="item" target="_blank" rel="noopener" href="https://docs.gitea.io" rel="noreferrer">
+                                                                                               <a class="item" target="_blank" rel="noopener noreferrer" href="https://docs.gitea.io">
                                                                                                        <i class="octicon octicon-question"></i>
                                                                                                        {{.i18n.Tr "help"}}<!-- Help -->
                                                                                                </a>
 
                                                                {{else}}
 
-                                                                       <a class="item" target="_blank" rel="noopener" href="https://docs.gitea.io" rel="noreferrer">{{.i18n.Tr "help"}}</a>
+                                                                       <a class="item" target="_blank" rel="noopener noreferrer" href="https://docs.gitea.io">{{.i18n.Tr "help"}}</a>
                                                                        <div class="right menu">
                                                                                {{if .ShowRegistrationButton}}
                                                                                        <a class="item{{if .PageIsSignUp}} active{{end}}" href="{{AppSubUrl}}/user/sign_up">