[PATCH 2/2] ui-shared: Use html_link_open/html_link_close

Bernhard Reutner-Fischer rep.dot.nop at gmail.com
Fri Jun 19 16:10:24 CEST 2015


.. where appropriate

Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop at gmail.com>
---
 ui-shared.c | 9 +++------
 1 file changed, 3 insertions(+), 6 deletions(-)

diff --git a/ui-shared.c b/ui-shared.c
index 8334739..3750239 100644
--- a/ui-shared.c
+++ b/ui-shared.c
@@ -882,11 +882,8 @@ static void print_header(void)
 
 	if (logo && *logo) {
 		html("<td class='logo' rowspan='2'>");
-		if (any_logo_link) {
-			html("<a href='");
-			html_attr(logo_link);
-			html("'>");
-		}
+		if (any_logo_link)
+			html_link_open(logo_link, NULL, NULL);
 		html("<img src='");
 		html_attr(logo);
 		if (logo_alt && *logo_alt) {
@@ -895,7 +892,7 @@ static void print_header(void)
 		}
 		html("'/>");
 		if (any_logo_link)
-			html("</a>");
+			html_link_close();
 		html("</td>\n");
 	}
 
-- 
2.1.4



More information about the CGit mailing list