forked from expertiza/expertiza
-
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.
Grey out & disable bookmarks link if instructor has not allowed bookm…
…arks for assignment
- Loading branch information
1 parent
f144594
commit f0352dd
Showing
4 changed files
with
25 additions
and
21 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,23 @@ | ||
<% if @use_bookmark %> | ||
<%= 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> | ||
<p class="fa fa-stack-2x fa-inverse" style='font-size: 1.0em; padding-top: 2px; font-weight: bold;'> | ||
<%= Bookmark.where(topic_id: topic.id).length.to_s %> | ||
</p> | ||
</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'> | ||
<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 %> | ||
<% else %> | ||
<span class="fa-stack fa-md" title='View topic bookmarks'> | ||
<i class="fa fa-bookmark fa-stack-1x fa-2x" style="opacity: 0.3;"></i> | ||
</span> | ||
<% end %> | ||
<%= render :partial => '/sign_up_sheet/all_actions', :locals => {:i=>i, :topic=>topic, :is_suggested_topic=>is_suggested_topic} %> | ||
|
This file was deleted.
Oops, something went wrong.
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