view Agendas/trunk/src/Agendas.Web/Views/Perfil/Index.cshtml @ 179:1deccd6c3cb2

Aplicando seguridad x roles en sitio web
author nelopauselli
date Mon, 08 Aug 2011 15:24:26 -0300
parents 97e51ddeeb58
children
line wrap: on
line source

@model AltNetHispano.Agendas.Web.Models.PerfilIndexModel
<h2>Perfil</h2>
<div id="content">
	<p>
		Hola @Model.DisplayName, tu mail registrado es @Html.DisplayFor(m=>m.Email), tu blog @Html.DisplayFor(m=>m.Blog) y estas tus cuentas registradas
	</p>
	<table>
		<thead>
			<tr>
				<th>Proveedor</th>
				<th>username</th>
				<th>Acciones</th>
			</tr>
		</thead>
		<tbody>
			@foreach (var item in Model.Cuentas)
			{
			<tr>
				<td>@item.IdentityProvider</td>
				<td>@item.UserName</td>
				<td class="buttons">
					@Html.ActionLink("Quitar", "Remove", new { identityProvider = item.IdentityProvider, userName = item.UserName })
				</td>
			</tr>
			}
		</tbody>
	</table>
</div>

<div class="buttons">
	@Html.ActionLink("Asociar cuenta de Twitter", "AddTwitterAccount")
	<!--
	<br/>
	@Html.ActionLink("Asociar cuenta de Google", "AddGoogleAccount")
	-->
	@Html.ActionLink("Modificar datos", "Modificar")
</div>
<br/>