Minor search visual tweaks

This commit is contained in:
perploug
2013-09-27 11:23:38 +02:00
parent 23822a97ef
commit dcb08250ab
5 changed files with 28 additions and 13 deletions

View File

@@ -1,6 +1,6 @@
@ECHO OFF
SET release=7.0.0
SET comment=
SET comment=alpha
SET version=%release%
IF [%comment%] EQU [] (SET version=%release%) ELSE (SET version=%release%-%comment%)

View File

@@ -23,7 +23,7 @@ namespace Umbraco.Core.Configuration
/// Gets the version comment (like beta or RC).
/// </summary>
/// <value>The version comment.</value>
public static string CurrentComment { get { return ""; } }
public static string CurrentComment { get { return "alpha"; } }
// Get the version of the umbraco.dll by looking at a class in that dll
// Had to do it like this due to medium trust issues, see: http://haacked.com/archive/2010/11/04/assembly-location-and-medium-trust.aspx

View File

@@ -54,16 +54,28 @@
<div id="search-results" class="umb-modalcolumn-body"
ng-show="nav.ui.showSearchResults">
<h5 class="umb-tree-header">Search results</h5>
<ul class="umb-item-list nav nav-stacked" ng-repeat="resultGroup in nav.ui.search.results">
<li ng-repeat="result in resultGroup.matches">
<a ng-href="#/{{resultGroup.editor}}{{result.id}}">
<i class="icon umb-tree-icon sprTree {{resultGroup.icon}}"
ng-show="$first"></i>
{{result.name}}
</a>
<ul class="umb-tree">
<li class="root">
<div>
<h5>Search results</h5>
</div>
<ul class="umb-search-group" ng-repeat="resultGroup in nav.ui.search.results">
<li ng-repeat="result in resultGroup.matches">
<div style="padding-left: 20px">
<a ng-class="{'first':$first}" ng-href="#/{{resultGroup.editor}}{{result.id}}">
<i
class="icon umb-tree-icon sprTree {{resultGroup.icon}}"></i>
{{result.name}}
</a>
<a href class="umb-options"><i></i><i></i><i></i></a>
</div>
</li>
</ul>
</li>
</ul>
</ul>
</div>

View File

@@ -36,6 +36,9 @@ namespace Umbraco.Web.Editors
[HttpGet]
public IEnumerable<EntityBasic> Search([FromUri] string query, UmbracoEntityTypes type)
{
if (string.IsNullOrEmpty(query))
return null;
switch (type)
{
case UmbracoEntityTypes.Document:

View File

@@ -412,8 +412,8 @@ namespace Umbraco.Web
return
//StateHelper.Cookies.Preview.HasValue // has preview cookie
HttpContext.Request.HasPreviewCookie()
&& UmbracoUser != null // has user
&& currentUrl.StartsWith(IOHelper.ResolveUrl(SystemDirectories.Umbraco)) == false; // is not in admin UI
&& currentUrl.StartsWith(IOHelper.ResolveUrl(SystemDirectories.Umbraco)) == false
&& UmbracoUser != null; // has user
}
private HttpRequestBase GetRequestFromContext()