Some more error fixing after noticing them in the logs
This commit is contained in:
@@ -12,8 +12,11 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
var mem = Members.GetCurrentMember();
|
var mem = Members.GetCurrentMember();
|
||||||
|
var subscribed = false;
|
||||||
var subscribed = NotificationsWeb.Library.Utils.IsSubscribedToForum(CurrentPage.Id, mem.Id);
|
if (mem != null)
|
||||||
|
{
|
||||||
|
subscribed = NotificationsWeb.Library.Utils.IsSubscribedToForum(CurrentPage.Id, mem.Id);
|
||||||
|
}
|
||||||
|
|
||||||
if (CurrentPage.Level == 4)
|
if (CurrentPage.Level == 4)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -7,15 +7,19 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
<div class="utility-actions">
|
<div class="utility-actions">
|
||||||
@if(topic != null)
|
@if(topic != null)
|
||||||
{
|
{
|
||||||
if (Members.IsLoggedIn())
|
if (Members.IsLoggedIn())
|
||||||
{
|
{
|
||||||
var mem = Members.GetCurrentMember();
|
var mem = Members.GetCurrentMember();
|
||||||
var subscribed = NotificationsWeb.Library.Utils.IsSubscribedToForumTopic(topic.Id, mem.Id);
|
var subscribed = false;
|
||||||
|
if (mem != null)
|
||||||
if (Members.IsAdmin())
|
{
|
||||||
{
|
subscribed = NotificationsWeb.Library.Utils.IsSubscribedToForumTopic(topic.Id, mem.Id);
|
||||||
|
}
|
||||||
|
|
||||||
|
if (Members.IsAdmin())
|
||||||
|
{
|
||||||
<a href="#" class="delete-thread button" data-id="@topic.Id">
|
<a href="#" class="delete-thread button" data-id="@topic.Id">
|
||||||
<i class="icon-Delete-key"></i><span>Delete thread</span>
|
<i class="icon-Delete-key"></i><span>Delete thread</span>
|
||||||
</a>
|
</a>
|
||||||
|
|||||||
@@ -32,7 +32,6 @@
|
|||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
<div id="events">
|
<div id="events">
|
||||||
<umbraco:Macro Alias="Events-ShowUpcoming" runat="server"></umbraco:Macro>
|
|
||||||
</div>
|
</div>
|
||||||
</asp:ContentPlaceHolder>
|
</asp:ContentPlaceHolder>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -157,7 +157,7 @@ $recordsPerPage )">
|
|||||||
<xsl:when test="string-length($project/defaultScreenshotPath) > 0">
|
<xsl:when test="string-length($project/defaultScreenshotPath) > 0">
|
||||||
<div style="float:left;padding-top:15px;width:75px;height:80px;">
|
<div style="float:left;padding-top:15px;width:75px;height:80px;">
|
||||||
<div style="padding-left:16px;">
|
<div style="padding-left:16px;">
|
||||||
<img style="width:40px;height:40px" src="/umbraco/imagegen.ashx?image={$project/defaultScreenshotPath}&pad=true&width=40&height=40;" alt="{$project/@nodeName}"/>
|
<img style="width:40px;height:40px" src="{$project/defaultScreenshotPath}?width=40&height=40;" alt="{$project/@nodeName}"/>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</xsl:when>
|
</xsl:when>
|
||||||
|
|||||||
Reference in New Issue
Block a user