From 2b844fc3d382dc8e84a80910144223e29aef45ca Mon Sep 17 00:00:00 2001 From: Scott O'Hara Date: Sun, 23 Jun 2013 17:26:51 -0400 Subject: [PATCH 1/3] 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" From f965269c9d840d5d598b67432446c30649c95878 Mon Sep 17 00:00:00 2001 From: Scott O'Hara Date: Sun, 23 Jun 2013 17:31:01 -0400 Subject: [PATCH 2/3] update location of upload button move to right column --- views/dashboard.slim | 1 + 1 file changed, 1 insertion(+) diff --git a/views/dashboard.slim b/views/dashboard.slim index fef8fec1..e8a0d2e5 100644 --- a/views/dashboard.slim +++ b/views/dashboard.slim @@ -64,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 From 28a29f36c8e39f30f4dfc63a063a0fc3293937ae Mon Sep 17 00:00:00 2001 From: Scott O'Hara Date: Sun, 23 Jun 2013 17:34:49 -0400 Subject: [PATCH 3/3] remove style tag was going to try something more in-depth out, decided against it. deleting remnant style tag that was from that idea... --- views/dashboard.slim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/views/dashboard.slim b/views/dashboard.slim index e8a0d2e5..72ba53cd 100644 --- a/views/dashboard.slim +++ b/views/dashboard.slim @@ -16,7 +16,7 @@ javascript: - current_site.file_list.each do |file| .row - .span4 style="position:relative" + .span4 - if file.ext == 'html' || file.ext == 'htm' || file.ext == 'txt' || file.ext == 'js' || file.ext == 'css' || file.ext == 'md' span    #{file.filename}