Initial version of newsfeed in admin dashboard
This commit is contained in:
3
templates/Sparkle/admin/index/index.tpl
vendored
3
templates/Sparkle/admin/index/index.tpl
vendored
@@ -4,6 +4,9 @@ $header
|
||||
<img src="templates/{$theme}/assets/img/icons/domains_big.png" alt="" />
|
||||
{$lng['panel']['dashboard']}
|
||||
</h2>
|
||||
<div class="dboarditemfull bradius" id="newsfeed" style="display: none"></div>
|
||||
<br />
|
||||
<br />
|
||||
<div class="canvasitems" id="statsbox">
|
||||
<div class="canvasbox">
|
||||
<input type="hidden" id="customers" class="circular" data-used="{$overview['number_customers']}" data-available="{$userinfo['customers']}">
|
||||
|
||||
19
templates/Sparkle/assets/css/main.css
vendored
19
templates/Sparkle/assets/css/main.css
vendored
@@ -490,6 +490,7 @@ nav {
|
||||
float: left;
|
||||
width:230px;
|
||||
background-color:#f7f8fa;
|
||||
min-height: 500px;
|
||||
}
|
||||
nav div:first-child {
|
||||
display: none;
|
||||
@@ -939,3 +940,21 @@ label.nobr {
|
||||
.canvasbox canvas {
|
||||
width: 120px;
|
||||
}
|
||||
|
||||
/* NEWSFEED */
|
||||
.newsitem {
|
||||
border-bottom: 1px solid #f1f2f3;
|
||||
padding: 6px 10px 8px 10px;
|
||||
height: 16px;
|
||||
line-height: 20px;
|
||||
margin: 0 10px;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
}
|
||||
.newsitem a {
|
||||
color: #333;
|
||||
}
|
||||
.newsitem b {
|
||||
margin-right: 15px;
|
||||
}
|
||||
|
||||
8
templates/Sparkle/assets/js/main.js
vendored
8
templates/Sparkle/assets/js/main.js
vendored
@@ -31,6 +31,14 @@ $(document).ready(function() {
|
||||
if (snheight > mainheight) {
|
||||
$('#maincontent').height(snheight - 60);
|
||||
}
|
||||
|
||||
// Load Newsfeed
|
||||
var ajax_load = "<div id='newsitem'>Loading newsfeed...</div>";
|
||||
$("#newsfeed").html(ajax_load).load("lib/ajax.php?action=newsfeed", function() {
|
||||
if ($("#newsfeed").html() != "") {
|
||||
$("#newsfeed").slideDown();
|
||||
}
|
||||
});
|
||||
|
||||
// this is necessary for the special setting feature (ref #1010)
|
||||
$.getQueryVariable = function(key) {
|
||||
|
||||
Reference in New Issue
Block a user