From 6b25e5299fb190e99692c0edf5a7774adb2f6c0d Mon Sep 17 00:00:00 2001 From: Shannon Date: Wed, 7 Jan 2015 15:43:47 +1100 Subject: [PATCH 1/4] fixes unit test --- src/Umbraco.Tests/BusinessLogic/ApplicationTreeTest.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Umbraco.Tests/BusinessLogic/ApplicationTreeTest.cs b/src/Umbraco.Tests/BusinessLogic/ApplicationTreeTest.cs index 109e8178cf..c9be4edc53 100644 --- a/src/Umbraco.Tests/BusinessLogic/ApplicationTreeTest.cs +++ b/src/Umbraco.Tests/BusinessLogic/ApplicationTreeTest.cs @@ -32,7 +32,7 @@ namespace Umbraco.Tests.BusinessLogic Assert.IsNotNull(app); //create the new app tree assigned to the new app - ApplicationTree.MakeNew(false, false, 0, app.alias, name, name, "icon.jpg", "icon.jpg", "nullassembly", "nulltype", string.Empty); + ApplicationTree.MakeNew(false, false, 0, app.alias, name, name, "icon.jpg", "icon.jpg", "", "umbraco.loadContent, umbraco", string.Empty); var tree = ApplicationTree.getByAlias(name); Assert.IsNotNull(tree); From f8ed9e60f63673801ff9f6eb77da1e9d23116a5f Mon Sep 17 00:00:00 2001 From: arknu Date: Mon, 12 Jan 2015 22:13:01 +0100 Subject: [PATCH 2/4] U4-6103: Replace style with ng-style (again) --- .../views/propertyeditors/grid/dialogs/layoutconfig.html | 4 ++-- .../src/views/propertyeditors/grid/dialogs/rowconfig.html | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/Umbraco.Web.UI.Client/src/views/propertyeditors/grid/dialogs/layoutconfig.html b/src/Umbraco.Web.UI.Client/src/views/propertyeditors/grid/dialogs/layoutconfig.html index 2468bde369..5775e007f2 100644 --- a/src/Umbraco.Web.UI.Client/src/views/propertyeditors/grid/dialogs/layoutconfig.html +++ b/src/Umbraco.Web.UI.Client/src/views/propertyeditors/grid/dialogs/layoutconfig.html @@ -19,12 +19,12 @@ ng-class="{last:$last, selected:section==currentSection}" ng-repeat="section in currentLayout.sections" ng-click="configureSection(section, currentLayout)" - style="width:{{ percentage(section.grid) }}%"> + ng-style="{width: percentage(section.grid) +'%'}"> + ng-style="{width: percentage(availableLayoutSpace) + %}"> diff --git a/src/Umbraco.Web.UI.Client/src/views/propertyeditors/grid/dialogs/rowconfig.html b/src/Umbraco.Web.UI.Client/src/views/propertyeditors/grid/dialogs/rowconfig.html index 855025dc33..07aa2d2fbd 100644 --- a/src/Umbraco.Web.UI.Client/src/views/propertyeditors/grid/dialogs/rowconfig.html +++ b/src/Umbraco.Web.UI.Client/src/views/propertyeditors/grid/dialogs/rowconfig.html @@ -20,12 +20,12 @@ ng-controller="Umbraco.PropertyEditors.GridPrevalueEditor.RowConfigController"> ng-class="{last:$last, selected:cell==currentCell}" ng-repeat="cell in currentRow.areas" ng-click="configureCell(cell, currentRow)" - style="width:{{ percentage(cell.grid) }}%"> + ng-style="{width: percentage(cell.grid) + '%'}"> + ng-style="{width: percentage(availableRowSpace) + '%'}"> @@ -35,7 +35,7 @@ ng-controller="Umbraco.PropertyEditors.GridPrevalueEditor.RowConfigController">
- -
\ No newline at end of file + From 7a644b668168869c54d1a8d6f81382fd8c18447b Mon Sep 17 00:00:00 2001 From: Sebastiaan Janssen Date: Thu, 15 Jan 2015 10:37:54 +0100 Subject: [PATCH 4/4] U4-6133 Update builtin razor snippets to follow Query Builder conventions #U4-6133 Fixed --- .../Templates/Breadcrumb.cshtml | 12 ++-- .../Templates/Gallery.cshtml | 61 ++++++++++++------- .../ListAncestorsFromCurrentPage.cshtml | 20 ++++-- .../ListChildPagesFromChangeableSource.cshtml | 34 +++++++---- .../ListChildPagesFromCurrentPage.cshtml | 12 ++-- .../ListChildPagesOrderedByDate.cshtml | 11 ++-- .../ListChildPagesOrderedByName.cshtml | 11 ++-- .../ListChildPagesOrderedByProperty.cshtml | 32 ++++++---- .../ListChildPagesWithDoctype.cshtml | 41 ++++++------- .../ListDescendantsFromCurrentPage.cshtml | 55 +++++++++-------- .../ListImagesFromMediaFolder.cshtml | 30 ++++++--- .../Templates/MultinodeTree-picker.cshtml | 25 ++++---- .../Templates/Navigation.cshtml | 17 +++--- .../Templates/SiteMap.cshtml | 24 +++++--- 14 files changed, 229 insertions(+), 156 deletions(-) diff --git a/src/Umbraco.Web.UI/Umbraco/PartialViewMacros/Templates/Breadcrumb.cshtml b/src/Umbraco.Web.UI/Umbraco/PartialViewMacros/Templates/Breadcrumb.cshtml index 721abfb63b..ff63081996 100644 --- a/src/Umbraco.Web.UI/Umbraco/PartialViewMacros/Templates/Breadcrumb.cshtml +++ b/src/Umbraco.Web.UI/Umbraco/PartialViewMacros/Templates/Breadcrumb.cshtml @@ -1,19 +1,21 @@ @inherits Umbraco.Web.Macros.PartialViewMacroPage @* - This snippet makes a breadcrumb of parents using an unordred html list. + This snippet makes a breadcrumb of parents using an unordered html list. How it works: - - It uses the Ancestors() method to get all parents and then generates links so the visitor get go back + - It uses the Ancestors() method to get all parents and then generates links so the visitor can go back - Finally it outputs the name of the current page (without a link) *@ -@if (CurrentPage.Ancestors().Any()) +@{ var selection = CurrentPage.Ancestors(); } + +@if (selection.Any()) {