Some cleanup

1. Removing a bug # from code which is fixed.
2. Removing a piece of test that was added while testing.
This commit is contained in:
Praburaj 2014-09-04 13:13:17 -07:00
parent c299a13927
commit 1b6ee846ed
3 changed files with 5 additions and 4 deletions

View File

@ -4,6 +4,7 @@
<h4>Use another service to log in.</h4>
<hr />
@{
//TODO: Need to replace with the helper that filters non external ones. GetExternalAuthenticationTypes()
var loginProviders = Context.GetAuthenticationTypes();
if (loginProviders.Count() == 0)
{
@ -16,13 +17,13 @@
}
else
{
<p>asdfasdf</p>
using (Html.BeginForm("ExternalLogin", "Account", new { ReturnUrl = Model.ReturnUrl }))
{
@Html.AntiForgeryToken()
<div id="socialLoginList">
<p>
@foreach (AuthenticationDescription p in loginProviders)
@*TODO: Temporary hack for the above issue. Needs to be removed once GetExternalAuthenticationTypes() is available*@
@foreach (AuthenticationDescription p in loginProviders.Where(a => a.Caption != null))
{
<button type="submit" class="btn btn-default" id="@p.AuthenticationType" name="provider" value="@p.AuthenticationType" title="Log in using your @p.Caption account">@p.AuthenticationType</button>
}

View File

@ -3,7 +3,8 @@
@if (Model != null)
{
<li>
<small><i>@Html.Label(null, "New!", new { style = "color: red" })</i></small>
<br />
<small><i>@Html.Label(null, "New Arrivals!", new { style = "color: red" })</i></small>
<i>@Html.ActionLink(Model.Title, "Details", "Store", new { id = Model.AlbumId }, new { id = "NewArrivalsPanel" })</i>
</li>
}

View File

@ -95,7 +95,6 @@ namespace E2ETests
applicationPath = Path.GetFullPath(applicationPath.Replace('\\', '/'));
//Mono does not have a way to pass in a --appbase switch. So it will be an environment variable.
//https://github.com/aspnet/KRuntime/issues/580
Environment.SetEnvironmentVariable("KRE_APPBASE", applicationPath);
Console.WriteLine("Setting the KRE_APPBASE to {0}", applicationPath);