Project

General

Profile

« Previous | Next » 

Revision 49839

added loader

View differences:

modules/dli-service-portal/trunk/DLI.py
21 21
            ES_HOST = [x.strip() for x in s[1].split(',')]
22 22

  
23 23

  
24

  
25

  
26

  
27 24
class MyJSONEncoder(JSONEncoder):
28 25
    def default(self, obj):
29 26
        return obj.__dict__
......
93 90
    raise Exception("Method to be implemented")
94 91

  
95 92

  
96

  
97 93
@app.route('/api/stats_detail/', methods=['post', 'get'])
98 94
def stats_detail():
99 95
    return ""
modules/dli-service-portal/trunk/static/partials/detail.html
1
<section>
1
<style>
2
    .loader {
3
    border: 16px solid #f3f3f3; /* Light grey */
4
    border-top: 16px solid #3498db; /* Blue */
5
    border-radius: 50%;
6
    width: 120px;
7
    height: 120px;
8
    animation: spin 2s linear infinite;
9
    margin: auto;
10
}
2 11

  
12
@keyframes spin {
13
    0% { transform: rotate(0deg); }
14
    100% { transform: rotate(360deg); }
15
}
16
</style>
3 17

  
18

  
19

  
20
<section ng-hide="item">
21
    <div class="row">
22
        <div class="col-lg-12 center-align">
23
                <div class="loader"></div>
24
        </div>
25
    </div>
26

  
27
</section>
28

  
29
<section ng-show="item">
30

  
31

  
4 32
    <div>
5 33
        <div class="row">
6 34
            <div class="col-lg-11 col-lg-offset-1" style="font-size: large">
modules/dli-service-portal/trunk/static/partials/query.html
1
<style>
2
    .loader {
3
    border: 16px solid #f3f3f3; /* Light grey */
4
    border-top: 16px solid #3498db; /* Blue */
5
    border-radius: 50%;
6
    width: 120px;
7
    height: 120px;
8
    animation: spin 2s linear infinite;
9
    margin: auto;
10
}
11

  
12
@keyframes spin {
13
    0% { transform: rotate(0deg); }
14
    100% { transform: rotate(360deg); }
15
}
16
</style>
17

  
18

  
1 19
<section class="container-fluid">
2 20

  
3 21

  
......
19 37
        </div>
20 38
    </div>
21 39
    <div class="row" ng-hide="result_query.length">
40
        <div class="col-lg-12 center-align">
41
            <div class="loader"></div>
42
        </div>
43

  
44

  
45
<!--
22 46
        <div class="col l12 offset-l4 center-align">
23 47
            <h5 class="red-text">No match found</h5>
24
        </div>
48
        </div> -->
25 49
    </div>
26 50

  
27 51
      <div class="row centered" ng-show="result_query.length">

Also available in: Unified diff