Skip to content

Commit

Permalink
Fix lines of signup-sheet table to handle bookmarks in
Browse files Browse the repository at this point in the history
reasonably sized columns
  • Loading branch information
efg committed Mar 18, 2014
1 parent 2f0d0e4 commit c82aebe
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 4 deletions.
3 changes: 2 additions & 1 deletion app/views/sign_up_sheet/_actions.html.erb
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
<%= link_to image_tag('Check-icon.png', :border => 0, :title => 'Signup', :align => 'middle'), :controller=>'sign_up_sheet', :action=> 'sign_up', :id => topic.id, :assignment_id => params[:id] %>
<%= link_to :controller=>'bookmarks', :action=> 'view_topic_bookmarks', :id => topic.id , :assignment_id => params[:id] do %>
<span class="fa-stack fa-md" title='View topic bookmarks'>
<i class="fa fa-bookmark fa-stack-1x fa-2x"></i>
Expand All @@ -11,3 +10,5 @@
</span>
<% end %>
<%= render :partial => 'reserve_topic', :locals => {:i=>i, :topic=>topic} %>

1 change: 1 addition & 0 deletions app/views/sign_up_sheet/_table_header.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
<th width="5%">Num. of slots</th>
<th width="5%">Available slots</th>
<th width="5%">Num. on waitlist</th>
<th width="10%">Bookmarks</th>
<th width="10%">Actions</th>
<% if @assignment.staggered_deadline == true %>
<th width="5%">Dependencies</th>
Expand Down
2 changes: 1 addition & 1 deletion app/views/sign_up_sheet/_table_line.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<%= render :partial => '/sign_up_sheet/available_slots', :locals => {:topic=>topic} %>
<%= render :partial => '/sign_up_sheet/num_waiting', :locals => {:topic=>topic} %>
<td align="center"><%= render :partial => '/sign_up_sheet/actions', :locals => {:topic=>topic} %></td>
<td align="center"><%= render :partial => '/sign_up_sheet/actions', :locals => {:i=>i,:topic=>topic} %></td>

<% if @assignment.has_partner_ads?(params[:id]) %>
<td align="center">
Expand Down
2 changes: 1 addition & 1 deletion app/views/sign_up_sheet/list.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
<% end %>
<%= render :partial => 'table_line', :locals => {:i=>i, :topic=>topic} %>
<%= render :partial => 'reserve_topic', :locals => {:i=>i, :topic=>topic} %>


</tr>
<% i=i+1 %>
Expand Down
2 changes: 1 addition & 1 deletion app/views/student_task/view.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<% end %>
<ul>
<%if SignUpTopic.find_by_assignment_id(@assignment.id)%>
<li> <%= link_to 'Signup sheet', :controller=>'sign_up_sheet', :action => 'add_signup_topics', :id => @participant.parent_id%>
<li> <%= link_to 'Signup sheet', :controller=>'sign_up_sheet', :action => 'sign_up', :id => @participant.parent_id%>
(Sign up for a topic)
</li>
<%end%>
Expand Down

0 comments on commit c82aebe

Please sign in to comment.