mirror of
https://github.com/neocities/neocities.git
synced 2025-04-24 17:22:35 +02:00
check if path is a dir before showing edit links in dashboard
This commit is contained in:
parent
88ad085ac8
commit
103afdc07e
1 changed files with 1 additions and 1 deletions
|
@ -85,7 +85,7 @@
|
||||||
|
|
||||||
<div class="overlay">
|
<div class="overlay">
|
||||||
<div id="<%= Digest::SHA256.hexdigest file[:path] %>" style="display: none"><%= file[:path] %></div>
|
<div id="<%= Digest::SHA256.hexdigest file[:path] %>" style="display: none"><%= file[:path] %></div>
|
||||||
<% if file[:is_editable] %>
|
<% if file[:is_editable] && !file[:is_directory] %>
|
||||||
<a href="/site_files/text_editor?filename=<%= Rack::Utils.escape file[:path] %>"><i class="fa fa-edit" title="Edit"></i> Edit</a>
|
<a href="/site_files/text_editor?filename=<%= Rack::Utils.escape file[:path] %>"><i class="fa fa-edit" title="Edit"></i> Edit</a>
|
||||||
<% end %>
|
<% end %>
|
||||||
<% if file[:is_directory] %>
|
<% if file[:is_directory] %>
|
||||||
|
|
Loading…
Add table
Reference in a new issue