Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
awead committed Feb 27, 2017
1 parent 1db9aee commit 4962260
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 4 deletions.
14 changes: 10 additions & 4 deletions app/views/browse_everything/_file.html.erb
Expand Up @@ -13,16 +13,22 @@
</span>
<span class="sr-only"><%= file.container? ? ', folder' : ', file' %> </span>
<% else %>
<%= link_to browse_everything_engine.contents_path(provider_name,file.id), :class=>'ev-link' do %>
<%= link_to browse_everything_engine.contents_path(provider_name, file.id), :class=>'ev-link' do %>
<span class="<%=file.container? ? 'folder' : 'file'%>" aria-hidden="true"/>
<%= file.name %>
<span class="sr-only"><%= file.container? ? ', folder' : ', file' %> </span>
<% end %>
<% end %>
</td>
<td role="gridcell" class="ev-directory-select">
<%= check_box_tag(:select_all, "0", false, class: "ev-select-all") if file.container? %>
</td>
<% if file.container? %>
<td role="gridcell" class="ev-directory-select">
<%= check_box_tag(:select_all, "0", false, class: "ev-select-all") %>
</td>
<% else %>
<td role="gridcell" class="ev-file ev-file-name">
<%= check_box_tag(file.id.to_s.parameterize, "0", false) %>
</td>
<% end %>
<td role="gridcell" class="ev-file-size">
<%= number_to_human_size(file.size).sub(/Bytes/,'bytes') %>
</td>
Expand Down
1 change: 1 addition & 0 deletions spec/features/select_files_spec.rb
Expand Up @@ -14,6 +14,7 @@
click_button('Browse')
sleep(5)
click_link('Gemfile.lock')
check('config-ru')
within('.modal-footer') do
expect(page).to have_selector('span', text: '1 file selected')
click_button('Submit')
Expand Down

0 comments on commit 4962260

Please sign in to comment.