Merge branch 'develop' of projects.ceondo.com:indefero into develop

This commit is contained in:
Thomas Keller 2011-02-24 13:39:58 +01:00
commit e4b3adb2f5
22 changed files with 28876 additions and 28762 deletions

View File

@ -25,6 +25,8 @@ Much appreciated contributors:
Raphaël Emourgeon Raphaël Emourgeon
Jakub Viták Jakub Viták
Vladimir Solomatin Vladimir Solomatin
William Martin <wysman@gmail.com>
Thomas Keller <me@thomaskeller.biz>
And all the nice users who spent time reporting issues and promoting And all the nice users who spent time reporting issues and promoting
the project. The project could not live without them. the project. The project could not live without them.

View File

@ -37,6 +37,7 @@ docroot.
$ sudo pear upgrade-all $ sudo pear upgrade-all
$ sudo pear install --alldeps Mail $ sudo pear install --alldeps Mail
$ sudo pear install --alldeps Mail_mime $ sudo pear install --alldeps Mail_mime
$ sudo pear install --alldeps Console_Getopt
If you already have some of the PEAR packages installed with your If you already have some of the PEAR packages installed with your
distribution, the `Mail` package is often not up-to-date, distribution, the `Mail` package is often not up-to-date,
@ -222,4 +223,4 @@ functions. You need to prevent the overload as it does not make sense
anyway (magic in the background is bad!). anyway (magic in the background is bad!).
See the [corresponding ticket][reglink]. See the [corresponding ticket][reglink].
[reglink]: http://projects.ceondo.com/p/indefero/issues/481/ [reglink]: http://projects.ceondo.com/p/indefero/issues/481/

View File

@ -79,6 +79,7 @@ class IDF_Form_UserAccount extends Pluf_Form
'widget' => 'Pluf_Form_Widget_PasswordInput', 'widget' => 'Pluf_Form_Widget_PasswordInput',
'help_text' => Pluf_Template::markSafe(__('Leave blank if you do not want to change your password.').'<br />'.__('Your password must be hard for other people to find it, but easy for you to remember.')), 'help_text' => Pluf_Template::markSafe(__('Leave blank if you do not want to change your password.').'<br />'.__('Your password must be hard for other people to find it, but easy for you to remember.')),
'widget_attrs' => array( 'widget_attrs' => array(
'autocomplete' => 'off',
'maxlength' => 50, 'maxlength' => 50,
'size' => 15, 'size' => 15,
), ),
@ -89,6 +90,7 @@ class IDF_Form_UserAccount extends Pluf_Form
'initial' => '', 'initial' => '',
'widget' => 'Pluf_Form_Widget_PasswordInput', 'widget' => 'Pluf_Form_Widget_PasswordInput',
'widget_attrs' => array( 'widget_attrs' => array(
'autocomplete' => 'off',
'maxlength' => 50, 'maxlength' => 50,
'size' => 15, 'size' => 15,
), ),

View File

@ -71,12 +71,10 @@ class IDF_Views_Download
$pag->no_results_text = __('No downloads were found.'); $pag->no_results_text = __('No downloads were found.');
$pag->sort_order = array('creation_dtime', 'DESC'); $pag->sort_order = array('creation_dtime', 'DESC');
$pag->setFromRequest($request); $pag->setFromRequest($request);
$tags = $prj->getTagCloud('downloads');
return Pluf_Shortcuts_RenderToResponse('idf/downloads/index.html', return Pluf_Shortcuts_RenderToResponse('idf/downloads/index.html',
array( array(
'page_title' => $title, 'page_title' => $title,
'downloads' => $pag, 'downloads' => $pag,
'tags' => $tags,
'deprecated' => count($ids), 'deprecated' => count($ids),
'dlabel' => $dtag, 'dlabel' => $dtag,
), ),
@ -370,4 +368,4 @@ function IDF_Views_Download_SummaryAndLabels($field, $down, $extra='')
function IDF_Views_Download_Size($field, $down) function IDF_Views_Download_Size($field, $down)
{ {
return Pluf_Utils::prettySize($down->$field); return Pluf_Utils::prettySize($down->$field);
} }

View File

@ -71,8 +71,7 @@ class IDF_Views_Issue
'page_title' => $title, 'page_title' => $title,
'open' => $open, 'open' => $open,
'closed' => $closed, 'closed' => $closed,
'issues' => $pag, 'issues' => $pag);
'cloud' => 'issues');
if ($api) return $params; if ($api) return $params;
return Pluf_Shortcuts_RenderToResponse('idf/issues/index.html', return Pluf_Shortcuts_RenderToResponse('idf/issues/index.html',
$params, $request); $params, $request);

