diff options
| author | Michael <[email protected]> | 2017-05-17 15:40:46 -0400 |
|---|---|---|
| committer | Michael <[email protected]> | 2017-05-17 15:40:46 -0400 |
| commit | 3cf79e6ec82361fc617e437373354ce2feda0c66 (patch) | |
| tree | 0a1f7eb4874c1af35efd0312250c16f1ece789e4 | |
| parent | 4a089a398a5a8f9aa17da08958ce4c3780b34b51 (diff) | |
| download | project-unite-3cf79e6ec82361fc617e437373354ce2feda0c66.tar.gz project-unite-3cf79e6ec82361fc617e437373354ce2feda0c66.tar.bz2 project-unite-3cf79e6ec82361fc617e437373354ce2feda0c66.zip | |
Add Back and Reply to viewtopic
| -rw-r--r-- | Project-Unite/Views/Forum/ViewTopic.cshtml | 19 | ||||
| -rw-r--r-- | Project-Unite/Views/Shared/_Layout.cshtml | 30 |
2 files changed, 23 insertions, 26 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"> diff --git a/Project-Unite/Views/Shared/_Layout.cshtml b/Project-Unite/Views/Shared/_Layout.cshtml index cbc938f..0e96b54 100644 --- a/Project-Unite/Views/Shared/_Layout.cshtml +++ b/Project-Unite/Views/Shared/_Layout.cshtml @@ -21,32 +21,7 @@ } @Scripts.Render("~/bundles/jquery") @Scripts.Render("~/bundles/bootstrap") - <script src="Scripts/jquery.signalR-2.2.2-preview1.min.js"></script> - <script src="signalr/hubs"></script> @RenderSection("scripts", required: false) - <script type="text/javascript"> - var mde = new SimpleMDE({forceSync: true}); - mde.options.forceSync(); - </script> - <script type="text/javascript"> - var notificationHubProxy = $.connection.notificationHub; - notificationHubProxy.client.sendMessage = function (message) { - $("#notification_body").find("ul").append("<li></li>").html(message); - $.ajax({ - url : "/API/GetNotificationCount", - success : function(result){ - $("#notification_count").html(result); - } - }); - var audio = new Audio("/Content/infobox.wav"); - audio.play(); - }; - $.connection.hub.start() - .done(function(){ console.log('Now connected, connection ID=' + $.connection.hub.id); }) - .fail(function(){ console.log('Could not Connect!'); }); - }); - </script> - <title>@ViewBag.Title • ShiftOS</title> @Styles.Render("~/Content/css") @Styles.Render("~/Content/bootstrap-theme.css") @@ -189,7 +164,10 @@ </footer> - + <script type="text/javascript"> + var mde = new SimpleMDE({forceSync: true}); + mde.options.forceSync(); + </script> </body> |
