codeforcroatia / codeforcroatia.org

[Deprecated] Extended project of Laddr for Code for Croatia website
https://codeforcroatia.org
1 stars 2 forks source link

Update drafts page to include create page draft link #64

Open schlos opened 4 years ago

schlos commented 4 years ago

Path: _parent/html-templates/drafts.tpl

pseudo code:

{extends "designs/site.tpl"}

{block content}
<div class="reading-width">
    <header class="page-header">
        <h2 class="header-title">My Drafts</h2>
        <div class="header-buttons"><a href="/blog/create?Status=Draft" class="button primary">New Blog Draft</a></div>
        <div class="header-buttons"><a href="/pages/create?Status=Draft" class="button primary">New Page Draft</a></div>
    </header>

    <ul>
    {foreach item=Draft from=$data}
        <li>{contextLink $Draft}</li>
    {foreachelse}
        <li class="empty-text">You have no drafts saved. Create a new <a href="/blog/create?Status=Draft">blog draft</a> or <a href="/pages/create?Status=Draft">page draft</a>.</li>
    {/foreach}
    </ul>
</div>
{/block}
schlos commented 3 years ago

http://cfc-staging-v3.poplar.phl.io/pages --> /drafts (for Staff only? TBD)