diff --git a/src/IDF/Views/Wiki.php b/src/IDF/Views/Wiki.php index fb5bcb9..a2ba561 100644 --- a/src/IDF/Views/Wiki.php +++ b/src/IDF/Views/Wiki.php @@ -228,6 +228,10 @@ class IDF_Views_Wiki throw new Pluf_HTTP_Error404($request); } } + $ptags = self::getWikiTags($prj); + $dtag = array_pop($ptags); // The last tag is the deprecated tag. + $tags = $page->get_tags_list(); + $dep = Pluf_Model_InArray($dtag, $tags); $title = $page->title; $revision = $page->get_current_revision(); $db = $page->getDbConnection(); @@ -241,7 +245,8 @@ class IDF_Views_Wiki 'oldrev' => $oldrev, 'rev' => $revision, 'revs' => $revs, - 'tags' => $page->get_tags_list(), + 'tags' => $tags, + 'deprecated' => $dep, ), $request); } diff --git a/src/IDF/templates/idf/wiki/view.html b/src/IDF/templates/idf/wiki/view.html index 838eaa2..96ae5cd 100644 --- a/src/IDF/templates/idf/wiki/view.html +++ b/src/IDF/templates/idf/wiki/view.html @@ -1,8 +1,14 @@ {extends "idf/wiki/base.html"} {block extraheader}{if $oldrev}{/if}{/block} {block docclass}yui-t3{assign $inView=true}{/block} -{block body} +{block body} +{if $deprecated}{* deprecated page *} +
{blocktrans}Attention! This page is marked as deprecated, +use it as reference only if you are sure you need these specific information.{/blocktrans}
+