Minor search visual tweaks
This commit is contained in:
@@ -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%)
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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>
|
||||
|
||||
|
||||
|
||||
@@ -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:
|
||||
|
||||
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user