fix: issues with index page for unauthenticated users, refs NOISSUE
This commit is contained in:
parent
d41c4d2b2d
commit
10cfec30f9
@ -11,8 +11,11 @@
|
|||||||
<th>Date</th>
|
<th>Date</th>
|
||||||
<th>Song</th>
|
<th>Song</th>
|
||||||
<th>Submitter</th>
|
<th>Submitter</th>
|
||||||
|
@if(@User.Identity.IsAuthenticated)
|
||||||
|
{
|
||||||
<th>Details</th>
|
<th>Details</th>
|
||||||
<th></th>
|
<th></th>
|
||||||
|
}
|
||||||
</tr>
|
</tr>
|
||||||
@foreach(var songSuggestion in Model.SongSuggestions)
|
@foreach(var songSuggestion in Model.SongSuggestions)
|
||||||
{
|
{
|
||||||
@ -26,6 +29,8 @@
|
|||||||
<td>@songSuggestion?.Date.ToString("dd. MM. yyyy")</td>
|
<td>@songSuggestion?.Date.ToString("dd. MM. yyyy")</td>
|
||||||
<td><a href="@songSuggestion?.Song.Url" target="_blank">@string.Format("{0} - {1}", songSuggestion?.Song.Name, songSuggestion?.Song.Artist)</a></td>
|
<td><a href="@songSuggestion?.Song.Url" target="_blank">@string.Format("{0} - {1}", songSuggestion?.Song.Name, songSuggestion?.Song.Artist)</a></td>
|
||||||
<td>@displayName</td>
|
<td>@displayName</td>
|
||||||
|
@if(@User.Identity.IsAuthenticated)
|
||||||
|
{
|
||||||
<td><a href="/SongSubmission/@songSuggestion?.Id">View</a></td>
|
<td><a href="/SongSubmission/@songSuggestion?.Id">View</a></td>
|
||||||
<td class="=viewLike">
|
<td class="=viewLike">
|
||||||
@if(songSuggestion?.Song != null)
|
@if(songSuggestion?.Song != null)
|
||||||
@ -38,6 +43,7 @@
|
|||||||
</form>
|
</form>
|
||||||
}
|
}
|
||||||
</td>
|
</td>
|
||||||
|
}
|
||||||
</tr>
|
</tr>
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user