mirror of
https://github.com/silverstripe/silverstripe-cms
synced 2024-10-22 08:05:56 +02:00
qhoxie: updates to stats panels
(merged from branches/gsoc) git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@41847 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
dd853ef168
commit
e1438c9949
@ -27,6 +27,22 @@ class StatisticsAdmin extends LeftAndMain {
|
|||||||
)
|
)
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function versions() {
|
||||||
|
/*$pageID = $this->urlParams['ID'];
|
||||||
|
//$pageID = "1";
|
||||||
|
$page = $this->getRecord($pageID);
|
||||||
|
if($page) {
|
||||||
|
$versions = $page->allVersions($_REQUEST['unpublished'] ? "" : "`SiteTree_versions`.WasPublished = 1");
|
||||||
|
return array(
|
||||||
|
'Versions' => $versions,
|
||||||
|
);
|
||||||
|
} else {
|
||||||
|
return "Can't find page #$pageID";
|
||||||
|
}*/
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
?>
|
?>
|
||||||
|
@ -2,5 +2,58 @@
|
|||||||
|
|
||||||
<div id="treepanes">
|
<div id="treepanes">
|
||||||
<div id="sitetree_holder" style="overflow:auto">
|
<div id="sitetree_holder" style="overflow:auto">
|
||||||
|
<% if Items %>
|
||||||
|
<ul id="sitetree" class="tree unformatted">
|
||||||
|
<li id="$ID" class="root Root"><a>Items</a>
|
||||||
|
<ul>
|
||||||
|
<% control Items %>
|
||||||
|
<li id="record-$class">
|
||||||
|
<a href="admin/statistics/show/$ID">$Title</a>
|
||||||
|
</li>
|
||||||
|
<% end_control %>
|
||||||
|
</ul>
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
<% end_if %>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<h2 id="heading_versions">Page Version History</h2>
|
||||||
|
<div class="listpane" id="versions_holder">
|
||||||
|
<p class="pane_actions" id="versions_actions">
|
||||||
|
</p>
|
||||||
|
|
||||||
|
<div class="unitBody">
|
||||||
|
<table id="Versions">
|
||||||
|
<thead>
|
||||||
|
<tr>
|
||||||
|
<td>#</td>
|
||||||
|
<td>When</td>
|
||||||
|
<td>Author</td>
|
||||||
|
<td>Publisher</td>
|
||||||
|
</tr>
|
||||||
|
</thead>
|
||||||
|
<tbody>
|
||||||
|
<% control versions %>
|
||||||
|
<tr id="page-$RecordID-version-$Version" class="$EvenOdd $PublishedClass">
|
||||||
|
<td>$Version</td>
|
||||||
|
<td class="$LastEdited" title="$LastEdited.Ago">$LastEdited.Nice</td>
|
||||||
|
<td>$Author.FirstName $Author.Surname.Initial</td>
|
||||||
|
<td>
|
||||||
|
<% if Published %>
|
||||||
|
<% if Publisher %>
|
||||||
|
$Publisher.FirstName $Publisher.Surname.Initial
|
||||||
|
<% else %>
|
||||||
|
Unknown
|
||||||
|
<% end_if %>
|
||||||
|
<% else %>
|
||||||
|
Not published
|
||||||
|
<% end_if %>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<% end_control %>
|
||||||
|
</tbody>
|
||||||
|
</table>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
@ -3,7 +3,9 @@
|
|||||||
<% if EditForm %>
|
<% if EditForm %>
|
||||||
$EditForm
|
$EditForm
|
||||||
<% else %>
|
<% else %>
|
||||||
<p>Welcome to the $ApplicationName statistics section. Please choose a specific report from the left.</p>
|
<form id="Form_EditForm" action="admin/assets/?executeForm=EditForm" method="post" enctype="multipart/form-data">
|
||||||
|
<p>Welcome to the $ApplicationName statistics section. Please choose a specific report from the left.</p>
|
||||||
|
</form>
|
||||||
<% end_if %>
|
<% end_if %>
|
||||||
|
|
||||||
<p id="statusMessage" style="visibility:hidden"></p>
|
<p id="statusMessage" style="visibility:hidden"></p>
|
||||||
|
Loading…
Reference in New Issue
Block a user