Revision: 26510 http://sourceforge.net/p/gar/code/26510 Author: wahwah Date: 2019-01-29 16:59:53 +0000 (Tue, 29 Jan 2019) Log Message: ----------- opencsw-manual/trunk: Small updates to the OSQA migration script
Modified Paths: -------------- csw/mgar/pkg/opencsw-manual/trunk/files/osqa-migration/answer.html.tmpl csw/mgar/pkg/opencsw-manual/trunk/files/osqa-migration/generate_answer_html.py csw/mgar/pkg/opencsw-manual/trunk/files/osqa-migration/question.html.tmpl Added Paths: ----------- csw/mgar/pkg/opencsw-manual/trunk/files/faq/ Modified: csw/mgar/pkg/opencsw-manual/trunk/files/osqa-migration/answer.html.tmpl =================================================================== --- csw/mgar/pkg/opencsw-manual/trunk/files/osqa-migration/answer.html.tmpl 2019-01-29 07:35:51 UTC (rev 26509) +++ csw/mgar/pkg/opencsw-manual/trunk/files/osqa-migration/answer.html.tmpl 2019-01-29 16:59:53 UTC (rev 26510) @@ -5,7 +5,7 @@ <meta charset="UTF-8" /> <link href="../../../css/style.css" rel="stylesheet" type="text/css" media="all" /> <link rel="canonical" href="https://www.opencsw.org/community/questions/{{id}}/{{title|slugify}}" /> - <title>OpenCSW Q&A Forum</title> + <title>{{ title }} — OpenCSW Q&A Forum</title> </head> <body> <div id="logo"> Modified: csw/mgar/pkg/opencsw-manual/trunk/files/osqa-migration/generate_answer_html.py =================================================================== --- csw/mgar/pkg/opencsw-manual/trunk/files/osqa-migration/generate_answer_html.py 2019-01-29 07:35:51 UTC (rev 26509) +++ csw/mgar/pkg/opencsw-manual/trunk/files/osqa-migration/generate_answer_html.py 2019-01-29 16:59:53 UTC (rev 26510) @@ -16,7 +16,7 @@ def datetimeformat(env, date, fmt='%Y-%m-%d'): date = datetime.datetime.strptime(date, "%Y-%m-%dT%H:%M:%S") native = date.replace(tzinfo=None) - return native.strftime(fmt) + return native.strftime(fmt) def Slugify(s): return '-'.join(x for x in re.findall('[0-9a-z_]*', s.lower()) if x) Modified: csw/mgar/pkg/opencsw-manual/trunk/files/osqa-migration/question.html.tmpl =================================================================== --- csw/mgar/pkg/opencsw-manual/trunk/files/osqa-migration/question.html.tmpl 2019-01-29 07:35:51 UTC (rev 26509) +++ csw/mgar/pkg/opencsw-manual/trunk/files/osqa-migration/question.html.tmpl 2019-01-29 16:59:53 UTC (rev 26510) @@ -1,5 +1,5 @@ <!DOCTYPE html> -<html lang="en"> +<html lang="en"> <head> <link href="./css/style.css" rel="stylesheet" type="text/css" media="all" /> <meta charset="UTF-8"/> @@ -21,7 +21,7 @@ </ul> </div> <p> -We retired the OSQA community website and archive the posts. This web site offers the content collected the last years. +We have retired the OSQA community website and archived the posts. This web site offers the content collected the last years. <br/> If you have a question, write to the users mailing list us...@lists.opencsw.org or join the IRC #opencsw. </p> @@ -31,7 +31,7 @@ <ul id="quest"> {% for quest in questions %} <li> - <a href=questions/{{ quest.id }}/{{ quest.title|slugify }}/index.html >{{ quest.title }}</a> + <a href="questions/{{ quest.id }}/{{ quest.title|slugify }}/">{{ quest.title }}</a> </li> {% endfor %} </ul> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.