-
Notifications
You must be signed in to change notification settings - Fork 108
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
projects#show directory browser using turbo_frames.
- Loading branch information
1 parent
4b67711
commit 1ec386d
Showing
14 changed files
with
335 additions
and
95 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,27 @@ | ||
<%= turbo_frame_tag "project_files" do %> | ||
<table class="table table-striped table-condensed w-100"> | ||
<thead> | ||
<tr> | ||
<th> | ||
<input type="checkbox" id="select_all" title="Select All"></input> | ||
</th> | ||
<th>Type<span aria-hidden="true"></span></th> | ||
<th>Name<span aria-hidden="true"></span></th> | ||
<th><span class="sr-only">Actions</span></th> | ||
<th>Size<span aria-hidden="true"></span></th> | ||
<th>Modified at<span aria-hidden="true"></span></th> | ||
<th>Owner<span aria-hidden="true"></span></th> | ||
<th>Mode<span aria-hidden="true"></span></th> | ||
</tr> | ||
</thead> | ||
<tbody> | ||
<%= render partial: "files", locals: { project_id: project.id, path: path, files: files } %> | ||
</tbody> | ||
</table> | ||
<%= turbo_frame_tag "project_directory" do %> | ||
<div class="border border-2 shadow p-3 mt-3 mb-5 bg-white rounded"> | ||
<div class="d-flex justify-content-left lead text-weight-800"> | ||
<strong>.../projects<%= @path.to_s.split('projects')[1] %></strong> | ||
</div> | ||
<table class="table table-striped table-condensed w-100 table-hover caption-right"> | ||
<caption> | ||
<div class="my-2 btn btn-sm btn-primary"> | ||
<span><i class="fa fa-folder-open"></i> <%= files_button %></span> | ||
</div> | ||
</caption> | ||
<thead> | ||
<tr> | ||
<th><%= t('dashboard.type') %></span></th> | ||
<th><%= column_head_link(:name) %></th> | ||
<th><%= column_head_link(:size) %></th> | ||
<th><%= column_head_link(:date) %></th> | ||
<th><%= column_head_link(:owner) %></th> | ||
<th>Mode</th> | ||
</tr> | ||
</thead> | ||
<tbody> | ||
<%= render partial: "files", locals: { project: project, path: path, files: files, sorting_params: sorting_params } %> | ||
</tbody> | ||
</table> | ||
</div> | ||
<% end %> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
<%= turbo_frame_tag "project_directory" do %> | ||
|
||
<div class="border border-2 shadow p-3 mt-3 mb-5 bg-white rounded"> | ||
<div class="h5 border-bottom border-1 pb-2"> | ||
<div class="row"> | ||
<div class="pl-2"> | ||
<%= link_to("", | ||
project_directory_path(project_id: @project.id, dir_path: "#{@path.parent}", sorting_params: @sorting_params), | ||
class: 'fa fa-window-close align-self-start button buttom-sm text-danger', | ||
data: { turbo_frame: "project_directory" } | ||
) | ||
%>  | ||
.../projects<%= @path.to_s.split('projects')[1] %> | ||
</div> | ||
</div> | ||
</div> | ||
<div > | ||
<pre><%= @file %></pre> | ||
</div> | ||
<div> | ||
<div class="my-2 btn btn-sm btn-primary"> | ||
<span><i class="fa fa-folder-open"></i> <%= files_button %></span> | ||
</div> | ||
</div> | ||
</div> | ||
<%- end -%> |
Oops, something went wrong.