[pLog-svn] r1819 - plog/branches/plog-1.0.1/templates/admin

Oscar Renalias phunkphorce at gmail.com
Tue Apr 12 11:05:46 GMT 2005


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&amp;postId={$post->getId()}"><img src="imgs/admin/icon_edit-16.png" alt="{$locale->tr("edit")}" /></a>
> +                                   <a href="?op=deletePost&amp;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&amp;commentId={$comment->getId()}&amp;articleId={$article->getId()}"><img src="imgs/admin/icon_delete-16.png" alt="{$locale->tr("delete")}" /></a>
> +                                                               {if $comment->getStatus() == 0}
> +                                                                   <a href="?op=markComment&amp;mode=1&amp;articleId={$comment->getArticleId()}&amp;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&amp;mode=0&amp;articleId={$comment->getArticleId()}&amp;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&amp;articleId={$article->getId()}&amp;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
>



More information about the pLog-svn mailing list