summaryrefslogtreecommitdiff
path: root/Project-Unite/Views/Wiki
diff options
context:
space:
mode:
authorMichael <[email protected]>2017-04-07 09:08:48 -0400
committerMichael <[email protected]>2017-04-07 09:08:48 -0400
commit62fc513e42ff6a52a8dbe69c0555fdf7fdb28ccc (patch)
treee946a5b3ee6c9855fc3a3e97709dd4d8385506bc /Project-Unite/Views/Wiki
parent7bc9017b0fd43eb918277319907277edc839794d (diff)
downloadproject-unite-62fc513e42ff6a52a8dbe69c0555fdf7fdb28ccc.tar.gz
project-unite-62fc513e42ff6a52a8dbe69c0555fdf7fdb28ccc.tar.bz2
project-unite-62fc513e42ff6a52a8dbe69c0555fdf7fdb28ccc.zip
Add rating of wiki pages.
Diffstat (limited to 'Project-Unite/Views/Wiki')
-rw-r--r--Project-Unite/Views/Wiki/Index.cshtml19
1 files changed, 19 insertions, 0 deletions
diff --git a/Project-Unite/Views/Wiki/Index.cshtml b/Project-Unite/Views/Wiki/Index.cshtml
index 38cac11..737f30a 100644
--- a/Project-Unite/Views/Wiki/Index.cshtml
+++ b/Project-Unite/Views/Wiki/Index.cshtml
@@ -26,6 +26,15 @@
</li>
}
+@if (!string.IsNullOrWhiteSpace(ViewBag.Error))
+{
+ <div class="panel panel-danger">
+ <div class="panel-body">
+ <p><span class="glyphicon glyphicon-exclamation-sign"></span> @ViewBag.Error</p>
+ </div>
+ </div>
+}
+
@if (Request.IsAuthenticated)
{
<ul class="nav nav-tabs">
@@ -73,6 +82,16 @@
<p><strong>Last edited by @Html.UserLink(edit.UserId) on @edit.EditedAt</strong></p>
<p>@Html.Markdown(Model.Page.Contents)</p>
+
+ if (Request.IsAuthenticated)
+ {
+ <ul class="nav nav-pills">
+ <li>Was this page helpful?</li>
+ <li><a href="@Url.Action("LikePage", new { id = Model.Page.Id })"><span class="glyphicon glyphicon-check"></span> @Model.Page.Likes.Length</a></li>
+ <li><a href="@Url.Action("DislikePage", new { id = Model.Page.Id })"><span class="close"></span> @Model.Page.Dislikes.Length</a></li>
+
+ </ul>
+ }
}
else
{