Changes to dashboard incl some initial styling/cleaning up of the file listing

This commit is contained in:
Victoria Wang 2014-04-16 18:31:34 -07:00
parent b0432b3f5f
commit a3b7e33af1
2 changed files with 25 additions and 19 deletions

View file

@ -116,6 +116,13 @@
background: url(../img/drag-drop.png) no-repeat center center; background: url(../img/drag-drop.png) no-repeat center center;
min-height: 200px; min-height: 200px;
} }
.file {
float: left;
width: 105px;
height: 105px;
margin-right: 20px;
margin-bottom: 30px;
}
.site-actions { .site-actions {
float: left; float: left;
margin-top: 20px; margin-top: 20px;

View file

@ -16,7 +16,7 @@
<div class="col col-50 signup-Area" style="width: 289px;"> <div class="col col-50 signup-Area" style="width: 289px;">
<div class="signup-Form" style="top: 0; text-align: center"> <div class="signup-Form" style="top: 0; text-align: center">
<fieldset class="content"> <fieldset class="content">
<img class="screenshot" src="/site_screenshots/#{current_site.username}.jpg"> <img class="screenshot" src="/site_screenshots/<%= current_site.username %>.jpg">
</fieldset> </fieldset>
</div> </div>
</div> </div>
@ -58,26 +58,25 @@
<div class="upload-Boundary"> <div class="upload-Boundary">
<% current_site.file_list.each do |file| %> <% current_site.file_list.each do |file| %>
<a href="http://#{current_site.username}.neocities.org/<%= file.filename %>" title="View #{file.filename}" target="_blank"> <div class="file">
<% if file.ext.match(/jpg|png|bmp|gif/) %> <% if file.ext.match(/html|htm/) %>
<i class="icon-picture icon" span style="margin-left: 5px"><%= file.filename %></i> <a href="http://<%= current_site.username %>.neocities.org/<%= file.filename %>" title="View <%= file.filename %>" target="_blank"><div style="background:#fff;width:105px;height:63px;"></div></a>
<% else %> <% elsif file.ext.match(/jpg|png|bmp|gif/) %>
<i class="icon-file-alt icon" span style="margin-left: 10px;"><%= file.filename %></i>
<% end %> <% end %>
</a>
<% if file.ext.match(/html|htm|txt|js|css|md/) %> <a href="http://<%= current_site.username %>.neocities.org/<%= file.filename %>" title="View <%= file.filename %>" target="_blank">
<%= file.filename %></a>
<% if file.ext.match(/txt|js|css|md/) %>
<a href="/site_files/text_editor/<%= file.filename %>"><i class="icon-edit" style="margin-right: 10px" title="Edit"></i></a> <a href="/site_files/text_editor/<%= file.filename %>"><i class="icon-edit" style="margin-right: 10px" title="Edit"></i></a>
<% else %>
<% end %> <% end %>
<a href="/site_files/download/<%= file.filename %>"><i class="icon-download" style="margin-right: 10px" title="Download"></i></a> <a href="/site_files/download/<%= file.filename %>"><i class="icon-download" style="margin-right: 10px" title="Download"></i></a>
<% if file.filename != 'index.html' %> <% if file.filename != 'index.html' %>
<a href="#" onclick="confirmFileDelete('<%= file.filename %>')"><i class="icon-trash" style="margin-right: 10px" title="Delete"></i></a> <a href="#" onclick="confirmFileDelete('<%= file.filename %>')"><i class="icon-trash" style="margin-right: 10px" title="Delete"></i></a>
<% else %>
<% end %> <% end %>
</div>
<% end %> <% end %>
</div> </div>
</div> </div>