~ubuntu-branches/ubuntu/vivid/horizon/vivid-updates

« back to all changes in this revision

Viewing changes to pkg/magic_search/data/magic_search.html

  • Committer: Package Import Robot
  • Author(s): Corey Bryant
  • Date: 2015-04-30 15:46:00 UTC
  • mto: (87.1.1 vivid-proposed) (0.15.1)
  • mto: This revision was merged to the branch mainline in revision 87.
  • Revision ID: package-import@ubuntu.com-20150430154600-1zms8pm8yccw8n1h
Tags: upstream-2015.1.0/xstatic
Import upstream version 2015.1.0, component xstatic

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<!--! Magic Searchbar -->
 
2
<div class="magic-search" magic-overrides>
 
3
    <div class="search-bar">
 
4
        <i class="fi-filter go"></i>
 
5
        <div class="search-main-area">
 
6
            <span class="item-list">
 
7
                <span class="label radius secondary item"
 
8
                      ng-repeat="facet in currentSearch" ng-cloak="cloak">
 
9
                    <span>
 
10
                        {{ facet.label[0] }}:<b>{{ facet.label[1] }}</b>
 
11
                    </span>
 
12
                    <a class="remove" ng-click="removeFacet($index, $event)" title="{{ strings.remove }}">
 
13
                        <i class="fi-x"></i>
 
14
                    </a>
 
15
                </span>
 
16
            </span>
 
17
            <span class="search-selected label" ng-cloak="" ng-show="facetSelected">
 
18
                {{ facetSelected.label[0] }}:
 
19
            </span>
 
20
            <div class="search-entry" is-open="isMenuOpen">
 
21
                <input class="search-input" type="text" data-dropdown="facet-drop" dropdown-toggle
 
22
                       placeholder="{{ strings.prompt }}" autocomplete="off" />
 
23
                <ul id="facet-drop" class="f-dropdown dropdown-menu" data-dropdown-content="">
 
24
                    <li ng-repeat="facet in filteredObj" ng-show="!facetSelected">
 
25
                        <a ng-click="facetClicked($index, $event, facet.name)"
 
26
                           ng-show="!isMatchLabel(facet.label)">{{ facet.label }}</a>
 
27
                        <a ng-click="facetClicked($index, $event, facet.name)"
 
28
                           ng-show="isMatchLabel(facet.label)">
 
29
                           {{ facet.label[0] }}<span class="match">{{ facet.label[1] }}</span>{{ facet.label[2] }}
 
30
                        </a>
 
31
                    </li>
 
32
                    <li ng-repeat="option in filteredOptions" ng-show="facetSelected">
 
33
                        <a ng-click="optionClicked($index, $event, option.key)"
 
34
                           ng-show="!isMatchLabel(option.label)">
 
35
                           {{ option.label }}
 
36
                        </a>
 
37
                        <a ng-click="optionClicked($index, $event, option.key)"
 
38
                           ng-show="isMatchLabel(option.label)">
 
39
                           {{ option.label[0] }}<span class="match">{{ option.label[1] }}</span>{{ option.label[2] }}
 
40
                        </a>
 
41
                </ul>
 
42
            </div>
 
43
        </div>
 
44
        <a ng-click="clearSearch()" ng-show="currentSearch.length &gt; 0" title="{{ strings.cancel }}">
 
45
            <i class="fi-x cancel"></i>
 
46
        </a>
 
47
    </div>
 
48
</div>