diff --git a/issues/templates/issues/detail.html b/issues/templates/issues/detail.html index 42ea47c..e25b70d 100644 --- a/issues/templates/issues/detail.html +++ b/issues/templates/issues/detail.html @@ -1,6 +1,12 @@ -
- Project: {{ issue.project }}
- Created: {{ issue.create_date }}
-
{{ issue.text }}
\ No newline at end of file +{% extends "base.html" %} + +{% block title %}Issue: {{ issue.title }}{% endblock %} + +{% block content %} +
+ Project: {{ issue.project }}
+ Created: {{ issue.create_date }}
+
{{ issue.text }}
+{% endblock %} diff --git a/issues/templates/issues/index.html b/issues/templates/issues/index.html index c109698..9eb3e07 100644 --- a/issues/templates/issues/index.html +++ b/issues/templates/issues/index.html @@ -1,13 +1,19 @@ -{% if issue_list %} -No issues.
-{% endif %} +{% extends "base.html" %} - +{% block title %}Issues{% endblock %} + +{% block content %} + {% if issue_list %} +No issues.
+ {% endif %} + + +{% endblock %} diff --git a/issues/templates/issues/new.html b/issues/templates/issues/new.html index e9b9899..0e6d87c 100644 --- a/issues/templates/issues/new.html +++ b/issues/templates/issues/new.html @@ -1,15 +1,21 @@ -{{ error_message }}
{% endif %} +{% block title %}Create issue{% endblock %} - +{% block content %} +{{ error_message }}
{% endif %} + + +{% endblock %} diff --git a/projects/templates/projects/index.html b/projects/templates/projects/index.html index b64c0da..ee9bb64 100644 --- a/projects/templates/projects/index.html +++ b/projects/templates/projects/index.html @@ -1,11 +1,17 @@ -{% if project_list %} -No projects.
-{% endif %} \ No newline at end of file +{% extends "base.html" %} + +{% block title %}Projects{% endblock %} + +{% block content %} + {% if project_list %} +No projects.
+ {% endif %} +{% endblock %} diff --git a/projects/templates/projects/view.html b/projects/templates/projects/view.html index e38e16f..afae756 100644 --- a/projects/templates/projects/view.html +++ b/projects/templates/projects/view.html @@ -1,15 +1,21 @@ -{{ project.description }}
+{% extends "base.html" %} -This project has no issues yet.
-{% endif %} \ No newline at end of file +{% block title %}Project: {{ project.name }}{% endblock %} + +{% block content %} +{{ project.description }}
+ +This project has no issues yet.
+ {% endif %} +{% endblock %} diff --git a/templates/base.html b/templates/base.html new file mode 100644 index 0000000..c54107f --- /dev/null +++ b/templates/base.html @@ -0,0 +1,12 @@ + + + +