switched taps to accordion of user home view
This commit is contained in:
parent
60b4757f6b
commit
c76f14177a
@ -17,7 +17,15 @@
|
|||||||
|
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
$(function () {
|
$(function () {
|
||||||
$('#user_home_mainarea_result').tabs();
|
$("#user_home_mainarea_open_issues").accordion ({
|
||||||
|
collapsible: true,
|
||||||
|
heightStyle: "content"
|
||||||
|
});
|
||||||
|
|
||||||
|
$("#user_home_mainarea_projects").accordion ({
|
||||||
|
collapsible: true,
|
||||||
|
heightStyle: "content"
|
||||||
|
});
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
@ -66,52 +74,45 @@ $num_activities = 0;
|
|||||||
|
|
||||||
<div id="user_home_mainarea_result" class="result">
|
<div id="user_home_mainarea_result" class="result">
|
||||||
|
|
||||||
|
<div id="user_home_mainarea_open_issues" class="collapsible-box">
|
||||||
|
<div class="collapsible-box-header"><?php print $this->lang->line('Open issues')?></div>
|
||||||
|
<ul>
|
||||||
|
<?php
|
||||||
|
foreach ($issues as $issue)
|
||||||
|
{
|
||||||
|
$pro = $issue->projectid;
|
||||||
|
$xid = $this->converter->AsciiToHex ((string)$issue->id);
|
||||||
|
|
||||||
<div id="tabs">
|
$anc = anchor ("issue/show/{$issue->projectid}/{$xid}", '#' . htmlspecialchars($issue->id));
|
||||||
|
|
||||||
<ul>
|
$status = htmlspecialchars(
|
||||||
<li><a href="#user_home_mainarea_result_issues"> <?php print $this->lang->line('Open issues')?> (<?php print $num_issues?>) </a></li>
|
array_key_exists($issue->status, $issue_status_array)?
|
||||||
<li><a href="#user_home_mainarea_result_projects"> <?php print $this->lang->line('Projects')?> (<?php print $num_projects?>) </a></li>
|
$issue_status_array[$issue->status]: $issue->status);
|
||||||
</ul>
|
$type = htmlspecialchars(
|
||||||
|
array_key_exists($issue->type, $issue_type_array)?
|
||||||
|
$issue_type_array[$issue->type]: $issue->type);
|
||||||
|
|
||||||
<div id="user_home_mainarea_result_issues">
|
$sum = htmlspecialchars ($issue->summary);
|
||||||
<ul>
|
print "<li>{$pro} {$anc} {$type} {$status} - {$sum}</li>";
|
||||||
<?php
|
}
|
||||||
foreach ($issues as $issue)
|
?>
|
||||||
{
|
</ul>
|
||||||
$pro = $issue->projectid;
|
|
||||||
$xid = $this->converter->AsciiToHex ((string)$issue->id);
|
|
||||||
|
|
||||||
$anc = anchor ("issue/show/{$issue->projectid}/{$xid}", '#' . htmlspecialchars($issue->id));
|
|
||||||
|
|
||||||
$status = htmlspecialchars(
|
|
||||||
array_key_exists($issue->status, $issue_status_array)?
|
|
||||||
$issue_status_array[$issue->status]: $issue->status);
|
|
||||||
$type = htmlspecialchars(
|
|
||||||
array_key_exists($issue->type, $issue_type_array)?
|
|
||||||
$issue_type_array[$issue->type]: $issue->type);
|
|
||||||
|
|
||||||
$sum = htmlspecialchars ($issue->summary);
|
|
||||||
print "<li>{$pro} {$anc} {$type} {$status} - {$sum}</li>";
|
|
||||||
}
|
|
||||||
?>
|
|
||||||
</ul>
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="user_home_mainarea_result_projects">
|
<div id="user_home_mainarea_projects" class="collapsible-box">
|
||||||
<ul>
|
<div class="collapsible-box-header"><?php print $this->lang->line('Projects')?></div>
|
||||||
<?php
|
<ul>
|
||||||
foreach ($projects as $project)
|
<?php
|
||||||
{
|
foreach ($projects as $project)
|
||||||
$cap = "{$project->name} ({$project->id})";
|
{
|
||||||
$anc = anchor ("project/home/{$project->id}", htmlspecialchars($cap));
|
$cap = "{$project->name} ({$project->id})";
|
||||||
$sum = htmlspecialchars ($project->summary);
|
$anc = anchor ("project/home/{$project->id}", htmlspecialchars($cap));
|
||||||
print "<li>{$anc} - {$sum}</li>";
|
$sum = htmlspecialchars ($project->summary);
|
||||||
}
|
print "<li>{$anc} - {$sum}</li>";
|
||||||
?>
|
}
|
||||||
</ul>
|
?>
|
||||||
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
|
||||||
|
|
||||||
</div> <!-- user_home_mainarea_result -->
|
</div> <!-- user_home_mainarea_result -->
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user