Commit c7322f8a authored by Nigel McNie's avatar Nigel McNie
Browse files

Added breadcrumbs to some pages.

parent 7f5589d2
......@@ -145,6 +145,7 @@ class HtmlExportFile extends HtmlExportArtefactPlugin {
*/
private function create_index_for_directory($filesystemdirectory, $level, $artefactdata=null) {
$smarty = $this->exporter->get_smarty(str_repeat('../', $level + 2));
$smarty->assign('breadcrumbs', array(array('text' => 'Files', 'path' => 'index.html')));
if ($artefactdata) {
$smarty->assign('folder', ArtefactTypeFileBase::get_full_path($artefactdata->id, $this->artefactdata));
......
......@@ -29,8 +29,10 @@ defined('INTERNAL') || die();
class HtmlExportInternal extends HtmlExportArtefactPlugin {
public function dump_export_data() {
// Profile page
$smarty = $this->exporter->get_smarty('../../');
// Profile page
$smarty->assign('breadcrumbs', array(array('text' => 'Profile page', 'path' => 'profilepage.html')));
$view = $this->exporter->get('user')->get_profile_view();
$smarty->assign('view', $view->build_columns());
......@@ -40,6 +42,8 @@ class HtmlExportInternal extends HtmlExportArtefactPlugin {
}
// Generic profile information
$smarty->assign('breadcrumbs', array(array('text' => 'Profile information', 'path' => 'index.html')));
$sections = array();
$elementlist = call_static_method('ArtefactTypeProfile', 'get_all_fields');
$profilefields = get_column_sql('SELECT id FROM {artefact} WHERE owner=? AND artefacttype IN ('
......
......@@ -38,19 +38,19 @@ h1 a {
}
#breadcrumbs ul {
margin: .5em 0 0;
margin: .5em 0 .1em;
padding: 0;
}
#breadcrumbs li {
list-style-type: none;
margin: 0;
padding: 0;
display: inline;
}
#breadcrumbs a {
color: #808080;
font-size: smaller;
font-family: Arial, sans-serif;
float: left;
}
#breadcrumbs-footer {
clear: both;
......
......@@ -14,7 +14,7 @@
<ul>
<li><a href="{$rootpath}index.html">Home</a></li>
{foreach from=$breadcrumbs item=crumb}
<li><a href="{$crumb.path|escape}">{$crumb.text|escape}</a></li>
<li>&raquo; <a href="{$crumb.path|escape}">{$crumb.text|escape}</a></li>
{/foreach}
</ul>
</div>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment