summaryrefslogtreecommitdiff
path: root/Project-Unite/Views/Forum/ViewTopic.cshtml
diff options
context:
space:
mode:
authorMichael <[email protected]>2017-05-17 15:40:46 -0400
committerMichael <[email protected]>2017-05-17 15:40:46 -0400
commit3cf79e6ec82361fc617e437373354ce2feda0c66 (patch)
tree0a1f7eb4874c1af35efd0312250c16f1ece789e4 /Project-Unite/Views/Forum/ViewTopic.cshtml
parent4a089a398a5a8f9aa17da08958ce4c3780b34b51 (diff)
downloadproject-unite-3cf79e6ec82361fc617e437373354ce2feda0c66.tar.gz
project-unite-3cf79e6ec82361fc617e437373354ce2feda0c66.tar.bz2
project-unite-3cf79e6ec82361fc617e437373354ce2feda0c66.zip
Add Back and Reply to viewtopic
Diffstat (limited to 'Project-Unite/Views/Forum/ViewTopic.cshtml')
-rw-r--r--Project-Unite/Views/Forum/ViewTopic.cshtml19
1 files changed, 19 insertions, 0 deletions
diff --git a/Project-Unite/Views/Forum/ViewTopic.cshtml b/Project-Unite/Views/Forum/ViewTopic.cshtml
index 35607e0..a8f5fb8 100644
--- a/Project-Unite/Views/Forum/ViewTopic.cshtml
+++ b/Project-Unite/Views/Forum/ViewTopic.cshtml
@@ -5,6 +5,25 @@
ViewBag.Title = Model.Subject;
}
+<ul class="nav nav-tabs">
+ <li><a href="#" onclick="window.history.back()"><span class="glyphicon glyphicon-arrow-left"></span> Back</a></li>
+ @if (Request.IsAuthenticated)
+ {
+ if (ACL.CanReply(User.Identity.Name, Model.Parent))
+ {
+ if (Model.IsLocked == false)
+ {
+ <li><a href="@Url.Action("PostReply", "Forum", new { id = Model.Discriminator, fid=Model.Parent })"><span class="glyphicon glyphicon-comment"></span> Post reply</a></li>
+ }
+ else
+ {
+ <li><a href="#"><span class="glyphicon glyphicon-lock"></span> Locked.</a></li>
+ }
+ }
+ }
+</ul>
+
+
@if(Model.IsUnlisted == true)
{
<div class="panel panel-warning">