Clicking on folder name in dashboard now brings you to manage folder view

This commit is contained in:
Victoria Wang 2014-10-24 19:53:36 -07:00
parent 51bc2b3fae
commit 6ff82a699e

View file

@ -151,7 +151,11 @@
<% if !file[:is_root_index] %>
<a href="#" onclick="confirmFileDelete('<%= file[:path] %>')"><i class="fa fa-trash" title="Delete"></i> Delete</a>
<% end %>
<% if file[:is_directory] %>
<a class="link-overlay" href="?dir=<%= Rack::Utils.escape file[:path] %>" title="View <%= file[:path] %>"></a>
<% else %>
<a class="link-overlay" href="http://<%= current_site.username %>.neocities.org<%= file[:path] %>" title="View <%= file[:path] %>" target="_blank"></a>
<% end %>
</div>
</div>
<% end %>