aboutsummaryrefslogtreecommitdiffstats
path: root/app/views
diff options
context:
space:
mode:
Diffstat (limited to 'app/views')
-rw-r--r--app/views/admin_request/edit.rhtml4
-rw-r--r--app/views/request/hidden.rhtml8
-rw-r--r--app/views/request/show.rhtml7
3 files changed, 17 insertions, 2 deletions
diff --git a/app/views/admin_request/edit.rhtml b/app/views/admin_request/edit.rhtml
index 2e9b5460c..1bfe4cb90 100644
--- a/app/views/admin_request/edit.rhtml
+++ b/app/views/admin_request/edit.rhtml
@@ -8,8 +8,8 @@
<%= text_field 'info_request', 'title', :size => 50 %></p>
<p><label for="info_request_prominence"><strong>Prominence</strong></label>
- <%= select( 'info_request', "prominence", [ "normal", "backpage", "hidden" ]) %>
- (backpage means hidden from lists/search; hidden means completely hidden)
+ <%= select( 'info_request', "prominence", [ "normal", "backpage", "requester_only", "hidden" ]) %>
+ (backpage means hidden from lists/search; hidden means completely hidden; super users can see anything)
</p>
<p>
diff --git a/app/views/request/hidden.rhtml b/app/views/request/hidden.rhtml
index 781bc9184..0dcd66cb4 100644
--- a/app/views/request/hidden.rhtml
+++ b/app/views/request/hidden.rhtml
@@ -11,4 +11,12 @@ various reasons why we might have done this, sorry we can't
be more specific here. Please <a
href="/help/contact">contact us</a> if you have any questions.
</p>
+<% if @info_request.prominence == 'requester_only' %>
+ <p>
+ If you are the requester, then you may
+ <%= link_to "sign in", signin_url(:r => request.request_uri) %>
+ to view the request.
+ </p>
+<% end %>
+
diff --git a/app/views/request/show.rhtml b/app/views/request/show.rhtml
index 70ce5668f..a55e59bdf 100644
--- a/app/views/request/show.rhtml
+++ b/app/views/request/show.rhtml
@@ -6,6 +6,13 @@
in as a super user.
</p>
<% end %>
+<% if @info_request.prominence == 'requester_only' %>
+ <p id="hidden_request">
+ This request is hidden, so that only you the requester can see it. Please
+ <a href="/help/contact">contact us</a> if you are not sure why.
+ </p>
+<% end %>
+
<% if @update_status || @info_request.awaiting_description %>
<div class="describe_state_form" id="describe_state_form_1">