Indefero

Indefero Commit Details


Date:2008-08-11 13:10:33 (16 years 4 months ago)
Author:Loic d'Anterroches
Branch:dev, develop, feature-issue_links, feature.better-home, feature.content-md5, feature.diff-whitespace, feature.download-md5, feature.issue-links, feature.issue-of-others, feature.issue-summary, feature.search-filter, feature.webrepos, feature.wiki-default-page, master, release-1.1, release-1.2, release-1.3, svn
Commit:740979a4cbb9841f0c4c27db5dce6b9f80eef173
Parents: 1cf3a73fe15fe472319a3fa5aaf97902650c34c7
Message:Fixed issue 19, help disconnected from the project.

Use the tip from zero heure. https://linuxfr.org/~erlen/27028.html
Changes:

File differences

src/IDF/Views.php
170170
171171
172172
173
173174
174175
175176
177
176178
177179
178180
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);
src/IDF/templates/faq.html
11
2
2
33
44
55
......
3232
3333
3434
35
36
37
38
3539
{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>
{/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}

Archive Download the corresponding diff file

Page rendered in 0.07325s using 14 queries.