Skip to content

Commit

Permalink
Added code comments
Browse files Browse the repository at this point in the history
  • Loading branch information
Sathwickg committed Nov 3, 2017
1 parent 782828c commit 4f63e52
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions app/views/sign_up_sheet/_actions.html.erb
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
<% if @assignment.use_bookmark == true %>
<%= link_to :controller=>'bookmarks', :action=> 'list', :id => topic.id do %>
<span class="fa-stack fa-md" title='View topic bookmarks'>
<% if @assignment.use_bookmark == true %> # checking whether to display bookmark actions or not
<%= link_to :controller=>'bookmarks', :action=> 'list', :id => topic.id do %>
<span class="fa-stack fa-md" title='View topic bookmarks'>
<i class="fa fa-bookmark fa-stack-1x fa-2x"></i>
</span>
<% end %>
<%= link_to :controller=>'bookmarks', :action=> 'new', :id => topic.id , :assignment_id => params[:assignment_id] do %>
<span class="fa-stack fa-md" title='Add bookmark to topic'>
<% end %>
<%= link_to :controller=>'bookmarks', :action=> 'new', :id => topic.id , :assignment_id => params[:assignment_id] do %>
<span class="fa-stack fa-md" title='Add bookmark to topic'>
<i class="fa fa-bookmark fa-stack-1x fa-2x"></i>
<i class="fa fa-plus fa-stack-1x fa-inverse" style='font-size: .5em'></i>
</span>
<% end %>
<% end %>
<% end %>
<%= render :partial => '/sign_up_sheet/all_actions', :locals => {:i=>i, :topic=>topic, :is_suggested_topic=>is_suggested_topic} %>
Expand Down

0 comments on commit 4f63e52

Please sign in to comment.