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:
parent
ea47df1043
commit
32ec7c49ff
@ -36,30 +36,12 @@
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
tr:nth-child(odd) {
|
||||
th, td {
|
||||
padding: 8px;
|
||||
//padding: 8px;
|
||||
text-align: left;
|
||||
border-bottom: 1px solid #ddd;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
.thumb {
|
||||
width: 3em;
|
||||
}
|
||||
|
||||
.table_wrapper {
|
||||
table {
|
||||
border-collapse: collapse;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
th, td {
|
||||
padding: 8px;
|
||||
text-align: left;
|
||||
border-bottom: 1px solid #ddd;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
@ -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>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user