Fixed issue 55, improvements for the wiki.
This commit is contained in:
parent
b528bf356c
commit
82ed55f1a0
@ -228,6 +228,10 @@ class IDF_Views_Wiki
|
|||||||
throw new Pluf_HTTP_Error404($request);
|
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;
|
$title = $page->title;
|
||||||
$revision = $page->get_current_revision();
|
$revision = $page->get_current_revision();
|
||||||
$db = $page->getDbConnection();
|
$db = $page->getDbConnection();
|
||||||
@ -241,7 +245,8 @@ class IDF_Views_Wiki
|
|||||||
'oldrev' => $oldrev,
|
'oldrev' => $oldrev,
|
||||||
'rev' => $revision,
|
'rev' => $revision,
|
||||||
'revs' => $revs,
|
'revs' => $revs,
|
||||||
'tags' => $page->get_tags_list(),
|
'tags' => $tags,
|
||||||
|
'deprecated' => $dep,
|
||||||
),
|
),
|
||||||
$request);
|
$request);
|
||||||
}
|
}
|
||||||
|
@ -1,8 +1,14 @@
|
|||||||
{extends "idf/wiki/base.html"}
|
{extends "idf/wiki/base.html"}
|
||||||
{block extraheader}{if $oldrev}<meta name="ROBOTS" content="NOINDEX" />{/if}{/block}
|
{block extraheader}{if $oldrev}<meta name="ROBOTS" content="NOINDEX" />{/if}{/block}
|
||||||
{block docclass}yui-t3{assign $inView=true}{/block}
|
{block docclass}yui-t3{assign $inView=true}{/block}
|
||||||
{block body}
|
|
||||||
|
|
||||||
|
{block body}
|
||||||
|
{if $deprecated}{* deprecated page *}
|
||||||
|
<div class="deprecated-page">
|
||||||
|
<p>{blocktrans}<strong>Attention!</strong> This page is marked as deprecated,
|
||||||
|
use it as reference only if you are sure you need these specific information.{/blocktrans}</p>
|
||||||
|
</div>
|
||||||
|
{/if}
|
||||||
{if $oldrev}
|
{if $oldrev}
|
||||||
{assign $submitter = $oldrev.get_submitter()}{aurl 'url', 'IDF_Views_Wiki::view', array($project.shortname, $page.title)}
|
{assign $submitter = $oldrev.get_submitter()}{aurl 'url', 'IDF_Views_Wiki::view', array($project.shortname, $page.title)}
|
||||||
<div class="old-rev">
|
<div class="old-rev">
|
||||||
|
@ -599,6 +599,20 @@ div.old-rev {
|
|||||||
-webkit-border-radius: 5px;
|
-webkit-border-radius: 5px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
div.deprecated-page {
|
||||||
|
padding: 1em 1em 0.1em 3em;
|
||||||
|
margin-bottom: 1em;
|
||||||
|
background: url("../img/warning-large.png");
|
||||||
|
background-repeat: no-repeat;
|
||||||
|
background-position: 1em 1em;
|
||||||
|
font-size: 120%;
|
||||||
|
background-color: #bbe394;
|
||||||
|
width: 40%;
|
||||||
|
-moz-border-radius: 5px;
|
||||||
|
-webkit-border-radius: 5px;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
.delp {
|
.delp {
|
||||||
float: right;
|
float: right;
|
||||||
position: relative;
|
position: relative;
|
||||||
|
BIN
www/media/idf/img/warning-large.png
Normal file
BIN
www/media/idf/img/warning-large.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 954 B |
Loading…
Reference in New Issue
Block a user