[cleanup] Fixed title bars, toolbars in all pages, added default background

This commit is contained in:
Rushabh Mehta
2013-11-13 16:55:38 +05:30
parent 09391e14ad
commit 4f642e7670
37 changed files with 82 additions and 82 deletions

View File

@@ -10,6 +10,7 @@ wn.pages['activity'].onload = function(wrapper) {
wrapper.appframe.add_module_icon("Activity");
var list = new wn.ui.Listing({
hide_refresh: true,
appframe: wrapper.appframe,
method: 'home.page.activity.activity.get_feed',
parent: $(wrapper).find(".layout-main"),
@@ -18,10 +19,12 @@ wn.pages['activity'].onload = function(wrapper) {
}
});
list.run();
wrapper.appframe.set_title_right("Refresh", function() { list.run(); });
// Build Report Button
if(wn.boot.profile.can_get_report.indexOf("Feed")!=-1) {
wrapper.appframe.add_button(wn._('Build Report'), function() {
wrapper.appframe.add_primary_action(wn._('Build Report'), function() {
wn.set_route('Report', "Feed");
}, 'icon-th')
}