mirror of
https://github.com/lempamo/Project-Unite.git
synced 2025-01-22 17:22:15 +00:00
Add Back and Reply to viewtopic
This commit is contained in:
parent
4a089a398a
commit
3cf79e6ec8
2 changed files with 23 additions and 26 deletions
|
@ -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">
|
||||
|
|
|
@ -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>
|
||||
|
|
Loading…
Reference in a new issue