Skip to content

Commit

Permalink
Curate Dashboard feeds
Browse files Browse the repository at this point in the history
  • Loading branch information
linc committed Apr 25, 2014
1 parent 5bf26d5 commit 21ee7ea
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 4 deletions.
8 changes: 8 additions & 0 deletions applications/dashboard/design/admin.css
Expand Up @@ -2392,6 +2392,14 @@ span.InformSprite.Dice { background-position: -442px -586px; }
display: inline-block; display: inline-block;
} }


/* Hide extra News info in Dashboard feed */
.List .FeedItem .tptn_counter {
display: none;
}
.List .FeedItem em p:nth-of-type(2) {
display: none;
}

/* 16px Sprites Black Transparent */ /* 16px Sprites Black Transparent */
/*.SpDashboard, /*.SpDashboard,
.SpCog { background-position: 0 -148px; } .SpCog { background-position: 0 -148px; }
Expand Down
6 changes: 3 additions & 3 deletions applications/dashboard/js/settings.js
Expand Up @@ -3,7 +3,7 @@ jQuery(document).ready(function($) {
// Load news & tutorials from Vanilla // Load news & tutorials from Vanilla
var lists = $('div.Column div.List'), var lists = $('div.Column div.List'),
newsColumn = $('div.NewsColumn div.List'), newsColumn = $('div.NewsColumn div.List'),
helpColumn = $('div.HelpColumn div.List'); announceColumn = $('div.AnnounceColumn div.List');


loadFeed = function(container, type, rows, format) { loadFeed = function(container, type, rows, format) {
$.ajax({ $.ajax({
Expand All @@ -21,7 +21,7 @@ jQuery(document).ready(function($) {
}; };


lists.addClass('Loading'); lists.addClass('Loading');
loadFeed(newsColumn, 'news', 3, 'extended'); loadFeed(newsColumn, 'news', 4, 'extended');
loadFeed(helpColumn, 'help', 3, 'extended'); loadFeed(announceColumn, 'announce', 2, 'extended');


}); });
6 changes: 5 additions & 1 deletion applications/dashboard/views/settings/index.php
Expand Up @@ -34,7 +34,11 @@
</tbody> </tbody>
</table> </table>
</div> </div>
<div class="Column Column1 AnnounceColumn">
<h1><?php echo T('Open Source News'); ?></h1>
<div class="List"></div>
</div>
<div class="Column Column1 NewsColumn"> <div class="Column Column1 NewsColumn">
<h1><?php echo T('Recent News'); ?></h1> <h1><?php echo T('Blog Posts By Vanilla Forums'); ?></h1>
<div class="List"></div> <div class="List"></div>
</div> </div>

0 comments on commit 21ee7ea

Please sign in to comment.