diff --git a/Yavsc/Helpers/FileSystemHelpers.cs b/Yavsc/Helpers/FileSystemHelpers.cs index d72798d9..3053b793 100644 --- a/Yavsc/Helpers/FileSystemHelpers.cs +++ b/Yavsc/Helpers/FileSystemHelpers.cs @@ -9,7 +9,6 @@ using System.Net.Mime; using System.Security.Claims; using System.Web; using Microsoft.AspNet.Http; -using Yavsc.ApiControllers; using Yavsc.Models; using Yavsc.Models.FileSystem; using Yavsc.ViewModels; diff --git a/Yavsc/Migrations/20170201162847_defaultAvatar.Designer.cs b/Yavsc/Migrations/20170201162847_defaultAvatar.Designer.cs index b44677a1..7fa555f6 100644 --- a/Yavsc/Migrations/20170201162847_defaultAvatar.Designer.cs +++ b/Yavsc/Migrations/20170201162847_defaultAvatar.Designer.cs @@ -1,7 +1,6 @@ using System; using Microsoft.Data.Entity; using Microsoft.Data.Entity.Infrastructure; -using Microsoft.Data.Entity.Metadata; using Microsoft.Data.Entity.Migrations; using Yavsc.Models; diff --git a/Yavsc/Migrations/20170202102936_defaultDiskQuota.Designer.cs b/Yavsc/Migrations/20170202102936_defaultDiskQuota.Designer.cs index add557a3..4adb0b5e 100644 --- a/Yavsc/Migrations/20170202102936_defaultDiskQuota.Designer.cs +++ b/Yavsc/Migrations/20170202102936_defaultDiskQuota.Designer.cs @@ -1,7 +1,6 @@ using System; using Microsoft.Data.Entity; using Microsoft.Data.Entity.Infrastructure; -using Microsoft.Data.Entity.Metadata; using Microsoft.Data.Entity.Migrations; using Yavsc.Models; diff --git a/Yavsc/Migrations/20170202102936_defaultDiskQuota.cs b/Yavsc/Migrations/20170202102936_defaultDiskQuota.cs index a09fa6b3..8e1d2340 100644 --- a/Yavsc/Migrations/20170202102936_defaultDiskQuota.cs +++ b/Yavsc/Migrations/20170202102936_defaultDiskQuota.cs @@ -1,5 +1,3 @@ -using System; -using System.Collections.Generic; using Microsoft.Data.Entity.Migrations; namespace Yavsc.Migrations diff --git a/Yavsc/Migrations/ApplicationDbContextModelSnapshot.cs b/Yavsc/Migrations/ApplicationDbContextModelSnapshot.cs index 0535330b..9bb95e39 100644 --- a/Yavsc/Migrations/ApplicationDbContextModelSnapshot.cs +++ b/Yavsc/Migrations/ApplicationDbContextModelSnapshot.cs @@ -1,8 +1,6 @@ using System; using Microsoft.Data.Entity; using Microsoft.Data.Entity.Infrastructure; -using Microsoft.Data.Entity.Metadata; -using Microsoft.Data.Entity.Migrations; using Yavsc.Models; namespace Yavsc.Migrations diff --git a/Yavsc/ViewComponents/AvatarViewComponent.cs b/Yavsc/ViewComponents/AvatarViewComponent.cs index 18961f78..fa90daec 100644 --- a/Yavsc/ViewComponents/AvatarViewComponent.cs +++ b/Yavsc/ViewComponents/AvatarViewComponent.cs @@ -1,4 +1,3 @@ -using System.Threading.Tasks; using Microsoft.AspNet.Mvc; using Yavsc.Helpers; using Yavsc.Models; @@ -13,7 +12,7 @@ namespace Yavsc.ViewComponents this.dbContext = dbContext; } - public async Task InvokeAsync ( string userId, string imgFmt ) + public IViewComponentResult Invoke ( string userId, string imgFmt ) { return View ( "Default", dbContext.AvatarUri(userId, imgFmt)); } diff --git a/Yavsc/ViewComponents/CirclesControlViewComponent.cs b/Yavsc/ViewComponents/CirclesControlViewComponent.cs index 0f853f19..3e84a418 100644 --- a/Yavsc/ViewComponents/CirclesControlViewComponent.cs +++ b/Yavsc/ViewComponents/CirclesControlViewComponent.cs @@ -1,5 +1,4 @@ using System.Linq; -using System.Threading.Tasks; using Microsoft.AspNet.Mvc; using Microsoft.AspNet.Mvc.Rendering; using Yavsc.Models; @@ -18,7 +17,7 @@ namespace Yavsc.ViewComponents } - public async Task InvokeAsync (ICircleAuthorized target) + public IViewComponentResult Invoke (ICircleAuthorized target) { var oid = target.GetOwnerId(); ViewBag.ACL = dbContext.Circle.Where( diff --git a/Yavsc/Views/Blogspot/Edit.cshtml b/Yavsc/Views/Blogspot/Edit.cshtml index 74bcb688..91c89d4e 100644 --- a/Yavsc/Views/Blogspot/Edit.cshtml +++ b/Yavsc/Views/Blogspot/Edit.cshtml @@ -203,7 +203,7 @@
- @await Component.InvokeAsync("CirclesControl",Model) + @Component.Invoke("CirclesControl",Model)
diff --git a/Yavsc/Views/Manage/Index.cshtml b/Yavsc/Views/Manage/Index.cshtml index 1ddb788f..996baace 100755 --- a/Yavsc/Views/Manage/Index.cshtml +++ b/Yavsc/Views/Manage/Index.cshtml @@ -49,11 +49,16 @@
@SR["Avatar"]:
- @await Component.InvokeAsync("Avatar", User.GetUserId(), ".s") + @Component.Invoke("Avatar", User.GetUserId(), ".s") [@SR["Modify"]]
+
@SR["Vos cercles"]
+
(WIP) [@SR["Ajouter suprimer des cercles"]] + [@SR["Gérer les membres de vos cercles"]] +
+
@SR["Professional settings"]:
@Html.DisplayFor(model => model.HaveProfessionalSettings) diff --git a/Yavsc/Views/Shared/_LoginPartial.cshtml b/Yavsc/Views/Shared/_LoginPartial.cshtml index cd08030c..55e436fa 100755 --- a/Yavsc/Views/Shared/_LoginPartial.cshtml +++ b/Yavsc/Views/Shared/_LoginPartial.cshtml @@ -6,7 +6,7 @@