diff Agendas/trunk/src/Agendas.Web/Views/Evento/Index.cshtml @ 116:53bcd338542b

acciones de confirmar y publicar desde la UI
author Nelo@Kenia.neluz.int
date Sun, 19 Jun 2011 13:00:02 -0300
parents 2adf55ea9199
children b74734a1a755
line wrap: on
line diff
--- a/Agendas/trunk/src/Agendas.Web/Views/Evento/Index.cshtml	Sun Jun 12 01:40:09 2011 -0300
+++ b/Agendas/trunk/src/Agendas.Web/Views/Evento/Index.cshtml	Sun Jun 19 13:00:02 2011 -0300
@@ -18,8 +18,18 @@
             <td>@item.Fecha.ToShortDateString()</td>
             <td>@item.Titulo</td>
             <td>
-				@Html.ActionLink("Modificar", "Edit", new { id = item.Id })
-				@Html.ActionLink("Confirmar", "Confirm", new { id = item.Id })
+				@if (item.PuedeModificar)
+				{
+					@Html.ActionLink("Modificar", "Edit", new { id = item.Id })
+				}
+				@if (item.PuedeConfirmar)
+				{
+					@Html.ActionLink("Confirmar", "Confirm", new { id = item.Id })
+				}
+				@if (item.PuedePublicar)
+				{
+					@Html.ActionLink("Publicar", "Publish", new { id = item.Id })
+				}
 			</td>
         </tr>
 		}