Revision 063ae3a6
Added by Amos Benari over 11 years ago
- ID 063ae3a62515643613ec053df6c54a8c32cc29b5
app/helpers/taxonomy_helper.rb | ||
---|---|---|
|
||
def organization_dropdown count
|
||
text = Organization.current.nil? ? "Organizations" : Organization.current.to_label
|
||
if count == 1
|
||
if count == 1 && !User.current.admin?
|
||
link_to text, "#", :title => "Current Organization"
|
||
else
|
||
link_to((text + content_tag(:span,'', :class=>"caret")).html_safe, "#", :class => "dropdown-toggle", :'data-toggle'=>"dropdown", :title => "Current Organization")
|
||
... | ... | |
|
||
def location_dropdown count
|
||
text = Location.current.nil? ? "Locations" : Location.current.to_label
|
||
if count == 1
|
||
if count == 1 && !User.current.admin?
|
||
link_to text, "#", :title => "Current Location"
|
||
else
|
||
link_to((text + content_tag(:span,'', :class=>"caret")).html_safe, "#", :class => "dropdown-toggle", :'data-toggle'=>"dropdown", :title => "Current Location")
|
Also available in: Unified diff
admins can always reset the taxonomy filters to any