Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge pull request #566 from sarken/issue_2994

Fix issue 2994 with drafts being indistinct from posted works
  • Loading branch information...
commit 5066ae3e75f7ca91ba28e10d43bb668c9891ed99 2 parents 9f01f88 + 8612aa8
@elzj elzj authored
Showing with 5 additions and 0 deletions.
  1. +5 −0 app/views/works/show.html.erb
View
5 app/views/works/show.html.erb
@@ -3,6 +3,11 @@
<li><a name="top">&nbsp;</a></li>
<li><a href="#work">Skip header</a></li>
</ul>
+<% if !@work.posted? %>
+ <p class="notice">
+ <%= ts("This work is a draft and has not been posted.") %>
+ </p>
+<% end %>
<% if @work.unrevealed? %>
<p class="notice">
<%= ts("This work is part of an ongoing challenge and will be revealed soon! You can find details here: ") %>
Please sign in to comment.
Something went wrong with that request. Please try again.