# HG changeset patch # User juanjose.montesdeocaarbos # Date 1325530279 10800 # Node ID a8f7c41e3b4737eda366f611f8f668d202dbd66e # Parent c8f378272407f2a45edb485b88ae85d640ea9dd3 #196: Patrocinadores, en el histórico de eventos. diff -r c8f378272407 -r a8f7c41e3b47 Agendas/trunk/src/Agendas.Web/Content/Site.css --- a/Agendas/trunk/src/Agendas.Web/Content/Site.css Sat Dec 31 14:45:55 2011 -0300 +++ b/Agendas/trunk/src/Agendas.Web/Content/Site.css Mon Jan 02 15:51:19 2012 -0300 @@ -209,6 +209,13 @@ border: solid 1px #e8eef4; } +table td img.logo +{ + /*height: 1.5em;*/ + width: 4em; + vertical-align:middle; +} + /* MISC ----------------------------------------------------------*/ .clear diff -r c8f378272407 -r a8f7c41e3b47 Agendas/trunk/src/Agendas.Web/Controllers/HistoricoController.cs --- a/Agendas/trunk/src/Agendas.Web/Controllers/HistoricoController.cs Sat Dec 31 14:45:55 2011 -0300 +++ b/Agendas/trunk/src/Agendas.Web/Controllers/HistoricoController.cs Mon Jan 02 15:51:19 2012 -0300 @@ -24,7 +24,14 @@ Ponentes = e.Ponentes.Select(p=>p.Nombre), Numero = e.NumeroOrden.ToString(), Tipo = e.Tipo.ToString(), - Duracion = e.Duracion.ToString(@"hh\:mm") + Duracion = e.Duracion.ToString(@"hh\:mm"), + Patrocinadores = from p in e.Patrocinadores + orderby p.Nombre ascending + select new PatrocinadorDto() + { + Id = p.Id, + Nombre = p.Nombre + } } }; return View(model); diff -r c8f378272407 -r a8f7c41e3b47 Agendas/trunk/src/Agendas.Web/Models/HistoricoModel.cs --- a/Agendas/trunk/src/Agendas.Web/Models/HistoricoModel.cs Sat Dec 31 14:45:55 2011 -0300 +++ b/Agendas/trunk/src/Agendas.Web/Models/HistoricoModel.cs Mon Jan 02 15:51:19 2012 -0300 @@ -18,6 +18,7 @@ public string Wiki { get; set; } public IEnumerable Ponentes { get; set; } public string Duracion { get; set; } + public IEnumerable Patrocinadores { get; set; } } } \ No newline at end of file diff -r c8f378272407 -r a8f7c41e3b47 Agendas/trunk/src/Agendas.Web/Views/Historico/Index.cshtml --- a/Agendas/trunk/src/Agendas.Web/Views/Historico/Index.cshtml Sat Dec 31 14:45:55 2011 -0300 +++ b/Agendas/trunk/src/Agendas.Web/Views/Historico/Index.cshtml Mon Jan 02 15:51:19 2012 -0300 @@ -12,6 +12,7 @@ Evento Ponente Duración + Patrocinadores @@ -28,6 +29,12 @@ } @item.Duracion + + @foreach (var patrocinador in item.Patrocinadores) + { + + } + }