36 lines
1.1 KiB
Text
36 lines
1.1 KiB
Text
-# Note: all_aspects is a global in the ApplicationController
|
|
:ruby
|
|
dropdown_css = {"data-toggle" => "dropdown"}
|
|
if current_user.getting_started?
|
|
dropdown_css[:title] = popover_with_close_html("2. #{t('shared.public_explain.control_your_audience')}")
|
|
dropdown_css["data-content"] = t("shared.public_explain.visibility_dropdown")
|
|
end
|
|
|
|
.btn-group.aspect_dropdown
|
|
%button.btn.btn-default.dropdown-toggle{dropdown_css}
|
|
%i.entypo-lock.small#visibility-icon
|
|
%span.text
|
|
= t("all_aspects")
|
|
%span.caret
|
|
%ul.dropdown-menu.pull-right{unSelectable: "on"}
|
|
|
|
%li.public.radio{"data-aspect_id" => "public"}
|
|
%a
|
|
%span.status_indicator
|
|
%i.glyphicon.glyphicon-ok
|
|
%span.text
|
|
= t("public")
|
|
%li.all_aspects.radio{"data-aspect_id" => "all_aspects"}
|
|
%a
|
|
%span.status_indicator
|
|
%i.glyphicon.glyphicon-ok
|
|
%span.text
|
|
= t("all_aspects")
|
|
%li.divider
|
|
- all_aspects.each do |aspect|
|
|
%li.aspect_selector{"data-aspect_id" => aspect.id}
|
|
%a
|
|
%span.status_indicator
|
|
%i.glyphicon.glyphicon-ok
|
|
%span.text
|
|
= aspect.name
|