From 2b844fc3d382dc8e84a80910144223e29aef45ca Mon Sep 17 00:00:00 2001 From: Scott O'Hara Date: Sun, 23 Jun 2013 17:26:51 -0400 Subject: [PATCH] move location of upload file moved the location of upload file to the right column, above download entire site. better ux than constantly having to scroll to the bottom of a long list of files, to upload a new one. --- views/dashboard.slim | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/views/dashboard.slim b/views/dashboard.slim index d8ac2f17..fef8fec1 100644 --- a/views/dashboard.slim +++ b/views/dashboard.slim @@ -16,10 +16,10 @@ javascript: - current_site.file_list.each do |file| .row - .span4 + .span4 style="position:relative" - if file.ext == 'html' || file.ext == 'htm' || file.ext == 'txt' || file.ext == 'js' || file.ext == 'css' || file.ext == 'md' span -    #{file.filename} +    #{file.filename} - if file.filename == 'index.html' p | This is your index file! It is the "default file" that loads when you go to #{current_site.username}.neocities.org. In effect, it's your front page. If you want to change your front page, you need to edit (or overwrite) this file. The default file is always named index.html.

@@ -49,7 +49,6 @@ javascript: a href="http://#{current_site.username}.neocities.org/#{file.filename}" target="_blank" View
a href="#" onclick="confirmFileDelete('#{file.filename}')" Delete - Upload New File .span5 .row @@ -65,6 +64,7 @@ javascript: .row style="margin-top: 20px" .span5 + Upload New File h4: a href="/site_files/#{current_site.username}.zip" Download Entire Site form method="POST" action="/site_files/delete" id="deleteFilenameForm"