Added checkboxes to file list, fixed links

This commit is contained in:
Victoria Wang 2015-05-18 17:43:24 -07:00
parent 097f17358e
commit 239c1e2eb7
2 changed files with 18 additions and 2 deletions

View file

@ -237,6 +237,10 @@
width: 100%; width: 100%;
position: relative; position: relative;
margin-top: 7px; margin-top: 7px;
.column, input[type='checkbox'] {
display: none;
}
} }
.files .header { .files .header {
background: #5E95A1; background: #5E95A1;
@ -470,6 +474,12 @@
width: 30%; width: 30%;
text-overflow: ellipsis; text-overflow: ellipsis;
} }
input[type='checkbox'] {
display: block;
float: left;
margin-top: 5px;
margin-right: 6px;
}
} }
.html-thumbnail, .misc-icon { .html-thumbnail, .misc-icon {
margin: 0; margin: 0;
@ -495,8 +505,9 @@
height: 23px; height: 23px;
} }
.file > .overlay { .file > .overlay {
border-radius: 3px;
padding-top: 3px; padding-top: 3px;
margin-left: 20px;
padding-right: 20px;
text-align: right; text-align: right;
background-color: transparent; background-color: transparent;
display: block; display: block;
@ -506,13 +517,17 @@
display: inline; display: inline;
margin-right: 5px; margin-right: 5px;
} }
.link-overlay {
width: 30%;
}
} }
.html-thumbnail > .overlay { .html-thumbnail > .overlay {
background-color: transparent; display: none;
} }
.column { .column {
float: left; float: left;
width: 15%; width: 15%;
display: block;
} }
} }
.site-actions { .site-actions {

View file

@ -114,6 +114,7 @@
<div class="upload-Boundary <%= @file_list.length <= 5 ? 'with-instruction' : '' %>"> <div class="upload-Boundary <%= @file_list.length <= 5 ? 'with-instruction' : '' %>">
<% @file_list.each do |file| %> <% @file_list.each do |file| %>
<div class="file filehover"> <div class="file filehover">
<input type="checkbox" name="" value="" />
<% if file[:is_html] && current_site.screenshot_exists?(file[:path], '210x158') %> <% if file[:is_html] && current_site.screenshot_exists?(file[:path], '210x158') %>
<div class="html-thumbnail html fileimagehover"> <div class="html-thumbnail html fileimagehover">
<img src="<%= current_site.screenshot_url(file[:path], '210x158') %>" alt=""> <img src="<%= current_site.screenshot_url(file[:path], '210x158') %>" alt="">