diff --git a/Yavsc/Views/Blogspot/Index.cshtml b/Yavsc/Views/Blogspot/Index.cshtml index 40d0f735..a196b7ce 100644 --- a/Yavsc/Views/Blogspot/Index.cshtml +++ b/Yavsc/Views/Blogspot/Index.cshtml @@ -7,30 +7,15 @@
@ViewData["StatusMessage"]
- Create New + @SR["Create a new article"]
| - @SR["Author"] - | -- @Html.DisplayNameFor(model => model.title) - | -- @Html.DisplayNameFor(model => model.modified) - | -- @Html.DisplayNameFor(model => model.photo) - | -- @Html.DisplayNameFor(model => model.posted) - | -- @Html.DisplayNameFor(model => model.rate) + @SR[Html.DisplayNameFor(model => model.title)] | - @Html.DisplayNameFor(model => model.visible) + @SR["Author"] | |
|---|---|---|---|---|---|---|---|
| - @item.Author?.UserName - | -
+ @Html.DisplayFor(modelItem => item.photo)
|
- @Html.DisplayFor(modelItem => item.modified) - | -- @Html.DisplayFor(modelItem => item.photo) - | -- @Html.DisplayFor(modelItem => item.posted) - | -- @Html.DisplayFor(modelItem => item.rate) - | -
- @Html.DisplayFor(modelItem => item.visible)
+ @item.Author?.UserName
+ + @Html.DisplayFor(modelItem => item.posted) + @Html.DisplayFor(modelItem => item.modified) + @Html.DisplayFor(modelItem => item.rate) |
@Html.DisplayFor(m => m.EventDate) @Html.DisplayFor(m => m.Location) - @SR["Notifications sent to its devices"]-@if (ViewBag.GooglePayload !=null) { - - @if (ViewBag.GooglePayload.results !=null) { - @:success: @ViewBag.GooglePayload.success - @:failure: @ViewBag.GooglePayload.failure - - - @foreach (MessageWithPayloadResponse.Result mr in ViewBag.GooglePayload.results) { - @:message_id: @mr.message_id - @:registration_id: @mr.registration_id - @:error: @mr.error - - } + @if (ViewBag.GooglePayload.success>0) { + @SR["GCM Notifications sent"]+ } + else { + if (ViewBag.GooglePayload.failure>0) + { +@SR["GCM Notification sending failed"]+ } } } diff --git a/Yavsc/Views/Estimate/Create.cshtml b/Yavsc/Views/Estimate/Create.cshtml index 9e09cf20..caf8a9aa 100644 --- a/Yavsc/Views/Estimate/Create.cshtml +++ b/Yavsc/Views/Estimate/Create.cshtml @@ -1,4 +1,4 @@ -@model Yavsc.Models.Estimate +@model Estimate @{ ViewData["Title"] = SR["Estimate"]; diff --git a/Yavsc/Views/Estimate/Delete.cshtml b/Yavsc/Views/Estimate/Delete.cshtml index 9165fdc3..17c57de7 100644 --- a/Yavsc/Views/Estimate/Delete.cshtml +++ b/Yavsc/Views/Estimate/Delete.cshtml @@ -1,4 +1,4 @@ -@model Yavsc.Models.Estimate +@model Estimate @{ ViewData["Title"] = "Delete"; diff --git a/Yavsc/Views/Estimate/Details.cshtml b/Yavsc/Views/Estimate/Details.cshtml index 79293514..384dab3b 100644 --- a/Yavsc/Views/Estimate/Details.cshtml +++ b/Yavsc/Views/Estimate/Details.cshtml @@ -1,4 +1,4 @@ -@model Yavsc.Models.Estimate +@model Estimate @{ ViewData["Title"] = "Details"; diff --git a/Yavsc/Views/Estimate/Edit.cshtml b/Yavsc/Views/Estimate/Edit.cshtml index 2f996506..2e14961d 100644 --- a/Yavsc/Views/Estimate/Edit.cshtml +++ b/Yavsc/Views/Estimate/Edit.cshtml @@ -1,4 +1,4 @@ -@model Yavsc.Models.Estimate +@model Estimate @{ ViewData["Title"] = "Edit"; diff --git a/Yavsc/Views/Estimate/Index.cshtml b/Yavsc/Views/Estimate/Index.cshtml index 4ef300a2..f7ed5930 100644 --- a/Yavsc/Views/Estimate/Index.cshtml +++ b/Yavsc/Views/Estimate/Index.cshtml @@ -1,4 +1,4 @@ -@model IEnumerable |