Fixed issue 19, help disconnected from the project.

Use the tip from zero heure. https://linuxfr.org/~erlen/27028.html
This commit is contained in:
Loic d'Anterroches 2008-08-11 20:10:33 +02:00
parent 1cf3a73fe1
commit 740979a4cb
2 changed files with 7 additions and 1 deletions

View File

@ -170,9 +170,11 @@ class IDF_Views
public function faq($request, $match)
{
$title = __('Here to Help You!');
$projects = Pluf::factory('IDF_Project')->getList();
return Pluf_Shortcuts_RenderToResponse('faq.html',
array(
'page_title' => $title,
'projects' => $projects,
),
$request);

View File

@ -1,5 +1,5 @@
{extends "base-simple.html"}
{block docclass}yui-t1{/block}
{block docclass}yui-t3{/block}
{block body}
<ul>
<li><a href="#q-keyboard">{trans 'What are the keyboard shortcuts?'}</a></li>
@ -32,4 +32,8 @@
{/block}
{block context}
<p>{trans 'Here we are, just to help you.'}</p>
<h2>{trans 'Projects'}</h2>
<ul>{foreach $projects as $p}
<li><a href="{url 'IDF_Views_Project::home', array($p.shortname)}">{$p}</a></li>
{/foreach}</ul>
{/block}