make favorite view more mobile friendly
append buttons under each row of data instead besides append a line which separates the tables beneath every odd line to group data and buttons
This commit is contained in:
@@ -8,8 +8,6 @@
|
||||
<tr>
|
||||
<th><%= sortable "Title", "title" %></th>
|
||||
<th><%= sortable "Registration Date", "created_at" %></th>
|
||||
<th></th>
|
||||
<th></th>
|
||||
</tr>
|
||||
<% for course in @favorite_courses %>
|
||||
<tr>
|
||||
@@ -19,6 +17,8 @@
|
||||
<td>
|
||||
<%= course['created_at'] %>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<%= button_to 'Details', crawlers_courses_crawler_show_detail_url(:number => course['number'], :semester => course['semester']) %>
|
||||
</td>
|
||||
|
||||
@@ -32,8 +32,6 @@
|
||||
<th><%= sortable "First Name", "first_name" %></th>
|
||||
<th><%= sortable "Last Name", "last_name" %></th>
|
||||
<th><%= sortable "Registration Date", "created_at" %></th>
|
||||
<!-- <th></th>-->
|
||||
<!-- <th></th>-->
|
||||
</tr>
|
||||
<% for person in @favorite_people %>
|
||||
<tr>
|
||||
|
||||
@@ -8,8 +8,6 @@
|
||||
<tr>
|
||||
<th><%= sortable "Title", "title" %></th>
|
||||
<th><%= sortable "Registration Date", "created_at" %></th>
|
||||
<th></th>
|
||||
<th></th>
|
||||
</tr>
|
||||
<% for project in @favorite_projects %>
|
||||
<tr>
|
||||
@@ -19,6 +17,8 @@
|
||||
<td>
|
||||
<%= project['created_at'] %>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<%= button_to 'Details', crawlers_projects_crawler_show_detail_url(:id => project['id']) %>
|
||||
</td>
|
||||
|
||||
Reference in New Issue
Block a user