This commit is contained in:
r888888888
2015-06-09 17:28:03 -07:00
parent 3bc92f1ca7
commit cdc86f7665

View File

@@ -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>