View File

@ -56,11 +56,15 @@ class IDF_Views_Source
public function invalidRevision($request, $match) public function invalidRevision($request, $match)
{ {
$title = sprintf(__('%s Invalid Revision'), (string) $request->project); $title = sprintf(__('%s Invalid Revision'), (string) $request->project);
$scm = IDF_Scm::get($request->project);
$branches = $scm->getBranches();
$commit = $match[2]; $commit = $match[2];
$params = array( $params = array(
'page_title' => $title, 'page_title' => $title,
'title' => $title, 'title' => $title,
'commit' => $commit, 'commit' => $commit,
'branches' => $branches,
); );
return Pluf_Shortcuts_RenderToResponse('idf/source/invalid_revision.html', return Pluf_Shortcuts_RenderToResponse('idf/source/invalid_revision.html',
$params, $request); $params, $request);

View File

@ -67,12 +67,10 @@ class IDF_Views_Wiki
$pag->no_results_text = __('No documentation pages were found.'); $pag->no_results_text = __('No documentation pages were found.');
$pag->sort_order = array('title', 'ASC'); $pag->sort_order = array('title', 'ASC');
$pag->setFromRequest($request); $pag->setFromRequest($request);
$tags = $prj->getTagCloud('wiki');
return Pluf_Shortcuts_RenderToResponse('idf/wiki/index.html', return Pluf_Shortcuts_RenderToResponse('idf/wiki/index.html',
array( array(
'page_title' => $title, 'page_title' => $title,
'pages' => $pag, 'pages' => $pag,
'tags' => $tags,
'deprecated' => count($ids), 'deprecated' => count($ids),
'dlabel' => $dtag, 'dlabel' => $dtag,
), ),

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@ -9,13 +9,9 @@
{/block} {/block}
{block context} {block context}
<p><strong>{trans 'Number of files:'}</strong> {$downloads.nb_items}</p> <p><strong>{trans 'Number of files:'}</strong> {$downloads.nb_items}</p>
{assign $class = ''}{assign $i = 0} {assign $cloud_url = 'IDF_Views_Download::listLabel'}
{if !$label or $label.id != $dlabel.id} {assign $cloud = 'downloads'}
<p class="smaller">{foreach $tags as $lab} {include 'idf/tags-cloud.html'}
{aurl 'url', 'IDF_Views_Download::listLabel', array($project.shortname, $lab.id)}
{if $class != $lab.class}{if $i != 0}<br />{/if}<strong class="label">{$lab.class}:</strong> {/if}
<a href="{$url}" class="label">{$lab.name}</a>,{assign $i = $i + 1}{assign $class = $lab.class}{/foreach}</p>
{/if}
{if $deprecated > 0} {if $deprecated > 0}
{aurl 'url', 'IDF_Views_Download::listLabel', array($project.shortname, $dlabel.id)} {aurl 'url', 'IDF_Views_Download::listLabel', array($project.shortname, $dlabel.id)}
<p class="helptext">{blocktrans}See <a href="{$url}">the deprecated files</a>.{/blocktrans}</p> <p class="helptext">{blocktrans}See <a href="{$url}">the deprecated files</a>.{/blocktrans}</p>

View File

@ -12,9 +12,7 @@
{aurl 'closed_url', 'IDF_Views_Issue::listStatus', array($project.shortname, 'closed')} {aurl 'closed_url', 'IDF_Views_Issue::listStatus', array($project.shortname, 'closed')}
{blocktrans}<p><strong>Open issues:</strong> <a href="{$open_url}">{$open}</a></p> {blocktrans}<p><strong>Open issues:</strong> <a href="{$open_url}">{$open}</a></p>
<p><strong>Closed issues:</strong> <a href="{$closed_url}">{$closed}</a></p>{/blocktrans} <p><strong>Closed issues:</strong> <a href="{$closed_url}">{$closed}</a></p>{/blocktrans}
{assign $class = ''}{assign $i = 0} {assign $cloud_url = 'IDF_Views_Issue::listLabel'}
<p class="smaller">{foreach $project.getTagCloud($cloud) as $label} {assign $cloud = 'issues'}
{aurl 'url', 'IDF_Views_Issue::listLabel', array($project.shortname, $label.id, 'open')} {include 'idf/tags-cloud.html'}
{if $class != $label.class}{if $i != 0}<br />{/if}<strong class="label">{$label.class}:</strong> {/if}
<a href="{$url}" class="label">{$label.name}</a>,{assign $class = $label.class}{assign $i = $i + 1}{/foreach}</p>
{/block} {/block}

View File

@ -29,7 +29,7 @@ document.getElementById('id_login').focus()
{block context} {block context}
<div class="issue-submit-info"> <div class="issue-submit-info">
<h3>{trans 'Welcome.'}</h3> <h3>{trans 'Welcome.'}</h3>
<p>{trans 'If you don\'t have an account yet, you can create one'} <a href="{url 'IDF_Views::register', array()}">{trans 'here'}</a></p> {aurl 'url', 'IDF_Views::register', array()}
<p>{trans 'It takes less than a minute to create your account'}</p> <p>{blocktrans}If you don't have an account yet, you can create one <a href="{$url}">here</a>.{/blocktrans}</a></p>
</div> <p>{trans 'It takes less than a minute to create your account.'}</p></div>
{/block} {/block}

View File

@ -2,9 +2,19 @@
{block docclass}yui-t2{assign $inError=true}{/block} {block docclass}yui-t2{assign $inError=true}{/block}
{block body} {block body}
<p>{blocktrans}The revision <b>{$commit}</b> is not valid or does not exist <p>{blocktrans}The branch or revision <b>{$commit}</b> is not valid or does not exist
in this repository.{/blocktrans}</p> in this repository.{/blocktrans}</p>
<p>{blocktrans}The following list shows all available branches:{/blocktrans}</p>
<ul>
{foreach $branches as $branch => $path}
{aurl 'url', 'IDF_Views_Source::treeBase', array($project.shortname, $branch)}
<li class="label">
<a href="{$url}" class="label">{if $path}{$path}{else}{$branch}{/if}</a>
</li>
{/foreach}
</ul>
{if $isOwner or $isMember} {if $isOwner or $isMember}
{aurl 'url', 'IDF_Views_Source::help', array($project.shortname)} {aurl 'url', 'IDF_Views_Source::help', array($project.shortname)}
<p>{blocktrans}If this is a new repository, the reason for this error <p>{blocktrans}If this is a new repository, the reason for this error

View File

@ -0,0 +1,8 @@
{assign $class = ''}{assign $i = 0}
<div id="tagscloud" class="smaller"><dl>{foreach $project.getTagCloud($cloud) as $label}
{aurl 'url', $cloud_url, array($project.shortname, $label.id, 'open')}
{if $class != $label.class}<dt class="label">{$label.class}</dt>{assign $i = 0}{/if}
<dd><a href="{$url}" class="label">{$label.name},</a></dd>
{assign $class = $label.class}
{assign $i = $i + 1}
{/foreach}</dl></p>

View File

@ -9,13 +9,9 @@
{/block} {/block}
{block context} {block context}
<p><strong>{trans 'Number of pages:'}</strong> {$pages.nb_items}</p> <p><strong>{trans 'Number of pages:'}</strong> {$pages.nb_items}</p>
{assign $class = ''}{assign $i = 0} {assign $cloud_url = 'IDF_Views_Wiki::listLabel'}
{if !$label or $label.id != $dlabel.id} {assign $cloud = 'wiki'}
<p class="smaller">{foreach $tags as $lab} {include 'idf/tags-cloud.html'}
{aurl 'url', 'IDF_Views_Wiki::listLabel', array($project.shortname, $lab.id)}
{if $class != $lab.class}{if $i != 0}<br />{/if}<strong class="label">{$lab.class}:</strong> {/if}
<a href="{$url}" class="label">{$lab.name}</a>,{assign $i = $i + 1}{assign $class = $lab.class}{/foreach}</p>
{/if}
{if $deprecated > 0} {if $deprecated > 0}
{aurl 'url', 'IDF_Views_Wiki::listLabel', array($project.shortname, $dlabel.id)} {aurl 'url', 'IDF_Views_Wiki::listLabel', array($project.shortname, $dlabel.id)}
<p class="helptext">{blocktrans}See <a href="{$url}">the deprecated pages</a>.{/blocktrans}</p> <p class="helptext">{blocktrans}See <a href="{$url}">the deprecated pages</a>.{/blocktrans}</p>

View File

@ -203,6 +203,20 @@ span.px-header-title a, span.px-header-title a:link, span.px-header-title a:visi
/** /**
* Issue * Issue
*/ */
#tagscloud dl {
margin: 0;
}
#tagscloud dt {
margin-top: .5em;
font-weight: bold;
}
#tagscloud dd {
margin: 0;
display: inline;
}
a.issue-c { a.issue-c {
text-decoration: line-through; text-decoration: line-through;
} }