diff options
| author | Michael <[email protected]> | 2017-05-31 18:41:36 -0400 |
|---|---|---|
| committer | Michael <[email protected]> | 2017-05-31 18:41:36 -0400 |
| commit | 82c0215b9743c8cc7e90a054b6cff9fb8f6cebe7 (patch) | |
| tree | 6e87b173f9650fc6c5a8e772f70ebe00d22614e8 /Project-Unite/Views/Quotes/ReviewAll.cshtml | |
| parent | 1dcba9a68839ac0eac372030b20d9c0c8f2f8e0e (diff) | |
| download | project-unite-82c0215b9743c8cc7e90a054b6cff9fb8f6cebe7.tar.gz project-unite-82c0215b9743c8cc7e90a054b6cff9fb8f6cebe7.tar.bz2 project-unite-82c0215b9743c8cc7e90a054b6cff9fb8f6cebe7.zip | |
User-submitted quotes.
Diffstat (limited to 'Project-Unite/Views/Quotes/ReviewAll.cshtml')
| -rw-r--r-- | Project-Unite/Views/Quotes/ReviewAll.cshtml | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/Project-Unite/Views/Quotes/ReviewAll.cshtml b/Project-Unite/Views/Quotes/ReviewAll.cshtml new file mode 100644 index 0000000..bee7f37 --- /dev/null +++ b/Project-Unite/Views/Quotes/ReviewAll.cshtml @@ -0,0 +1,36 @@ +@model IEnumerable<Project_Unite.Models.Quote> +@{ + ViewBag.Title = "Review quotes"; +} + +<h2>Review Quotes</h2> + +<p>Below is a list of all quotes that need moderator review.</p> + +@if(Model.Count() == 0) +{ + <p><em>No quotes to show!</em></p> +} +else +{ + foreach (var quote in Model) + { + <div class="panel panel-default"> + <div class="panel-body"> + <p><strong> + @if (!String.IsNullOrWhiteSpace(quote.AuthorAvatar)) + { + <img src="@quote.AuthorAvatar" width="24" height="24" style="border-radius:100%" /> + } + @quote.AuthorId </strong></p> + + <p>@Html.Markdown(quote.Body)</p> + + <p><em> - @quote.Year</em></p> + + <a href="@Url.Action("Approve", new { id = quote.Id })" class="btn btn-primary"><span class="glyphicon glyphicon-ok"></span> Approve</a> + <a href="@Url.Action("Deny", new { id = quote.Id })" class="btn btn-danger"><span class="glyphicon glyphicon-ban-circle"></span> Deny & delete</a> + </div> + </div> + } +}
\ No newline at end of file |
