From c2e374964a95d103de0b2e58a989c2d90a636556 Mon Sep 17 00:00:00 2001 From: Sven Slootweg Date: Wed, 16 Jan 2013 07:51:27 +0100 Subject: [PATCH] Fix project-not-found page and project URLs --- public_html/modules/error/project.php | 3 ++- public_html/templates/error/project.tpl | 3 +++ public_html/templates/project/index.tpl | 6 +++--- public_html/templates/project/layout.tpl | 14 +++++++------- 4 files changed, 15 insertions(+), 11 deletions(-) create mode 100644 public_html/templates/error/project.tpl diff --git a/public_html/modules/error/project.php b/public_html/modules/error/project.php index 32f1e38..e3a9600 100644 --- a/public_html/modules/error/project.php +++ b/public_html/modules/error/project.php @@ -13,4 +13,5 @@ if(!isset($_APP)) { die("Unauthorized."); } -$sPageContents = "That project does not exist."; +$sPageContents = NewTemplater::Render("error/project", $locale->strings, array()); +$router->uVariables['page_type'] = ""; diff --git a/public_html/templates/error/project.tpl b/public_html/templates/error/project.tpl new file mode 100644 index 0000000..536c998 --- /dev/null +++ b/public_html/templates/error/project.tpl @@ -0,0 +1,3 @@ +
+ The project you are looking for does not appear to exist. +
diff --git a/public_html/templates/project/index.tpl b/public_html/templates/project/index.tpl index 6817e8d..6e597aa 100644 --- a/public_html/templates/project/index.tpl +++ b/public_html/templates/project/index.tpl @@ -2,14 +2,14 @@

Downloads

{%if isempty|stable-version == false} - + Latest stable {%?stable-version} {%/if} {%if isempty|experimental-version == false} - + Latest testing {%?experimental-version} @@ -37,7 +37,7 @@
  • {%?ticket[title]} {%?ticket[date]}
  • {%/foreach} {%if more-tickets == true} -
  • more...
  • +
  • more...
  • {%/if} {%else} No tickets. diff --git a/public_html/templates/project/layout.tpl b/public_html/templates/project/layout.tpl index dc99c3f..f495de4 100644 --- a/public_html/templates/project/layout.tpl +++ b/public_html/templates/project/layout.tpl @@ -4,13 +4,13 @@