Commit Graph

779 Commits

Author SHA1 Message Date
Louis DeJardin
b4763aabaf Making the use of BaseViewModel optional
Providing BaseViewModel.From(x) static methods to adapt properties from various context objects
Adds DevTools\HomeController actions to verify results
AdaptedViewModel exposes public properties or view data dictionary entries as appropriate
Layout view engine restriction loosened to allow any ViewResult to be themed (not Partial of course)

--HG--
branch : dev
2010-03-01 16:43:51 -08:00
Louis DeJardin
8e5f470fbf Merge
--HG--
branch : dev
2010-03-01 14:59:23 -08:00
jowall
ea6f2546fe Merge
--HG--
branch : dev
2010-03-01 14:38:33 -08:00
jowall
b092503654 Changed the manage blogs layout the same as the list of posts.
--HG--
branch : dev
2010-03-01 14:36:47 -08:00
Suha Can
854df4ea45 - Fixing type in namespace name.
--HG--
branch : dev
2010-03-01 14:31:34 -08:00
Suha Can
12956cb26e Merge
--HG--
branch : dev
2010-03-01 11:55:25 -08:00
Suha Can
275922cb28 - Update view engine location paths to include "~/Core" and "~/Areas"
--HG--
branch : dev
2010-03-01 11:53:30 -08:00
jowall
3db68ea8c5 Replaced fieldsets with div tags on register and changepassword ascx files.
--HG--
branch : dev
2010-03-01 11:50:37 -08:00
Jonathan Wall
287442135a Updated the classic theme.
--HG--
branch : dev
2010-03-01 11:29:35 -08:00
Suha Can
4487940e60 - Fixing OrchardControllerFactory.GetAreaName to align it with what MVC 2 does internally.
--HG--
branch : dev
2010-03-01 11:20:52 -08:00
Suha Can
62902e2b38 - tags in Theme.txt.
- Hide the themes that have the hidden tag set in their Theme.txt when looking at the available themes in the themes admin.

--HG--
branch : dev
2010-03-01 11:03:14 -08:00
Nathan Heskew
2ea51a4d72 Removing tests for the default (controller/action/id) route.
--HG--
branch : dev
2010-03-01 10:56:53 -08:00
Nathan Heskew
5f164f0978 Pulling default route and extra assembly concat (from MvcModule)
- Both no longer necessary since the default HomeController was removed

--HG--
branch : dev
2010-03-01 08:01:56 -08:00
Nathan Heskew
daae401ac4 Adding a Dashboard module to support a (initially) simple Admin Dashboard
- Added Dashboard module to Orchard.Core
- Updated "Admin" link in User partials to point to the Admin Dashboard (and consolidated partials)
- Changed the admin menu to not hardcode the Dashboard item in the template. Instead all items come from admin menu item registration (hence the weird "Manage Orchard" sub-item)

--HG--
branch : dev
2010-03-01 02:26:12 -08:00
Nathan Heskew
349fbaa393 Removing the HomeController from the Orchard assembly
--HG--
branch : dev
2010-03-01 01:25:13 -08:00
Nathan Heskew
8e1207dd6b Fix for bug #16249
- Making removal of a menu item tied to a content item not remove that content item, instead the OnMainMenu bit is flipped
- Changing the text of the remove button to be either "Remove" (for items tied to content) or "Delete" (for standalone items)

--HG--
branch : dev
2010-03-01 00:40:23 -08:00
Nathan Heskew
bcec3db334 Removing Tags' site settings (relating to pages) which are no longer used
--HG--
branch : dev
2010-02-26 23:25:02 -08:00
Erik Porter
edc09e6158 Merge
--HG--
branch : dev
2010-02-26 16:37:06 -08:00
Nathan Heskew
9c86a8d552 Adding an Information notification for pending comments
--HG--
branch : dev
2010-02-26 16:03:50 -08:00
Nathan Heskew
1dfdeb8d80 Some comment display cleanup
- only show the [comment count] Comments heading if there are comments
- only show the comments are disabled message if comments are disabled *and* there *are* comments
- added an Add a Comment heading above the comment form

--HG--
branch : dev
2010-02-26 15:57:23 -08:00
Louis DeJardin
e316d0e280 Preventing DevTools and Sandmox Module.txt from being committed
--HG--
branch : dev
2010-02-26 15:47:47 -08:00
Erik Porter
8e547d0766 Added a "ModerateComments" setting for Orchard.Comments
--HG--
branch : dev
2010-02-26 15:29:31 -08:00
Nathan Heskew
22e5a083bf Adding generic ContentItem editor and display templates
- ContentItem editor and display templates added that only render the "primary" zone, then remaining zones (ZonesAny)
- Added a UseDefaultTemplate bool to ContentItemDriver and conditionally return the default template for Display or Edit
- Updated the UserDriver to use the default templates
-

--HG--
branch : dev
2010-02-26 15:20:50 -08:00
Nathan Heskew
a21e246e4d Some site settings cleanup
- Friendly names for remaining input
- Removed Theme site setting UI
- Changed "Edit Settings" title to "Manage Settings" #consistency

--HG--
branch : dev
2010-02-26 14:27:46 -08:00
Louis DeJardin
93c18ac293 Starting to deprecate the AdminViewModel
All references are changed to BaseViewModel
AdminViewModel class still present, but only temporarily as a stepping stone to smooth transition
BaseViewModel.Menu now represents either the "admin" or "main" navigation depending on location
MenuFilter now uses the AdminFilter.IsApplied flag to determine which primary nav to use
IsApplied property moved to AdminFilter which is a better location for a universal flag than the theme selector

