From d6a456b5b43292190f7a2117f61164eb00d1aa2d Mon Sep 17 00:00:00 2001 From: Aditi Date: Wed, 7 Aug 2013 18:00:55 +0530 Subject: [PATCH] Specify the status of blog post. --- .../static/images/media_thumbs/blogpost.jpg | Bin 4171 -> 3940 bytes .../blog/blog_admin_dashboard.html | 16 ++++++++++++++-- 2 files changed, 14 insertions(+), 2 deletions(-) diff --git a/mediagoblin/static/images/media_thumbs/blogpost.jpg b/mediagoblin/static/images/media_thumbs/blogpost.jpg index 60b8c2bb0dd20efe83a78848dba1db3324e7abc7..c6c686785f220b81b09a49920fc3743ea65d4408 100644 GIT binary patch delta 2664 zcmah~c|4SB8-6>!%$H*7I9amRB$cA9VHhHm5M{}lBTHmoV$iEplJyvJ2s0XEY-1Er z#FRDrHkM?`I`)0WFw6V-&N+X4|9yWx*Y&&Z>$#ujzJ7PR^o(Tk+XHUz@It?Uq1;;B z88Yv!qEQ@Y6w8te2eCywUGk*-ijSf4E*`UbFRT{N{&E7~Xk$1oktQl_oU3zgl!(2M z^wS#$Cz5ehx>)n^&+K+Vr2Gj>eD!c!$u1%=0|K6r(vwsTT11cHV07{u?pOicV`{G- z&NQ}TZ9>3A1)dc`ythZi1o9lm=<_IoLtHjxXXR|zim{sai;bI`-7nWTNxmP-8PN^pmp;I7(~$@jb_t zCS}X)c9*S2*2H8*K48fX%S-yx@!z$-`fVkVBwHDW_hAo)S(!a@ddcv85`7wK6zhR8*kD~is2Q$;#RVcNTyOm zS=vM)wMdsveFuN40`_WP@*Msgo{R#d2CG%AT(hcHU_V(BVqZdR(~}#_xxIn=D69zqv3S;Des+g8!R#Yg&rblm z?Ydb^3fn|#*v5CxnSMU9fqT?jj*A`#Cz>E&%7a_q04l)?Z?9qm4kEx22-r{tohQMJ z7;53p|CZjboO?giGSVi}R1C(J9)SlpuW+9%%|>-lf;Ck%rR zdW^`Y#3QMq{WsL060R3GC^(f z$pr|YjZ8y;#J+7rykqYn2slK*vRU?zjk(GJhrtmT`^;-_Ysr6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00..e670281d 100644 --- a/mediagoblin/templates/mediagoblin/blog/blog_admin_dashboard.html +++ b/mediagoblin/templates/mediagoblin/blog/blog_admin_dashboard.html @@ -59,9 +59,21 @@ {% for blog_post in blog_posts_list %} - {{ blog_post.title }} + {% if blog_post.state == 'processed' %} + {{ blog_post.title }} + {% else %} + {% set draft_url = request.urlgen('mediagoblin.media_types.blog.blogpost_draft_view', + blog_slug=blog.slug, user=request.user.username, + blog_post_slug=blog_post.slug) %} + {{ blog_post.title }} + {% endif %} {{ blog_post.created.strftime("%F %R") }} -
{{ blog_post.state }}
+ + {% if blog_post.state == 'processed' %} +
Published
+ {% else %} +
Draft
+ {% endif %} {% set blogpost_edit_url = request.urlgen('mediagoblin.media_types.blog.blogpost.edit', blog_slug=blog.slug, user=request.user.username, blog_post_slug=blog_post.slug) %} -- 2.25.1