diff -r b16f77b940b56ff283a298e5d127bfa50d5b1f59 -r 60c6cf57da73e765eb27a062cc9945fee0056904 indefero/src/IDF/Views/User.php --- a/indefero/src/IDF/Views/User.php Tue Jul 30 19:50:05 2013 -0500 +++ b/indefero/src/IDF/Views/User.php Thu Aug 01 22:28:19 2013 -0500 @@ -281,6 +281,13 @@ $user = $users[0]; $user_data = IDF_UserData::factory($user); + $otags = array(); + // Note that this approach does not scale, we will need to add + // a table to cache the meaning of the tags for large forges. + foreach (IDF_Views::getProjects($user) as $project) { + $otags = array_merge($otags, $project->getTagIdsByStatus('open')); + } + $false = Pluf_DB_BooleanToDb(false, $db); $sql_results = $db->select( 'SELECT id FROM '.$db->pfx.'idf_projects '. @@ -291,7 +298,7 @@ foreach ($sql_results as $id) { $ids[] = $id['id']; } - $f_sql = new Pluf_SQL('owner=%s AND project IN (' . implode(', ', $ids) . ' )', array($user->id)); + $f_sql = new Pluf_SQL('owner=%s AND status IN (' .implode(', ', $otags) . ') AND project IN (' . implode(', ', $ids) . ' )', array($user->id)); $pag = new Pluf_Paginator(new IDF_Issue()); $pag->class = 'recent-issues'; diff -r b16f77b940b56ff283a298e5d127bfa50d5b1f59 -r 60c6cf57da73e765eb27a062cc9945fee0056904 indefero/src/IDF/templates/idf/source/git/file.html --- a/indefero/src/IDF/templates/idf/source/git/file.html Tue Jul 30 19:50:05 2013 -0500 +++ b/indefero/src/IDF/templates/idf/source/git/file.html Thu Aug 01 22:28:19 2013 -0500 @@ -1,5 +1,5 @@ {extends "idf/source/base.html"} -{block extraheader}{/block} +{block extraheader} {/block} {block docclass}yui-t1{assign $inSourceTree=true}{/block} {block body}

{trans 'Root'}/{if $breadcrumb}{$breadcrumb|safe}{/if}

@@ -26,6 +26,5 @@ {/block} {block javascript} - - + {/block} diff -r b16f77b940b56ff283a298e5d127bfa50d5b1f59 -r 60c6cf57da73e765eb27a062cc9945fee0056904 indefero/src/IDF/templates/idf/source/mercurial/file.html --- a/indefero/src/IDF/templates/idf/source/mercurial/file.html Tue Jul 30 19:50:05 2013 -0500 +++ b/indefero/src/IDF/templates/idf/source/mercurial/file.html Thu Aug 01 22:28:19 2013 -0500 @@ -1,5 +1,5 @@ {extends "idf/source/base.html"} -{block extraheader}{/block} +{block extraheader} {/block} {block docclass}yui-t1{assign $inSourceTree=true}{/block} {block body} @@ -27,6 +27,5 @@ {/block} {block javascript} - - + {/block} diff -r b16f77b940b56ff283a298e5d127bfa50d5b1f59 -r 60c6cf57da73e765eb27a062cc9945fee0056904 indefero/src/IDF/templates/idf/source/svn/file.html --- a/indefero/src/IDF/templates/idf/source/svn/file.html Tue Jul 30 19:50:05 2013 -0500 +++ b/indefero/src/IDF/templates/idf/source/svn/file.html Thu Aug 01 22:28:19 2013 -0500 @@ -1,5 +1,5 @@ {extends "idf/source/base.html"} -{block extraheader}{/block} +{block extraheader} {/block} {block docclass}yui-t1{assign $inSourceTree=true}{/block} {block body}

{trans 'Root'}/{if $breadcrumb}{$breadcrumb|safe}{/if}

@@ -43,6 +43,5 @@ {/block} {block javascript} - - + {/block} diff -r b16f77b940b56ff283a298e5d127bfa50d5b1f59 -r 60c6cf57da73e765eb27a062cc9945fee0056904 indefero/www/media/idf/js/allowtabs.js --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/indefero/www/media/idf/js/allowtabs.js Thu Aug 01 22:28:19 2013 -0500 @@ -0,0 +1,11 @@ +$("textarea").keydown(function(e) { + var $this, end, start; + if (e.keyCode === 9) { + start = this.selectionStart; + end = this.selectionEnd; + $this = $(this); + $this.val($this.val().substring(0, start) + "\t" + $this.val().substring(end)); + this.selectionStart = this.selectionEnd = start + 1; + return false; + } +}); \ No newline at end of file