From 635f17433dca2bed7dfb324b7fb7fbfb09355937 Mon Sep 17 00:00:00 2001 From: gered Date: Sun, 26 May 2013 15:35:45 -0400 Subject: [PATCH] add publish/unpublish buttons --- src/blarg/views/templates/files/list.html | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/blarg/views/templates/files/list.html b/src/blarg/views/templates/files/list.html index d4ab369..ad01802 100644 --- a/src/blarg/views/templates/files/list.html +++ b/src/blarg/views/templates/files/list.html @@ -52,8 +52,14 @@ {{file.size}} {{file.last_modified|to_fulltime}} - Update - Delete + + {% if file.published %} + + {% endif %} + {% if not file.published %} + + {% endif %} + {% endfor %}