[pLog-svn] r1819 - plog/branches/plog-1.0.1/templates/admin
mark at devel.plogworld.net
mark at devel.plogworld.net
Tue Apr 12 10:55:30 GMT 2005
Author: mark
Date: 2005-04-12 10:55:29 +0000 (Tue, 12 Apr 2005)
New Revision: 1819
Modified:
plog/branches/plog-1.0.1/templates/admin/dashboard.template
Log:
Add actions to dashboard.template, I think it is more cool then current one :D
Modified: plog/branches/plog-1.0.1/templates/admin/dashboard.template
===================================================================
--- plog/branches/plog-1.0.1/templates/admin/dashboard.template 2005-04-12 10:49:04 UTC (rev 1818)
+++ plog/branches/plog-1.0.1/templates/admin/dashboard.template 2005-04-12 10:55:29 UTC (rev 1819)
@@ -17,9 +17,8 @@
<h3>{$locale->tr("recent_articles")}</h3>
<table class="dashboard_data_table">
<tr>
- <th>
- {$locale->tr("topic")}
- </th>
+ <th>{$locale->tr("topic")}</th>
+ <th style="width:60px;">{$locale->tr("actions")}</th>
</tr>
{assign var=blogId value=$blog->getId()}
{assign var=url value=$blog->getBlogRequestGenerator()}
@@ -29,6 +28,12 @@
<td>
<a target="_blank" href="{$url->postPermalink($post)}">{$post->getTopic()}</a><br/>
</td>
+ <td>
+ <div class="list_action_button">
+ <a href="?op=editPost&postId={$post->getId()}"><img src="imgs/admin/icon_edit-16.png" alt="{$locale->tr("edit")}" /></a>
+ <a href="?op=deletePost&postId={$post->getId()}"><img src="imgs/admin/icon_delete-16.png" alt="{$locale->tr("delete")}" /></a>
+ </div>
+ </td>
</tr>
{/foreach}
</table>
@@ -36,18 +41,11 @@
<h3>{$locale->tr("recent_comments")}</h3>
<table class="dashboard_data_table">
<tr>
- <th>
- {$locale->tr("topic")}
- </th>
- <th>
- {$locale->tr("posted_by")}
- </th>
- <th>
- {$locale->tr("in")}
- </th>
- <th>
- {$locale->tr("date")}
- </th>
+ <th>{$locale->tr("topic")}</th>
+ <th>{$locale->tr("posted_by")}</th>
+ <th>{$locale->tr("in")}</th>
+ <th>{$locale->tr("date")}</th>
+ <th style="width:60px;">{$locale->tr("actions")}</th>
</tr>
{** loop to print out the list of recent comments **}
{foreach from=$recentcomments[$blogId] item=comment}
@@ -74,6 +72,24 @@
{assign var=commentDate value=$comment->getDateObject()}
{$locale->formatDate($commentDate)}<br/>
</td>
+ <td>
+ <div class="list_action_button">
+ <a href="?op=deleteComment&commentId={$comment->getId()}&articleId={$article->getId()}"><img src="imgs/admin/icon_delete-16.png" alt="{$locale->tr("delete")}" /></a>
+ {if $comment->getStatus() == 0}
+ <a href="?op=markComment&mode=1&articleId={$comment->getArticleId()}&commentId={$comment->getId()}">
+ <img src="imgs/admin/icon_spam-16.png" alt="{$locale->tr("mark_as_spam")}" />
+ </a>
+ {elseif $comment->getStatus() == 1}
+ <a href="?op=markComment&mode=0&articleId={$comment->getArticleId()}&commentId={$comment->getId()}">
+ <img src="imgs/admin/icon_nospam-16.png" alt="{$locale->tr("mark_as_no_spam")}" />
+ </a>
+ {/if}
+ {if $comment->getUserUrl()}
+ <a href="{$comment->getUserUrl()}">
+ <img src="imgs/admin/icon_url-16.png" alt="{$locale->tr("url")}" />
+ {/if}
+ </div>
+ </td>
</tr>
{/foreach}
</table>
@@ -81,15 +97,10 @@
<h3>{$locale->tr("recent_trackbacks")}</h3>
<table class="dashboard_data_table">
<tr>
- <th>
- {$locale->tr("topic")}
- </th>
- <th>
- {$locale->tr("in")}
- </th>
- <th>
- {$locale->tr("date")}
- </th>
+ <th>{$locale->tr("topic")}</th>
+ <th>{$locale->tr("in")}</th>
+ <th>{$locale->tr("date")}</th>
+ <th style="width:60px;">{$locale->tr("actions")}</th>
</tr>
{** loop to print out the list of recent trackbacks **}
{foreach from=$recenttrackbacks[$blogId] item=trackback}
@@ -111,6 +122,11 @@
{assign var=trackbackDate value=$trackback->getDateObject()}
{$locale->formatDate($trackbackDate)}<br/>
</td>
+ <td>
+ <div class="list_action_button">
+ <a href="?op=deleteTrackback&articleId={$article->getId()}&trackbackId={$trackback->getId()}"><img src="imgs/admin/icon_delete-16.png" alt="{$locale->tr("delete_trackback")}" /></a>
+ </div>
+ </td>
</tr>
{/foreach}
</table>
More information about the pLog-svn
mailing list