|
@@ -1,8 +1,21 @@
|
|
|
@Title{Blog}@
|
|
|
-@ButtonsRight{
|
|
|
- <button onclick="window.location.href='/blog/create'" title="Create">
|
|
|
- <img src="/images/add.svg" alt="Add" />
|
|
|
- </button>
|
|
|
+@CSS{
|
|
|
+ td:last-child{
|
|
|
+ white-space:nowrap;
|
|
|
+ }
|
|
|
+}@
|
|
|
+@CSSSMall{
|
|
|
+ td:first-child, td:nth-child(3),th:first-child, th:nth-child(3){
|
|
|
+ display:none;
|
|
|
+ }
|
|
|
+
|
|
|
+ table{
|
|
|
+ width:100%;
|
|
|
+ }
|
|
|
+
|
|
|
+ td:last-child,th:last-child{
|
|
|
+ width:1px;
|
|
|
+ }
|
|
|
}@
|
|
|
@JavaScript{
|
|
|
$(function(){
|
|
@@ -12,20 +25,25 @@
|
|
|
});
|
|
|
});
|
|
|
}@
|
|
|
+@ButtonsRight{
|
|
|
+ <button onclick="window.location.href='/blog/create'" title="Create">
|
|
|
+ <img src="/images/add.svg" alt="Add" />
|
|
|
+ </button>
|
|
|
+}@
|
|
|
@Body{
|
|
|
<form action="" method="post" id="manageForm">
|
|
|
<input type="hidden" name="formSubmitted" value="yes" />
|
|
|
<table>
|
|
|
<tr>
|
|
|
- <td>ID</td>
|
|
|
- <td>Title</td>
|
|
|
- <td>Timestamp</td>
|
|
|
- <td>Actions</td>
|
|
|
+ <th>ID</th>
|
|
|
+ <th>Title</th>
|
|
|
+ <th>Timestamp</th>
|
|
|
+ <th>Actions</th>
|
|
|
</tr>
|
|
|
<?php foreach ($posts as $post){?>
|
|
|
<tr>
|
|
|
<td><?=$post->PostId?></td>
|
|
|
- <td><?=$post->PostTitle?></td>
|
|
|
+ <td><a href="/blog/view/<?=$post->PostUrl?>"><?=$post->PostTitle?></a></td>
|
|
|
<td><?=$post->PostTimestamp?></td>
|
|
|
<td>
|
|
|
<button value="<?=$post->PostId?>" name="delete" title="Delete">
|
|
@@ -39,7 +57,7 @@
|
|
|
<img src="/images/send.svg" alt="Publish" />
|
|
|
</button>
|
|
|
<?php } else {?>
|
|
|
- <img src="/images/done.svg" alt="Done" />
|
|
|
+ <img src="/images/done.svg" alt="Done" title="Published" />
|
|
|
<?php } ?>
|
|
|
</td>
|
|
|
</tr>
|