From 5f1fcdc380337a737785a6f0ec6589c4709aad57 Mon Sep 17 00:00:00 2001 From: Doug Hellmann Date: Wed, 12 Sep 2018 13:36:11 -0400 Subject: [PATCH] make the project list template sharable Move the main part of the project list template into a base template and use it for the most recent few series. Leave the older series alone because they vary a bit from the newer ones. Change-Id: I6f9d443533bda87b1dffe90a4833449a89d307aa Signed-off-by: Doug Hellmann --- www/pike/projects.html | 107 +------------------------------- www/queens/projects.html | 105 +------------------------------ www/rocky/projects.html | 107 +------------------------------- www/stein/projects.html | 107 +------------------------------- www/templates/project_list.tmpl | 106 +++++++++++++++++++++++++++++++ 5 files changed, 110 insertions(+), 422 deletions(-) create mode 100644 www/templates/project_list.tmpl diff --git a/www/pike/projects.html b/www/pike/projects.html index 7df0ed9f92..badd874e92 100644 --- a/www/pike/projects.html +++ b/www/pike/projects.html @@ -1,106 +1 @@ -{% set projects = PROJECT_DATA[SERIES] %} -{% extends "templates/base.tmpl" %} -{% block pagetitle %}{{SERIES_TITLE}} Services and Libraries{% endblock %} -{% block title %} -Documentation > Services and Libraries -{% endblock %} -{% block content %} - -
-
-
-
-

OpenStack {{SERIES_TITLE}} Projects

-

- This page contains project-specific documentation for - OpenStack services and libraries. -

-
-
-
-
-
-
-
-
-
-
-
- - - - - - - - - - - -
-
- - - -
-
-
-
-

Documentation treated like code, powered by the community - interested?

- How To Contribute -
-
-
-
- -{% endblock content %} +{% extends "templates/project_list.tmpl" %} diff --git a/www/queens/projects.html b/www/queens/projects.html index d6df165ad7..badd874e92 100644 --- a/www/queens/projects.html +++ b/www/queens/projects.html @@ -1,104 +1 @@ -{% set projects = PROJECT_DATA[SERIES] %} -{% extends "templates/base.tmpl" %} -{% block pagetitle %}{{SERIES_TITLE}} Services and Libraries{% endblock %} -{% block title %} -Documentation > Services and Libraries -{% endblock %} -{% block content %} - -
-
-
-
-

OpenStack {{SERIES_TITLE}} Projects

-

- This page contains project-specific documentation for - OpenStack services and libraries. -

-
-
-
-
-
-
-
-
-
-
-
- - - - - - - - - - - -
-
- - - -
-
-
-
-

Documentation treated like code, powered by the community - interested?

- How To Contribute -
-
-
-
- -{% endblock content %} +{% extends "templates/project_list.tmpl" %} diff --git a/www/rocky/projects.html b/www/rocky/projects.html index 1cdd806556..badd874e92 100644 --- a/www/rocky/projects.html +++ b/www/rocky/projects.html @@ -1,106 +1 @@ -{% set projects = PROJECT_DATA[SERIES] %} -{% extends "templates/base.tmpl" %} -{% block pagetitle %}{{SERIES_TITLE}} Services and Libraries{% endblock %} -{% block title %} -Documentation > Services and Libraries -{% endblock %} -{% block content %} - -
-
-
-
-

OpenStack {{SERIES_TITLE}} Projects

-

- This page contains project-specific documentation for - OpenStack services and libraries. -

-
-
-
-
-
-
-
-
-
-
-
- - - - - - - - - - - -
-
- - - -
-
-
-
-

Documentation treated like code, powered by the community - interested?

- How To Contribute -
-
-
-
- -{% endblock content %} +{% extends "templates/project_list.tmpl" %} diff --git a/www/stein/projects.html b/www/stein/projects.html index 7df0ed9f92..badd874e92 100644 --- a/www/stein/projects.html +++ b/www/stein/projects.html @@ -1,106 +1 @@ -{% set projects = PROJECT_DATA[SERIES] %} -{% extends "templates/base.tmpl" %} -{% block pagetitle %}{{SERIES_TITLE}} Services and Libraries{% endblock %} -{% block title %} -Documentation > Services and Libraries -{% endblock %} -{% block content %} - -
-
-
-
-

OpenStack {{SERIES_TITLE}} Projects

-

- This page contains project-specific documentation for - OpenStack services and libraries. -

-
-
-
-
-
-
-
-
-
-
-
- - - - - - - - - - - -
-
- - - -
-
-
-
-

Documentation treated like code, powered by the community - interested?

- How To Contribute -
-
-
-
- -{% endblock content %} +{% extends "templates/project_list.tmpl" %} diff --git a/www/templates/project_list.tmpl b/www/templates/project_list.tmpl new file mode 100644 index 0000000000..1cdd806556 --- /dev/null +++ b/www/templates/project_list.tmpl @@ -0,0 +1,106 @@ +{% set projects = PROJECT_DATA[SERIES] %} +{% extends "templates/base.tmpl" %} +{% block pagetitle %}{{SERIES_TITLE}} Services and Libraries{% endblock %} +{% block title %} +Documentation > Services and Libraries +{% endblock %} +{% block content %} + +
+
+
+
+

OpenStack {{SERIES_TITLE}} Projects

+

+ This page contains project-specific documentation for + OpenStack services and libraries. +

+
+
+
+
+
+
+
+
+
+
+
+ + + + + + + + + + + +
+
+ + + +
+
+
+
+

Documentation treated like code, powered by the community - interested?

+ How To Contribute +
+
+
+
+ +{% endblock content %}