Welcome to mirror list, hosted at ThFree Co, Russian Federation.

_aspect_dropdown.mobile.haml « aspects « views « app - github.com/diaspora/diaspora.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 222e6f00277c1cb7f026366624ef9f1e5f159bd8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
-# Note: all_aspects is a global in the ApplicationController

.btn-group.aspect-dropdown
  %button.btn.btn-default.dropdown-toggle{data: {toggle: "dropdown"}}
    %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.selected{"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