--HG--
branch : dev
2010-02-26 13:58:09 -08:00
Louis DeJardin
2145f4e544 Adding values to unit test and null checking in some properties
--HG--
branch : dev
2010-02-26 10:25:48 -08:00
Louis DeJardin
d02306cfbf Merge
--HG--
branch : dev
2010-02-26 03:12:56 -08:00
Louis DeJardin
a25f68ae90 Updated Admin filter and access control
AdminController convention or [Admin] attribute activates both the security
check and "TheAdmin" theme

--HG--
branch : dev
2010-02-26 03:09:52 -08:00
Louis DeJardin
fe29853912 Implementing AdminAuthorizationFilter to test for AccessAdminPanel
Authorization will be required for a controller named "Admin"
or when an [Admin] attribute is on controller, base controllers, or action
Result will be HttpUnauthorizedResult if current user does not
have StandardPermissions.AccessAdminPanel

--HG--
branch : dev
2010-02-26 00:50:19 -08:00
Louis DeJardin
ca7d66cff8 Correcting another class location preparing for admin story
AdminThemeSelector moving to Orchard.UI.Admin

--HG--
branch : dev
2010-02-25 23:55:13 -08:00
Nathan Heskew
7490d3ea3b Removing Packages folder that has only a few images at the moment
Some images were added fairly recently for the Blogs admin. Images were copied to the correct location and paths to the images fixed but the images in the packages folder weren't removed.

--HG--
branch : dev
2010-02-25 23:46:05 -08:00
Louis DeJardin
09be861aaf Correcting some namespaces preparing for admin story
Orchard.Mvc.Filters contains base implementations, not specific functionality
Orchard.Mvc.AntiForgery and Orchard.UI.Admin contain specific functionality

--HG--
branch : dev
2010-02-25 23:45:37 -08:00
Nathan Heskew
a224d4d294 Changing the slug of the "Home" page created during setup
- Changed the "Home" page slug from "" to "home"
- Changed the page slug constraint to not need to deal with a null value (i.e. an empty slug is no longer valid for a page - not necessary now that any page can be made *the* homepage)

--HG--
branch : dev
2010-02-25 23:37:54 -08:00
Nathan Heskew
914e7f91be Bringing back Orchard.Web\Core\Themes\Scripts
--HG--
branch : dev
2010-02-25 23:31:49 -08:00
Erik Porter
7c7533f5a7 Brought over some extension methods on IContentManager to simplify the API
--HG--
branch : dev
2010-02-25 22:03:59 -08:00
Louis DeJardin
691908fb48 Making some service references more consistent
Several admin controllers referenced INotifier, IAuthorizer, and IContentManager as individual services
rather than as the general IOrchardServices carrier. Some extra namespaces also removed.

--HG--
branch : dev
2010-02-25 21:59:17 -08:00
Nathan Heskew
1cea5ad9d2 Merge
--HG--
branch : dev
2010-02-25 14:52:54 -08:00
Nathan Heskew
46efd063bf Updated the Green theme with an example of a HomePage layout
HomePage layout == Layout.HomePage; default layout == Layout

--HG--
branch : dev
2010-02-25 14:51:19 -08:00
Nathan Heskew
fe55012b77 Adding simple support for Module (area) specific layout templates
In a ("Layout.{0}", areaRouteValue) file naming convention fashion

--HG--
branch : dev
2010-02-25 14:44:27 -08:00
Erik Porter
3a9ecc2fd6 Forgot to save before the last commit. Fixing.
--HG--
branch : dev
2010-02-25 14:34:38 -08:00
Erik Porter
06cc9779e7 Removed temp themes Orange, Blue, Orchard, TheAdminClassic
--HG--
branch : dev
2010-02-25 14:34:01 -08:00
Erik Porter
7b2b80d085 Changed default theme after setup to be the "Green" theme for now
--HG--
branch : dev
2010-02-25 14:00:40 -08:00
Erik Porter
9094d3d94b Made the blog menu dynamic based off of how many blogs there are in the system for easier navigation
--HG--
branch : dev
2010-02-24 15:34:06 -08:00
Bertrand Le Roy
76600e582f Merge
--HG--
branch : dev
2010-02-24 10:23:20 -08:00
Andrew Ma
3a207d403a Moving CommentDriver, HasCommentsContainerDriver and HasCommentsDriver from Models to Controllers
--HG--
branch : dev
2010-02-23 20:54:19 -08:00
Erik Porter
fe70317db1 Changed the wording on the comment moderation checkbox
--HG--
branch : dev
2010-03-01 13:31:49 -08:00
Bertrand Le Roy
fa04f0c0ac Merge
--HG--
branch : dev
2010-02-22 14:48:54 -08:00
Bertrand Le Roy
0d36271037 Merge
--HG--
branch : dev
2010-02-22 14:26:48 -08:00
Louis DeJardin
adc2e9f06f Changing "~" back to ""
Has some negative side-effects (e.g. doesn't work)
2010-02-22 14:23:41 -08:00
Bertrand Le Roy
29b5812148 Fixed SQL Lite typo in setup screen (it´s SQLite).
--HG--
branch : dev
2010-02-22 14:14:45 -08:00