cleanings & circle links

This commit is contained in:
2017-02-02 13:49:47 +01:00
parent 8e3cb3029c
commit 21c72f1cdc
10 changed files with 10 additions and 14 deletions

View File

@ -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;

View File

@ -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;

View File

@ -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;

View File

@ -1,5 +1,3 @@
using System;
using System.Collections.Generic;
using Microsoft.Data.Entity.Migrations;
namespace Yavsc.Migrations

View File

@ -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

View File

@ -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<IViewComponentResult> InvokeAsync ( string userId, string imgFmt )
public IViewComponentResult Invoke ( string userId, string imgFmt )
{
return View ( "Default", dbContext.AvatarUri(userId, imgFmt));
}

View File

@ -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<IViewComponentResult> InvokeAsync (ICircleAuthorized target)
public IViewComponentResult Invoke (ICircleAuthorized target)
{
var oid = target.GetOwnerId();
ViewBag.ACL = dbContext.Circle.Where(

View File

@ -203,7 +203,7 @@
<div class="form-group">
<label asp-for="ACL" class="col-md-2 control-label"></label>
<div class="col-md-10">
@await Component.InvokeAsync("CirclesControl",Model)
@Component.Invoke("CirclesControl",Model)
</div>
</div>

View File

@ -49,11 +49,16 @@
<dt>@SR["Avatar"]:</dt>
<dd>
@await Component.InvokeAsync("Avatar", User.GetUserId(), ".s")
@Component.Invoke("Avatar", User.GetUserId(), ".s")
[<a asp-controller="Manage" asp-action="SetAvatar"
>@SR["Modify"]</a>]
</dd>
<dt>@SR["Vos cercles"]</dt>
<dd> (WIP) <a asp-action="Index" asp-controller="Circle">[@SR["Ajouter suprimer des cercles"]]</a>
<a asp-action="Index" asp-controller="CircleMembers">[@SR["Gérer les membres de vos cercles"]]</a>
</dd>
<dt>@SR["Professional settings"]:</dt>
<dd>
@Html.DisplayFor(model => model.HaveProfessionalSettings)

View File

@ -6,7 +6,7 @@
<ul class="nav navbar-nav navbar-right">
<li>
<a asp-controller="Manage" class="navbar-link" asp-action="Index" title="Manage">
@await Component.InvokeAsync("Avatar", User.GetUserId(), ".xs")
@Component.Invoke("Avatar", User.GetUserId(), ".xs")
@SR["Hello"] @User.GetUserName()!</a>
</li>
<li>