Adding a custom newsfeed to the customer-dashboard, fixes #1408
Signed-off-by: Roman Schmerold (BNoiZe) <bnoize@froxlor.org>
This commit is contained in:
BIN
templates/Sparkle/.DS_Store
vendored
Normal file
BIN
templates/Sparkle/.DS_Store
vendored
Normal file
Binary file not shown.
BIN
templates/Sparkle/assets/css/.DS_Store
vendored
Normal file
BIN
templates/Sparkle/assets/css/.DS_Store
vendored
Normal file
Binary file not shown.
BIN
templates/Sparkle/assets/img/.DS_Store
vendored
Normal file
BIN
templates/Sparkle/assets/img/.DS_Store
vendored
Normal file
Binary file not shown.
8
templates/Sparkle/assets/js/main.js
vendored
8
templates/Sparkle/assets/js/main.js
vendored
@@ -28,13 +28,17 @@ $(document).ready(function() {
|
||||
|
||||
// Load Newsfeed
|
||||
var ajax_load = "<div id='newsitem'>Loading newsfeed...</div>";
|
||||
$("#newsfeeditems").html(ajax_load).load("lib/ajax.php?action=newsfeed", function() {
|
||||
var url = "";
|
||||
if (typeof $("#newsfeed").data("url") !== "undefined") {
|
||||
url = "&url=" + $("#newsfeed").data("url");
|
||||
}
|
||||
$("#newsfeeditems").html(ajax_load).load("lib/ajax.php?action=newsfeed" + url, function() {
|
||||
if ($("#newsfeeditems").html().length > 0) {
|
||||
$(window).trigger('resize');
|
||||
$("#newsfeed").slideDown();
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
// Enable Infobubbles
|
||||
$(".tipper").tipper({
|
||||
direction: "right"
|
||||
|
||||
BIN
templates/Sparkle/customer/.DS_Store
vendored
Normal file
BIN
templates/Sparkle/customer/.DS_Store
vendored
Normal file
Binary file not shown.
23
templates/Sparkle/customer/index/index.tpl
vendored
23
templates/Sparkle/customer/index/index.tpl
vendored
@@ -149,6 +149,18 @@ $header
|
||||
</div>
|
||||
|
||||
<div class="grid-u-1-2">
|
||||
<if Settings::Get('customer.show_news_feed') == '1'>
|
||||
<table class="dboarditem full" id="newsfeed" data-url="{$news_feed_url}">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>News</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody id="newsfeeditems">
|
||||
</tbody>
|
||||
</table>
|
||||
</if>
|
||||
|
||||
<table class="dboarditem">
|
||||
<thead>
|
||||
<tr>
|
||||
@@ -174,10 +186,17 @@ $header
|
||||
<td>{$lng['customer']['services']}:</td>
|
||||
<td>$services_enabled</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
<table class="dboarditem">
|
||||
<thead>
|
||||
<tr>
|
||||
<th colspan="2">{$lng['index']['customerdetails']}</th>
|
||||
<th colspan="2">{$lng['index']['customerdetails']}</th>
|
||||
</tr>
|
||||
<if $userinfo['customernumber'] >
|
||||
</thead>
|
||||
<tbody>
|
||||
<if $userinfo['customernumber'] >
|
||||
<tr>
|
||||
<td>{$lng['customer']['customernumber']}:</td>
|
||||
<td>{$userinfo['customernumber']}</td>
|
||||
|
||||
Reference in New Issue
Block a user