fixes #2401
This commit is contained in:
@@ -2,14 +2,11 @@
|
|||||||
<div id="a-new">
|
<div id="a-new">
|
||||||
<h1>Upload</h1>
|
<h1>Upload</h1>
|
||||||
|
|
||||||
|
<% if CurrentUser.user.can_upload? %>
|
||||||
<div id="upload-guide-notice">
|
<div id="upload-guide-notice">
|
||||||
<p>Before uploading, please read the <%= link_to "how to upload guide", wiki_pages_path(:title => "howto:upload") %>.</p>
|
<p>Before uploading, please read the <%= link_to "how to upload guide", wiki_pages_path(:title => "howto:upload") %>.</p>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<% unless CurrentUser.user.can_upload? %>
|
|
||||||
<h2 style="margin-bottom: 1em;">You <%= CurrentUser.user.upload_limited_reason %></h2>
|
|
||||||
<% end %>
|
|
||||||
|
|
||||||
<%= render "image" %>
|
<%= render "image" %>
|
||||||
<%= render "post", :post => @post %>
|
<%= render "post", :post => @post %>
|
||||||
<%= render "sources/info", :source => @source %>
|
<%= render "sources/info", :source => @source %>
|
||||||
@@ -123,6 +120,9 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
<% else %>
|
||||||
|
<h2 style="margin-bottom: 1em;">You <%= CurrentUser.user.upload_limited_reason %></h2>
|
||||||
|
<% end %>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user