-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make the projects listing a table (#1074)
* Making the projects listing a table This will allow us to apply datatables inthe future refs #1031 * Reapplied most of the styling to tables * Added nowrap support for tables * Updating rails displays for table and css --------- Co-authored-by: Kate Lynch <[email protected]>
- Loading branch information
1 parent
9ad0b9d
commit c08ed20
Showing
6 changed files
with
154 additions
and
114 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
<tr class="project"> | ||
<td> | ||
<a class="click-row" href="<%= project_path(project.id) %>" > | ||
<table class="fixed-table"> | ||
<tr> | ||
<td> | ||
<h2><%= project.title %></h2> | ||
</td> | ||
</tr> | ||
</table> | ||
</a> | ||
</td> | ||
<td class="status details <%= project.status.downcase %>"><%= project.status %></td> | ||
<td class="project-type details"><%= project.type %></td> | ||
<td class="user-role details"><%= project.role(current_user) %></td> | ||
<td class="last-download details"><%= project.latest_file_list_time %></td> | ||
<td class="last-activity details"><%= project.last_activity %></td> | ||
</tr> |
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,13 @@ | ||
|
||
<div id="projects-listing"> | ||
<% @dashboard_projects.each do |project| %> | ||
<a href="<%= project_path(project.id) %>"> | ||
<section> | ||
<div class="project <%= "last" if project.equal? @dashboard_projects.last %>"> | ||
<h2><%= project.title %></h2> | ||
<div class="details"> | ||
<ul> | ||
<li class="status <%= project.status.downcase %>"><%= project.status %></li> | ||
<li class="project-type"><%= project.type %></li> | ||
<li class="user-role"><%= project.role(current_user) %></li> | ||
<li class="last-download"><%= project.latest_file_list_time %></li> | ||
<li class="last-activity"><%= project.last_activity %></li> | ||
</ul> | ||
</div> | ||
</div> | ||
</section> | ||
</a> | ||
<% end %> | ||
<div class="table"> | ||
<table id="projects-listing"> | ||
<tr class="project heading"> | ||
<th>title</th> | ||
<th>status</th> | ||
<th>type</td> | ||
<th>role</th> | ||
<th>download</th> | ||
<th>activity</th> | ||
</tr> | ||
<%= render :partial => "project_list_view", :collection => projects, :as => :project %> | ||
</table> | ||
</div> |
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