Move search options outside of the debug panel

Adds easy batch for me to run gulp
This commit is contained in:
Sebastiaan Janssen
2015-06-26 14:54:53 +02:00
parent 9d422797ac
commit a89a103993
2 changed files with 62 additions and 24 deletions
+27 -24
View File
@@ -21,12 +21,7 @@
<li><a href="#" rel="nofollow"><%=Model.Results.SearchTerm %></a></li>
</ul>
</div>
<div class="search-big">
<asp:TextBox runat="server" ID="SearchText"></asp:TextBox>
<label for="<%=SearchText.ClientID %>">Search</label>
</div>
<% if (Context.IsDebuggingEnabled)
{ %>
<div style="border: 1px solid orange;">
@@ -36,28 +31,36 @@
<strong>Order by:</strong> <%= Model.Results.OrderBy %><br />
<strong>Time elapsed:</strong> <%= Model.Results.Totalmilliseconds %>
</p>
<div id="search-options" class="search-options">
<% if(Request.QueryString["cat"] == "forum")
{ %>
<label>Options:</label>
<div class="options">
<span><input type="checkbox" name="solved"/> show only solved topics</span><br/>
<span><input type="checkbox" name="replies"/> show only topics with replies</span><br/>
<span><input type="checkbox" name="order" value="updateDate"/> show last updated first</span>
</div>
</div>
<% } %>
</div>
<% } %>
<% if (Request.QueryString["cat"] == "project")
{ %>
<span>Options:</span><br/>
<span><input type="checkbox" name="order" value="updateDate"/> show last updated first</span>
<% } %>
<% } %>
<div class="search-big">
<asp:TextBox runat="server" ID="SearchText"></asp:TextBox>
<label for="<%=SearchText.ClientID %>">Search</label>
</div>
<% if(Request.QueryString["cat"] == "forum")
{ %>
<div id="search-options" class="search-options">
<div class="options">
<span><input type="checkbox" name="solved"/> show only solved topics</span><br/>
<span><input type="checkbox" name="replies"/> show only topics with replies</span><br/>
<span><input type="checkbox" name="order" value="updateDate"/> show last updated first</span>
</div>
</div>
<% } %>
<%-- <% if (Request.QueryString["cat"] == "project")
{ %>
<div id="search-options" class="search-options">
<span><input type="checkbox" name="order" value="updateDate"/> show last updated first</span>
</div>
<% } %>--%>
</div>
<% if (Model.Results.SearchResults.Any() == false)
{ %>
+35
View File
@@ -0,0 +1,35 @@
@ECHO OFF
SET release=%1
ECHO Installing Npm NuGet Package
SET nuGetFolder=%CD%\..\packages\
ECHO Configured packages folder: %nuGetFolder%
ECHO Current folder: %CD%
%CD%\..\.nuget\NuGet.exe install Npm.js -OutputDirectory %nuGetFolder% -Verbosity quiet
for /f "delims=" %%A in ('dir %nuGetFolder%node.js.* /b') do set "nodePath=%nuGetFolder%%%A\"
for /f "delims=" %%A in ('dir %nuGetFolder%npm.js.* /b') do set "npmPath=%nuGetFolder%%%A\tools\"
ECHO Temporarily adding Npm and Node to path
SET oldPath=%PATH%
path=%npmPath%;%nodePath%;%PATH%
ECHO %path%
SET buildFolder=%CD%
ECHO Change directory to %CD%\..\OurUmbraco.Client\
CD %CD%\..\OurUmbraco.Client\
ECHO Do npm install and the gulp build
call npm install
call npm install -g install gulp -g --quiet
call gulp
ECHO Reset path to what it was before
path=%oldPath%
ECHO Move back to the build folder
CD %buildFolder%