Fixed in part issue 56, the templates are in the idf subfolder.
This commit is contained in:
@@ -72,7 +72,7 @@ class IDF_Views_Download
|
||||
$pag->sort_order = array('creation_dtime', 'DESC');
|
||||
$pag->setFromRequest($request);
|
||||
$tags = $prj->getTagCloud('downloads');
|
||||
return Pluf_Shortcuts_RenderToResponse('downloads/index.html',
|
||||
return Pluf_Shortcuts_RenderToResponse('idf/downloads/index.html',
|
||||
array(
|
||||
'page_title' => $title,
|
||||
'downloads' => $pag,
|
||||
@@ -121,7 +121,7 @@ class IDF_Views_Download
|
||||
'project' => $prj,
|
||||
'user' => $request->user));
|
||||
}
|
||||
return Pluf_Shortcuts_RenderToResponse('downloads/view.html',
|
||||
return Pluf_Shortcuts_RenderToResponse('idf/downloads/view.html',
|
||||
array(
|
||||
'file' => $upload,
|
||||
'deprecated' => $deprecated,
|
||||
@@ -158,7 +158,7 @@ class IDF_Views_Download
|
||||
array($prj->shortname));
|
||||
return new Pluf_HTTP_Response_Redirect($url);
|
||||
}
|
||||
return Pluf_Shortcuts_RenderToResponse('downloads/delete.html',
|
||||
return Pluf_Shortcuts_RenderToResponse('idf/downloads/delete.html',
|
||||
array(
|
||||
'file' => $upload,
|
||||
'deprecated' => $deprecated,
|
||||
@@ -209,7 +209,7 @@ class IDF_Views_Download
|
||||
array('project' => $prj,
|
||||
'user' => $request->user));
|
||||
}
|
||||
return Pluf_Shortcuts_RenderToResponse('downloads/submit.html',
|
||||
return Pluf_Shortcuts_RenderToResponse('idf/downloads/submit.html',
|
||||
array(
|
||||
'auto_labels' => self::autoCompleteArrays($prj),
|
||||
'page_title' => $title,
|
||||
@@ -279,7 +279,7 @@ class IDF_Views_Download
|
||||
$pag->sort_order = array('creation_dtime', 'DESC');
|
||||
$pag->setFromRequest($request);
|
||||
$tags = $prj->getTagCloud('downloads');
|
||||
return Pluf_Shortcuts_RenderToResponse('downloads/index.html',
|
||||
return Pluf_Shortcuts_RenderToResponse('idf/downloads/index.html',
|
||||
array(
|
||||
'page_title' => $title,
|
||||
'label' => $tag,
|
||||
|
@@ -65,7 +65,7 @@ class IDF_Views_Issue
|
||||
$pag->items_per_page = 10;
|
||||
$pag->no_results_text = __('No issues were found.');
|
||||
$pag->setFromRequest($request);
|
||||
return Pluf_Shortcuts_RenderToResponse('issues/index.html',
|
||||
return Pluf_Shortcuts_RenderToResponse('idf/issues/index.html',
|
||||
array('project' => $prj,
|
||||
'page_title' => $title,
|
||||
'open' => $open,
|
||||
@@ -121,7 +121,7 @@ class IDF_Views_Issue
|
||||
$pag->items_per_page = 10;
|
||||
$pag->no_results_text = __('No issues were found.');
|
||||
$pag->setFromRequest($request);
|
||||
return Pluf_Shortcuts_RenderToResponse('issues/my-issues.html',
|
||||
return Pluf_Shortcuts_RenderToResponse('idf/issues/my-issues.html',
|
||||
array('project' => $prj,
|
||||
'page_title' => $title,
|
||||
'nb_submit' => $nb_submit,
|
||||
@@ -175,7 +175,7 @@ class IDF_Views_Issue
|
||||
$form = new IDF_Form_IssueCreate(null, $params);
|
||||
}
|
||||
$arrays = self::autoCompleteArrays($prj);
|
||||
return Pluf_Shortcuts_RenderToResponse('issues/create.html',
|
||||
return Pluf_Shortcuts_RenderToResponse('idf/issues/create.html',
|
||||
array_merge(
|
||||
array('project' => $prj,
|
||||
'form' => $form,
|
||||
@@ -223,7 +223,7 @@ class IDF_Views_Issue
|
||||
'issues' => $pag,
|
||||
'q' => $q,
|
||||
);
|
||||
return Pluf_Shortcuts_RenderToResponse('issues/search.html', $params, $request);
|
||||
return Pluf_Shortcuts_RenderToResponse('idf/issues/search.html', $params, $request);
|
||||
|
||||
}
|
||||
|
||||
@@ -297,7 +297,7 @@ class IDF_Views_Issue
|
||||
}
|
||||
}
|
||||
$arrays = self::autoCompleteArrays($prj);
|
||||
return Pluf_Shortcuts_RenderToResponse('issues/view.html',
|
||||
return Pluf_Shortcuts_RenderToResponse('idf/issues/view.html',
|
||||
array_merge(
|
||||
array(
|
||||
'issue' => $issue,
|
||||
@@ -362,7 +362,7 @@ class IDF_Views_Issue
|
||||
$pag->items_per_page = 10;
|
||||
$pag->no_results_text = __('No issues were found.');
|
||||
$pag->setFromRequest($request);
|
||||
return Pluf_Shortcuts_RenderToResponse('issues/index.html',
|
||||
return Pluf_Shortcuts_RenderToResponse('idf/issues/index.html',
|
||||
array('project' => $prj,
|
||||
'page_title' => $title,
|
||||
'open' => $open,
|
||||
@@ -424,7 +424,7 @@ class IDF_Views_Issue
|
||||
} else {
|
||||
$completion = false;
|
||||
}
|
||||
return Pluf_Shortcuts_RenderToResponse('issues/by-label.html',
|
||||
return Pluf_Shortcuts_RenderToResponse('idf/issues/by-label.html',
|
||||
array('project' => $prj,
|
||||
'completion' => $completion,
|
||||
'page_title' => $title,
|
||||
|
@@ -45,7 +45,7 @@ class IDF_Views_Project
|
||||
// the first tag is the featured, the last is the deprecated.
|
||||
$downloads = $tags[0]->get_idf_upload_list();
|
||||
}
|
||||
return Pluf_Shortcuts_RenderToResponse('project/home.html',
|
||||
return Pluf_Shortcuts_RenderToResponse('idf/project/home.html',
|
||||
array(
|
||||
'page_title' => $title,
|
||||
'team' => $team,
|
||||
@@ -102,7 +102,7 @@ class IDF_Views_Project
|
||||
// the first tag is the featured, the last is the deprecated.
|
||||
$downloads = $tags[0]->get_idf_upload_list();
|
||||
}
|
||||
return Pluf_Shortcuts_RenderToResponse('project/timeline.html',
|
||||
return Pluf_Shortcuts_RenderToResponse('idf/project/timeline.html',
|
||||
array(
|
||||
'page_title' => $title,
|
||||
'timeline' => $pag,
|
||||
@@ -136,7 +136,7 @@ class IDF_Views_Project
|
||||
$form = Pluf_Shortcuts_GetFormForModel($prj, $prj->getData(),
|
||||
$form_fields);
|
||||
}
|
||||
return Pluf_Shortcuts_RenderToResponse('admin/summary.html',
|
||||
return Pluf_Shortcuts_RenderToResponse('idf/admin/summary.html',
|
||||
array(
|
||||
'page_title' => $title,
|
||||
'form' => $form,
|
||||
@@ -180,7 +180,7 @@ class IDF_Views_Project
|
||||
}
|
||||
$form = new IDF_Form_IssueTrackingConf($params);
|
||||
}
|
||||
return Pluf_Shortcuts_RenderToResponse('admin/issue-tracking.html',
|
||||
return Pluf_Shortcuts_RenderToResponse('idf/admin/issue-tracking.html',
|
||||
array(
|
||||
'page_title' => $title,
|
||||
'form' => $form,
|
||||
@@ -223,7 +223,7 @@ class IDF_Views_Project
|
||||
}
|
||||
$form = new IDF_Form_UploadConf($params);
|
||||
}
|
||||
return Pluf_Shortcuts_RenderToResponse('admin/downloads.html',
|
||||
return Pluf_Shortcuts_RenderToResponse('idf/admin/downloads.html',
|
||||
array(
|
||||
'page_title' => $title,
|
||||
'form' => $form,
|
||||
@@ -255,7 +255,7 @@ class IDF_Views_Project
|
||||
} else {
|
||||
$form = new IDF_Form_MembersConf($prj->getMembershipData('string'), $params);
|
||||
}
|
||||
return Pluf_Shortcuts_RenderToResponse('admin/members.html',
|
||||
return Pluf_Shortcuts_RenderToResponse('idf/admin/members.html',
|
||||
array(
|
||||
'page_title' => $title,
|
||||
'form' => $form,
|
||||
@@ -300,7 +300,7 @@ class IDF_Views_Project
|
||||
}
|
||||
$form = new IDF_Form_TabsConf($params, $extra);
|
||||
}
|
||||
return Pluf_Shortcuts_RenderToResponse('admin/tabs.html',
|
||||
return Pluf_Shortcuts_RenderToResponse('idf/admin/tabs.html',
|
||||
array(
|
||||
'page_title' => $title,
|
||||
'form' => $form,
|
||||
@@ -345,7 +345,7 @@ class IDF_Views_Project
|
||||
}
|
||||
$form = new IDF_Form_SourceConf($params, $extra);
|
||||
}
|
||||
return Pluf_Shortcuts_RenderToResponse('admin/source.html',
|
||||
return Pluf_Shortcuts_RenderToResponse('idf/admin/source.html',
|
||||
array(
|
||||
'page_title' => $title,
|
||||
'form' => $form,
|
||||
|
@@ -59,7 +59,7 @@ class IDF_Views_Source
|
||||
}
|
||||
$changes = new Pluf_Template_ContextVars($changes);
|
||||
$scmConf = $request->conf->getVal('scm', 'git');
|
||||
return Pluf_Shortcuts_RenderToResponse('source/changelog.html',
|
||||
return Pluf_Shortcuts_RenderToResponse('idf/source/changelog.html',
|
||||
array(
|
||||
'page_title' => $title,
|
||||
'title' => $title,
|
||||
@@ -95,7 +95,7 @@ class IDF_Views_Source
|
||||
if ($scmConf === 'svn') {
|
||||
$props = $scm->getProperties($commit);
|
||||
}
|
||||
return Pluf_Shortcuts_RenderToResponse('source/'.$scmConf.'/tree.html',
|
||||
return Pluf_Shortcuts_RenderToResponse('idf/source/'.$scmConf.'/tree.html',
|
||||
array(
|
||||
'page_title' => $title,
|
||||
'title' => $title,
|
||||
@@ -165,7 +165,7 @@ class IDF_Views_Source
|
||||
if ($scmConf === 'svn') {
|
||||
$props = $scm->getProperties($commit, $request_file);
|
||||
}
|
||||
return Pluf_Shortcuts_RenderToResponse('source/'.$scmConf.'/tree.html',
|
||||
return Pluf_Shortcuts_RenderToResponse('idf/source/'.$scmConf.'/tree.html',
|
||||
array(
|
||||
'page_title' => $page_title,
|
||||
'title' => $title,
|
||||
@@ -218,7 +218,7 @@ class IDF_Views_Source
|
||||
$diff = new IDF_Diff($cobject->changes);
|
||||
$diff->parse();
|
||||
$scmConf = $request->conf->getVal('scm', 'git');
|
||||
return Pluf_Shortcuts_RenderToResponse('source/commit.html',
|
||||
return Pluf_Shortcuts_RenderToResponse('idf/source/commit.html',
|
||||
array(
|
||||
'page_title' => $page_title,
|
||||
'title' => $title,
|
||||
@@ -257,7 +257,7 @@ class IDF_Views_Source
|
||||
$props = $scm->getProperties($commit, $request_file);
|
||||
}
|
||||
$content = self::highLight($extra['mime'], $scm->getBlob($request_file_info, $commit));
|
||||
return Pluf_Shortcuts_RenderToResponse('source/'.$scmConf.'/file.html',
|
||||
return Pluf_Shortcuts_RenderToResponse('idf/source/'.$scmConf.'/file.html',
|
||||
array(
|
||||
'page_title' => $page_title,
|
||||
'title' => $title,
|
||||
|
@@ -50,7 +50,7 @@ class IDF_Views_User
|
||||
} else {
|
||||
$form = new IDF_Form_UserAccount($request->user->getData(), $params);
|
||||
}
|
||||
return Pluf_Shortcuts_RenderToResponse('user/myaccount.html',
|
||||
return Pluf_Shortcuts_RenderToResponse('idf/user/myaccount.html',
|
||||
array('page_title' => __('Your Account'),
|
||||
'form' => $form),
|
||||
$request);
|
||||
@@ -67,7 +67,7 @@ class IDF_Views_User
|
||||
if (count($users) != 1 or !$users[0]->active) {
|
||||
throw new Pluf_HTTP_Error404();
|
||||
}
|
||||
return Pluf_Shortcuts_RenderToResponse('user/public.html',
|
||||
return Pluf_Shortcuts_RenderToResponse('idf/user/public.html',
|
||||
array('page_title' => (string) $users[0],
|
||||
'member' => $users[0],
|
||||
'projects' => $projects,
|
||||
|
Reference in New Issue
Block a user