Statistics
| Branch: | Tag: | Revision:

one / src / sunstone / public / app / sunstone / user_and_zone.hbs @ b9b272f0

History | View | Annotate | Download (2.85 KB)

1
{{! -------------------------------------------------------------------------- }}
2
{{! Copyright 2002-2017, OpenNebula Project, OpenNebula Systems                }}
3
{{!                                                                            }}
4
{{! Licensed under the Apache License, Version 2.0 (the "License"); you may    }}
5
{{! not use this file except in compliance with the License. You may obtain    }}
6
{{! a copy of the License at                                                   }}
7
{{!                                                                            }}
8
{{! http://www.apache.org/licenses/LICENSE-2.0                                 }}
9
{{!                                                                            }}
10
{{! Unless required by applicable law or agreed to in writing, software        }}
11
{{! distributed under the License is distributed on an "AS IS" BASIS,          }}
12
{{! WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.   }}
13
{{! See the License for the specific language governing permissions and        }}
14
{{! limitations under the License.                                             }}
15
{{! -------------------------------------------------------------------------- }}
16

    
17
<ul class="dropdown menu" data-dropdown-menu data-alignment="right">
18
  {{#if filterView}}
19
  <li>
20
    <a class="thin-font" href="#" id="filter-view">
21
      <i class="fa fa-filter fa-fw header-icon"></i>
22
      <span class="filter-name"></span>
23
    </a>
24
  </li>
25
  {{/if}}
26
  <li>
27
    <a class="thin-font" href="#" id="userselector">
28
      <i class="fa fa-user fa-fw header-icon"></i>
29
      <span class="username">
30
        {{displayName}}
31
      </span>
32
    </a>
33
    <ul class="menu">
34
      {{#if settingsTabEnabled}}
35
      <li>
36
        <a href="#" class="configuration">
37
          <i class="fa fa-fw fa-cog"></i>
38
          {{tr "Settings"}}
39
        </a>
40
      </li>
41
      {{/if}}
42
      <li>
43
        <a href="#" class="logout">
44
          <i class="fa fa-fw fa-power-off"></i>
45
          {{tr "Sign Out"}}
46
        </a>
47
      </li>
48
      {{#if availableViews}}
49
      <li>
50
        <a href="#">
51
          <i class="fa fa-fw fa-eye"></i>
52
          {{tr "Views"}}
53
        </a>
54
        <ul class="menu">
55
          {{#each availableViews}}
56
          <li>
57
            <a href="#" class="quickconf_view" view="{{this}}">
58
              <i class="fa fa-fw"></i> 
59
              {{this}}
60
            </a>
61
          </li>
62
          {{/each}}
63
        </ul>
64
      </li>
65
      {{/if}}
66
      <li>
67
        <a href="#">
68
          <i class="fa fa-fw fa-users"></i>
69
          {{tr "Groups"}}
70
        </a>
71
        <ul class="menu groups-menu"></ul>      
72
      </li>
73
    </ul>
74
  </li>
75
  <li>
76
    <a class="thin-font" id="zonelector" href="#">
77
      <i class="fa fa-globe fa-fw header-icon"></i>
78
      <span class="zonename">
79
        {{zoneName}}
80
      </span>
81
    </a>
82
    <ul class="menu zone-ul">
83
    </ul>
84
  </li>
85
</ul>