Browse files

beheer pagina pretty

  • Loading branch information...
1 parent eabf8d8 commit 0bc7cf0c8e6eb9e296c245efb2ac000ca8751c1b @martndemus committed Mar 28, 2012
Showing with 61 additions and 68 deletions.
  1. +20 −1 Source/NHLStackOverflow/Styles/style.css
  2. +41 −67 Source/NHLStackOverflow/Views/User/Beheer.cshtml
View
21 Source/NHLStackOverflow/Styles/style.css
@@ -561,6 +561,11 @@ ul.tags {
margin-bottom: -1px;
}
+.inboxmessage a
+{
+ text-decoration: none;
+}
+
.markreadbutton {
color: #fff;
background: hsl(200, 30%, 25%);
@@ -575,11 +580,25 @@ ul.tags {
text-decoration: none;
}
/*
- SPECIFIC
+ Admin panel
*/
+.raport {
+ list-style:none;
+ padding: 0;
+}
+.raport li {
+ padding: 5px 10px;
+ border-top: 1px solid #243842;
+ border-bottom: 1px solid #243842;
+ margin-bottom: -1px;
+}
+.raport a
+{
+ text-decoration: none;
+}
/*
HELPER CLASSES
*/
View
108 Source/NHLStackOverflow/Views/User/Beheer.cshtml
@@ -16,101 +16,75 @@
<h2>Beheer</h2>
@if (ViewBag.Allowed)
{
- <h3>Gemarkeerde vragen:</h3>
- <table>
- <thead>
- <tr>
- <td>ID</td>
- <td colspan="2">Inhoud</td>
- </tr>
- </thead>
- @if (ViewBag.badQuestionList != null)
- {
- <tr>
- @foreach (var vraagje in ViewBag.badQuestionList)
+ <h3>Gerapporteerde vragen:</h3>
+ <ul class="raport">
+ @if (ViewBag.badQuestionList != null)
{
- <td>@vraagje.QuestionID</td>
- <td>@Html.ActionLink((string)vraagje.Title, "view", "vraag", new { id = vraagje.QuestionID }, new { target = "_blank" }):@vraagje.Content</td>
- <td>@Html.ActionLink("[x]", "delete", "vraag", new { id = vraagje.QuestionID }, "")</td>
- <td>@Html.ActionLink("[√]", "Unflag", "vraag", new { id = vraagje.QuestionID }, "")</td>
+ foreach (var vraagje in ViewBag.badQuestionList)
+ {
+ <li>
+ @Html.ActionLink((string)vraagje.Title, "view", "vraag", new { id = vraagje.QuestionID }, new { target = "_blank" })
+ [@Html.ActionLink("Verwijder", "delete", "vraag", new { id = vraagje.QuestionID }, "")]
+ [@Html.ActionLink("OK", "Unflag", "vraag", new { id = vraagje.QuestionID }, "")]
+ </li>
+ }
+
}
- </tr>
- }
- else
- {
- <span>Er zijn geen geflaggde vragen</span>
- }
- </table>
+ else
+ {
+ <li>Er zijn geen gerapporteerde vragen</li>
+ }
+ </ul>
<hr />
- <h3>Gemarkeerde antwoorden:</h3>
- <table>
- <thead>
- <tr>
- <td>ID</td>
- <td colspan="2">Inhoud</td>
- </tr>
- </thead>
+
+ <h3>Gerapporteerde antwoorden:</h3>
+ <ul class="raport">
@if (ViewBag.badAwnserList != null)
{
foreach (var answer in ViewBag.badAwnserList)
{
- <tr>
- <td>@answer.AnswerID</td>
- <td>@Html.ActionLink((string)answer.Content.Substring(0, 95) + "...", "view", "vraag", new { id = answer.QuestionId }, new { })</td>
- <td>@Html.ActionLink("[x]", "delete", "answer", new { id = answer.AnswerID }, new { })</td>
- <td>@Html.ActionLink("[√]", "Unflag", "answer", new { id = answer.AnswerID }, "")</td>
- </tr>
+ <li>
+ @Html.ActionLink((string)answer.Content.Substring(0, 95) + "...", "view", "vraag", new { id = answer.QuestionId }, new { })
+ [@Html.ActionLink("Verwijder", "delete", "answer", new { id = answer.AnswerID }, new { })]
+ [@Html.ActionLink("OK", "Unflag", "answer", new { id = answer.AnswerID }, "")]
+ </li>
}
}
else
{
- <tr>
- <td colspan="4">Er zijn geen gemarkeerde antwoorden.</td>
- </tr>
+ <li>Er zijn geen gerapporteerde antwoorden.</li>
}
- </table>
-
+ </ul>
<hr />
- <h3>Gemarkeerde comments:</h3>
- <table>
- <thead>
- <tr>
- <td>ID</td>
- <td colspan="2">Inhoud</td>
- </tr>
- </thead>
+
+ <h3>Gerapporteerde comments:</h3>
+ <ul class="raport">
@if (ViewBag.badCommentList != null)
- {
+ {
foreach (var comment in ViewBag.badCommentList)
{
- <tr>
- <td>@comment.CommentID</td>
- <td>
- @foreach(var qc in ViewBag.QCList)
+ <li>
+ @foreach (var qc in ViewBag.QCList)
{
- if(comment.CommentID == qc.CommentID)
+ if (comment.CommentID == qc.CommentID)
{
@Html.ActionLink((string)comment.Content, "view", "vraag", new { id = qc.QuestionID }, "")
break;
}
}
- </td>
- @*<td>@comment.Content</td>*@
- <td>@Html.ActionLink("[x]", "delete", "comment", new { id = comment.CommentID }, "")</td>
- <td>@Html.ActionLink("[√]", "Unflag", "comment", new { id = comment.CommentID }, "")</td>
- </tr>
- }
+ [@Html.ActionLink("Verwijder", "delete", "comment", new { id = comment.CommentID }, "")]
+ [@Html.ActionLink("OK", "Unflag", "comment", new { id = comment.CommentID }, "")]
+ </li>
}
+ }
else
{
- <tr>
- <td colspan="4">Er zijn geen gemarkeerde comments.</td>
- </tr>
+ <li>Er zijn geen gerapporteerde comments.</li>
}
- </table>
+ </ul>
<hr />
}
else
{
- <span>Je hebt nog niet de rechten behaald om hier iets te doen.</span>
+ <p>Je hebt nog niet de rechten behaald om hier iets te doen.</p>
}

0 comments on commit 0bc7cf0

Please sign in to comment.