summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjomo <github@jomo.tv>2016-06-12 00:54:28 +0200
committerjomo <github@jomo.tv>2016-06-12 00:54:28 +0200
commitc8e964c23f542811ce60866fb629ef77a65c3899 (patch)
tree35819ce3ee41b49f95a6aef9c1db0bd965462599
parent44839b08ae1ad1f5c2e837c5d6130496da287cce (diff)
clarify write-only notice
-rw-r--r--app/views/forums/show.html.erb8
1 files changed, 7 insertions, 1 deletions
diff --git a/app/views/forums/show.html.erb b/app/views/forums/show.html.erb
index 0612dad..60f3185 100644
--- a/app/views/forums/show.html.erb
+++ b/app/views/forums/show.html.erb
@@ -6,7 +6,13 @@
<% end %>
<% if @forum.role_read && @forum.role_write && @forum.role_write < @forum.role_read %>
- <div class="lockednote">This forum is write-only. You can only see your own posts.</div>
+ <div class="lockednote">
+ <% if @forum.role_read > current_user.role %>
+ This forum is write-only. You can only see your own posts.
+ <% else %>
+ This forum is write-only for users ranked under <%= @forum.role_read %>. They can only see their own posts.
+ <% end %>
+ </div>
<% end %>
<div id="forum_groups">