[pLog-svn] r1819 - plog/branches/plog-1.0.1/templates/admin
Mark Wu
markplace at gmail.com
Tue Apr 12 11:15:03 GMT 2005
Oscar:
You are right!
I try to add blogId=XX, seems not help. Because the blogInfo still keep the
pervious one :(, even I add blogId
Does there any way I can do this on dashboard ...?
Or, I need to write new actions to support this?
Mark
-----Original Message-----
From: plog-svn-bounces at devel.plogworld.net
[mailto:plog-svn-bounces at devel.plogworld.net] On Behalf Of Oscar Renalias
Sent: Tuesday, April 12, 2005 7:06 PM
To: plog-svn at devel.plogworld.net
Subject: Re: [pLog-svn] r1819 - plog/branches/plog-1.0.1/templates/admin
have you tried if this will work? I think it won't because there is no
BlogInfo until you click the name of the blog on the top of the page.
Try adding a "blogId=XX" in every URL, might help...
Oscar
On Apr 12, 2005 1:55 PM, mark at devel.plogworld.net <mark at devel.plogworld.net>
wrote:
> 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={$ar
ticle->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()}&am
p;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()}&am
p;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>
>
> _______________________________________________
> pLog-svn mailing list
> pLog-svn at devel.plogworld.net
> http://devel.plogworld.net/mailman/listinfo/plog-svn
>
_______________________________________________
pLog-svn mailing list
pLog-svn at devel.plogworld.net
http://devel.plogworld.net/mailman/listinfo/plog-svn
More information about the pLog-svn
mailing list