List for cgit developers and users
 help / color / mirror / Atom feed
* [PATCH 1/2] filters: Remove .py extension from rst2html
@ 2015-06-19 14:10 rep.dot.nop
  2015-06-19 14:10 ` [PATCH 2/2] ui-shared: Use html_link_open/html_link_close rep.dot.nop
  0 siblings, 1 reply; 2+ messages in thread
From: rep.dot.nop @ 2015-06-19 14:10 UTC (permalink / raw)


python-docutils from debian ships rst2html without the .py extension

Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop at gmail.com>
---
 filters/html-converters/rst2html | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/filters/html-converters/rst2html b/filters/html-converters/rst2html
index c51f5be..a1ba574 100755
--- a/filters/html-converters/rst2html
+++ b/filters/html-converters/rst2html
@@ -1,2 +1,2 @@
 #!/bin/sh
-rst2html.py --template="$(dirname $0)/resources/rst-template.txt"
+rst2html --template="$(dirname $0)/resources/rst-template.txt"
-- 
2.1.4



^ permalink raw reply	[flat|nested] 2+ messages in thread

* [PATCH 2/2] ui-shared: Use html_link_open/html_link_close
  2015-06-19 14:10 [PATCH 1/2] filters: Remove .py extension from rst2html rep.dot.nop
@ 2015-06-19 14:10 ` rep.dot.nop
  0 siblings, 0 replies; 2+ messages in thread
From: rep.dot.nop @ 2015-06-19 14:10 UTC (permalink / raw)


.. 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



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2015-06-19 14:10 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-06-19 14:10 [PATCH 1/2] filters: Remove .py extension from rst2html rep.dot.nop
2015-06-19 14:10 ` [PATCH 2/2] ui-shared: Use html_link_open/html_link_close rep.dot.nop

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).