Commit Graph

22 Commits

Author SHA1 Message Date
Tim Almdal
b05b89798a Continuation of r20518. Remove all the cases were the csrf values in
views were being manually set.  Also removed it from the Admin_View.
2009-04-02 21:41:10 +00:00
Bharat Mediratta
9f784818da Set csrf into the global theme for convenience. 2009-03-26 06:56:29 +00:00
Tim Almdal
537bd94453 This change checks that the active theme is available and if its not,
reverts to the default theme.
2009-03-20 18:19:27 +00:00
Tim Almdal
863e353911 rollback of r20469... see trac #161 2009-03-20 17:20:17 +00:00
Tim Almdal
48c022e8cb Rather than moving the themeroller and all of its associated files
into each theme.  I chose to create methods Theme_View::file($path)
and Admin_View::file($path).  These methods check for a theme override
file in the theme and return a link to it if it exists.  So to
override the themeroller files. just create a lib/themeroller in the
theme and the files will be picked up.
2009-03-20 14:59:55 +00:00
Bharat Mediratta
f12f535749 Provide an empty sidebar by default 2009-03-16 07:59:28 +00:00
Bharat Mediratta
3d1ea2904d Rename theme callback helpers from xxx_block to xxx_theme to make room
for us to rename the dashboard helper to be a block helper since
sidebar blocks are not just in the dashboard.
2009-01-18 05:01:00 +00:00
Bharat Mediratta
b19729435c Dashboard blocks are now data driven, and you can add new blocks to
both the sidebar and the center content area from a dropdown at the
top of the dashboard sidebar.
2009-01-12 07:39:53 +00:00
Bharat Mediratta
2f9eae867c Let admins override the theme with a query param 2009-01-11 00:19:00 +00:00
Bharat Mediratta
9b90b4b0cd Use the theme's avatar as the default if Gravatar doesn't have one. 2009-01-10 06:18:35 +00:00
Bharat Mediratta
97bf6761b2 Properly implement 'root' as a legal factory type 2009-01-07 09:07:45 +00:00
Bharat Mediratta
7c82691e00 Move debug CSS into core/css/debug.css, and enable it for admin themes also 2009-01-01 00:16:08 +00:00
Bharat Mediratta
a481a684b6 Add a "Graphics Settings" page that lets admins choose which graphics
toolkit we use.  We only allow users to use one toolkit.  The UI needs
work!
2008-12-30 04:14:57 +00:00
Bharat Mediratta
b46bfdd492 Separate permanent messages out of the message helper and put them
into site_status.  Show site status in the header in the admin theme.
2008-12-29 00:35:31 +00:00
Felix Rabinovich
82ed38d78e Ajaxify 'add users' 2008-12-25 20:59:33 +00:00
Bharat Mediratta
c7193f9b2e Normalize our Admin controllers so that functions always print out
their results, as opposed to having them return their view back
upstream.  This is a little more code in every controller, but it's
much less magical and more consistent.

Look up the active_theme and active_admin_theme inside the view
itself, no need to do that in the controllers.  This makes view
initialization easier in the controllers.
2008-12-24 04:22:22 +00:00
Bharat Mediratta
bdc0876fa8 Add messaging system for reporting actions back to the user. Make
module install/uninstall work and tie it into the messaging system.
2008-12-22 06:50:20 +00:00
Bharat Mediratta
b526cc8c0b Add some admin theme callbacks and make them explicitly admin_xxx for consistency
with the callbacks in the xxx_block helpers.  So in the theme we have:

admin.html.php:
  $theme->admin_page_bottom()

then in the helpers:

core_block.php:
  function admin_page_bottom() { }
2008-12-22 03:53:36 +00:00
Bharat Mediratta
ac4bb34cf2 Add admin sidebar blocks, and move the stats block into that pattern. 2008-12-20 01:00:52 +00:00
Bharat Mediratta
aee3efe972 Create a pattern for admin dashboard blocks and make the "welcome"
block.
2008-12-20 00:52:20 +00:00
Bharat Mediratta
c67234974d Refactor site admin menu into a theme function and build the menus in
the various modules.  In the process, rename xxx_menu::site_navigation() to just
xxx_menu::site().  And add xxx_menu::admin().

The menus are the same as before, but I changed the HTML to be
consistent with the way that we do it in the regular site, and this
broke the superfish styles.  I don't know how to fix this.. help me
Chad!
2008-12-18 07:32:34 +00:00
Bharat Mediratta
20f6be62c8 Add Admin_View 2008-12-15 01:49:25 +00:00